Perform a Patch on an org by name
curl --request PATCH \
--url https://api.cpln.io/org/{name} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"$drop": [],
"description": "<string>",
"tags": {},
"$replace/tags": {},
"name": "<string>",
"spec": {
"$drop": [],
"logging": {
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": {
"credentials": "<string>"
},
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": {
"credentials": "<string>"
},
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": {
"credentials": "<string>"
},
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"$replace/logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$drop/extraLogging": [
"<string>"
],
"$append/extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$patch/extraLogging": [
{
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": {
"credentials": "<string>"
},
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": {
"credentials": "<string>"
},
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": {
"credentials": "<string>"
},
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$retain/extraLogging": [
"<string>"
],
"tracing": {
"$drop": [],
"sampling": 123,
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"$replace/customTags": {},
"provider": {
"$drop": [],
"otel": {
"$drop": [
"endpoint"
],
"endpoint": "<string>"
},
"$replace/otel": {
"endpoint": "<string>"
},
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {},
"$replace/controlplane": {}
},
"$replace/provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"$replace/tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"$drop": [],
"domainAutoMembers": [
"<string>"
],
"$drop/domainAutoMembers": [
"<string>"
],
"$append/domainAutoMembers": [
"<string>"
],
"$retain/domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"$replace/authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"$drop": [],
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
],
"$drop/defaultAlertEmails": [
"<string>"
],
"$append/defaultAlertEmails": [
"<string>"
],
"$retain/defaultAlertEmails": [
"<string>"
]
},
"$replace/observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"$drop": [
"threatDetection"
],
"threatDetection": {
"$drop": [],
"enabled": true,
"syslog": {
"$drop": [],
"transport": "tcp",
"host": "<string>",
"port": 123
},
"$replace/syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
},
"$replace/threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
},
"$replace/security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
},
"$replace/spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
}
}
'import requests
url = "https://api.cpln.io/org/{name}"
payload = {
"$drop": [],
"description": "<string>",
"tags": {},
"$replace/tags": {},
"name": "<string>",
"spec": {
"$drop": [],
"logging": {
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": { "credentials": "<string>" },
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": { "credentials": "<string>" },
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": { "credentials": "<string>" },
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"$replace/logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$drop/extraLogging": ["<string>"],
"$append/extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$patch/extraLogging": [
{
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": { "credentials": "<string>" },
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": { "credentials": "<string>" },
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": { "credentials": "<string>" },
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$retain/extraLogging": ["<string>"],
"tracing": {
"$drop": [],
"sampling": 123,
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"$replace/customTags": {},
"provider": {
"$drop": [],
"otel": {
"$drop": ["endpoint"],
"endpoint": "<string>"
},
"$replace/otel": { "endpoint": "<string>" },
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {},
"$replace/controlplane": {}
},
"$replace/provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"$replace/tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"$drop": [],
"domainAutoMembers": ["<string>"],
"$drop/domainAutoMembers": ["<string>"],
"$append/domainAutoMembers": ["<string>"],
"$retain/domainAutoMembers": ["<string>"],
"samlOnly": True
},
"$replace/authConfig": {
"domainAutoMembers": ["<string>"],
"samlOnly": True
},
"observability": {
"$drop": [],
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"],
"$drop/defaultAlertEmails": ["<string>"],
"$append/defaultAlertEmails": ["<string>"],
"$retain/defaultAlertEmails": ["<string>"]
},
"$replace/observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"]
},
"security": {
"$drop": ["threatDetection"],
"threatDetection": {
"$drop": [],
"enabled": True,
"syslog": {
"$drop": [],
"transport": "tcp",
"host": "<string>",
"port": 123
},
"$replace/syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
},
"$replace/threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
},
"$replace/security": { "threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
} }
},
"$replace/spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": ["<string>"],
"samlOnly": True
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"]
},
"security": { "threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
} }
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
$drop: [],
description: '<string>',
tags: {},
'$replace/tags': {},
name: '<string>',
spec: {
$drop: [],
logging: {
$drop: [],
s3: {
$drop: [],
bucket: '<string>',
region: '<string>',
prefix: '/',
credentials: '<string>'
},
'$replace/s3': {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {$drop: [], credentials: '<string>', app: '<string>', subsystem: '<string>'},
'$replace/coralogix': {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {$drop: [], credentials: '<string>'},
'$replace/datadog': {credentials: '<string>'},
logzio: {$drop: [], credentials: '<string>'},
'$replace/logzio': {credentials: '<string>'},
elastic: {
$drop: [],
aws: {
$drop: [],
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
'$replace/aws': {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
$drop: [],
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
'$replace/elasticCloud': {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
$drop: [],
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
},
'$replace/generic': {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
'$replace/elastic': {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
$drop: [],
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {},
'$replace/extractFields': {}
},
'$replace/cloudWatch': {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {$drop: [], host: '<string>', port: 123},
'$replace/fluentd': {host: '<string>', port: 123},
stackdriver: {$drop: [], credentials: '<string>'},
'$replace/stackdriver': {credentials: '<string>'},
syslog: {
$drop: [],
host: '<string>',
port: 123,
mode: 'tcp',
format: 'rfc5424',
severity: 123
},
'$replace/syslog': {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {
$drop: [],
endpoint: '<string>',
headers: {},
'$replace/headers': {},
credentials: '<string>'
},
'$replace/opentelemetry': {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {$drop: [], endpoint: '<string>', credentials: '<string>', tenantId: '<string>'},
'$replace/loki': {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
'$replace/logging': {
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
extraLogging: [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$drop/extraLogging': ['<string>'],
'$append/extraLogging': [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$patch/extraLogging': [
{
$drop: [],
s3: {
$drop: [],
bucket: '<string>',
region: '<string>',
prefix: '/',
credentials: '<string>'
},
'$replace/s3': {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {$drop: [], credentials: '<string>', app: '<string>', subsystem: '<string>'},
'$replace/coralogix': {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {$drop: [], credentials: '<string>'},
'$replace/datadog': {credentials: '<string>'},
logzio: {$drop: [], credentials: '<string>'},
'$replace/logzio': {credentials: '<string>'},
elastic: {
$drop: [],
aws: {
$drop: [],
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
'$replace/aws': {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
$drop: [],
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
'$replace/elasticCloud': {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
$drop: [],
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
},
'$replace/generic': {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
'$replace/elastic': {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
$drop: [],
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {},
'$replace/extractFields': {}
},
'$replace/cloudWatch': {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {$drop: [], host: '<string>', port: 123},
'$replace/fluentd': {host: '<string>', port: 123},
stackdriver: {$drop: [], credentials: '<string>'},
'$replace/stackdriver': {credentials: '<string>'},
syslog: {
$drop: [],
host: '<string>',
port: 123,
mode: 'tcp',
format: 'rfc5424',
severity: 123
},
'$replace/syslog': {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {
$drop: [],
endpoint: '<string>',
headers: {},
'$replace/headers': {},
credentials: '<string>'
},
'$replace/opentelemetry': {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {$drop: [], endpoint: '<string>', credentials: '<string>', tenantId: '<string>'},
'$replace/loki': {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$retain/extraLogging': ['<string>'],
tracing: {
$drop: [],
sampling: 123,
lightstep: {$drop: [], endpoint: '<string>', credentials: '<string>'},
'$replace/lightstep': {endpoint: '<string>', credentials: '<string>'},
customTags: {},
'$replace/customTags': {},
provider: {
$drop: [],
otel: {$drop: ['endpoint'], endpoint: '<string>'},
'$replace/otel': {endpoint: '<string>'},
lightstep: {$drop: [], endpoint: '<string>', credentials: '<string>'},
'$replace/lightstep': {endpoint: '<string>', credentials: '<string>'},
controlplane: {},
'$replace/controlplane': {}
},
'$replace/provider': {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
'$replace/tracing': {
sampling: 123,
lightstep: {endpoint: '<string>', credentials: '<string>'},
customTags: {},
provider: {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
sessionTimeoutSeconds: 123,
authConfig: {
$drop: [],
domainAutoMembers: ['<string>'],
'$drop/domainAutoMembers': ['<string>'],
'$append/domainAutoMembers': ['<string>'],
'$retain/domainAutoMembers': ['<string>'],
samlOnly: true
},
'$replace/authConfig': {domainAutoMembers: ['<string>'], samlOnly: true},
observability: {
$drop: [],
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>'],
'$drop/defaultAlertEmails': ['<string>'],
'$append/defaultAlertEmails': ['<string>'],
'$retain/defaultAlertEmails': ['<string>']
},
'$replace/observability': {
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>']
},
security: {
$drop: ['threatDetection'],
threatDetection: {
$drop: [],
enabled: true,
syslog: {$drop: [], transport: 'tcp', host: '<string>', port: 123},
'$replace/syslog': {transport: 'tcp', host: '<string>', port: 123}
},
'$replace/threatDetection': {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
},
'$replace/security': {
threatDetection: {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
}
},
'$replace/spec': {
logging: {
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
extraLogging: [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
tracing: {
sampling: 123,
lightstep: {endpoint: '<string>', credentials: '<string>'},
customTags: {},
provider: {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
sessionTimeoutSeconds: 123,
authConfig: {domainAutoMembers: ['<string>'], samlOnly: true},
observability: {
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>']
},
security: {
threatDetection: {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
}
}
})
};
fetch('https://api.cpln.io/org/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cpln.io/org/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'$drop' => [
],
'description' => '<string>',
'tags' => [
],
'$replace/tags' => [
],
'name' => '<string>',
'spec' => [
'$drop' => [
],
'logging' => [
'$drop' => [
],
's3' => [
'$drop' => [
],
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'$replace/s3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'$drop' => [
],
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'$replace/coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'$drop' => [
],
'aws' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'$replace/aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'$drop' => [
],
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'$replace/elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
],
'$replace/generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'$replace/elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'$drop' => [
],
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
],
'$replace/extractFields' => [
]
],
'$replace/cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123
],
'$replace/fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'$replace/syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'$drop' => [
],
'endpoint' => '<string>',
'headers' => [
],
'$replace/headers' => [
],
'credentials' => '<string>'
],
'$replace/opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
],
'$replace/loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'$replace/logging' => [
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$drop/extraLogging' => [
'<string>'
],
'$append/extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$patch/extraLogging' => [
[
'$drop' => [
],
's3' => [
'$drop' => [
],
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'$replace/s3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'$drop' => [
],
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'$replace/coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'$drop' => [
],
'aws' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'$replace/aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'$drop' => [
],
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'$replace/elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
],
'$replace/generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'$replace/elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'$drop' => [
],
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
],
'$replace/extractFields' => [
]
],
'$replace/cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123
],
'$replace/fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'$replace/syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'$drop' => [
],
'endpoint' => '<string>',
'headers' => [
],
'$replace/headers' => [
],
'credentials' => '<string>'
],
'$replace/opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
],
'$replace/loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$retain/extraLogging' => [
'<string>'
],
'tracing' => [
'$drop' => [
],
'sampling' => 123,
'lightstep' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>'
],
'$replace/lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'$replace/customTags' => [
],
'provider' => [
'$drop' => [
],
'otel' => [
'$drop' => [
'endpoint'
],
'endpoint' => '<string>'
],
'$replace/otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>'
],
'$replace/lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
],
'$replace/controlplane' => [
]
],
'$replace/provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'$replace/tracing' => [
'sampling' => 123,
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'sessionTimeoutSeconds' => 123,
'authConfig' => [
'$drop' => [
],
'domainAutoMembers' => [
'<string>'
],
'$drop/domainAutoMembers' => [
'<string>'
],
'$append/domainAutoMembers' => [
'<string>'
],
'$retain/domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'$replace/authConfig' => [
'domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'observability' => [
'$drop' => [
],
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
],
'$drop/defaultAlertEmails' => [
'<string>'
],
'$append/defaultAlertEmails' => [
'<string>'
],
'$retain/defaultAlertEmails' => [
'<string>'
]
],
'$replace/observability' => [
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
]
],
'security' => [
'$drop' => [
'threatDetection'
],
'threatDetection' => [
'$drop' => [
],
'enabled' => true,
'syslog' => [
'$drop' => [
],
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
],
'$replace/syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
],
'$replace/threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
],
'$replace/security' => [
'threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
]
],
'$replace/spec' => [
'logging' => [
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'tracing' => [
'sampling' => 123,
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'sessionTimeoutSeconds' => 123,
'authConfig' => [
'domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'observability' => [
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
]
],
'security' => [
'threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cpln.io/org/{name}"
payload := strings.NewReader("{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cpln.io/org/{name}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cpln.io/org/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"kind": "<string>",
"version": 123,
"description": "<string>",
"tags": {},
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"links": [
{
"rel": "<string>",
"href": "<string>"
}
],
"name": "<string>",
"spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
},
"status": {
"accountLink": "<string>",
"active": true,
"endpointPrefix": "<string>"
}
}{
"status": 123,
"message": "<string>",
"code": "<string>",
"details": {},
"id": "<string>"
}{
"status": 123,
"message": "<string>",
"code": "<string>",
"details": {},
"id": "<string>"
}Org
Perform a Patch on an org by name
PATCH
/
org
/
{name}
Perform a Patch on an org by name
curl --request PATCH \
--url https://api.cpln.io/org/{name} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"$drop": [],
"description": "<string>",
"tags": {},
"$replace/tags": {},
"name": "<string>",
"spec": {
"$drop": [],
"logging": {
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": {
"credentials": "<string>"
},
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": {
"credentials": "<string>"
},
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": {
"credentials": "<string>"
},
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"$replace/logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$drop/extraLogging": [
"<string>"
],
"$append/extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$patch/extraLogging": [
{
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": {
"credentials": "<string>"
},
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": {
"credentials": "<string>"
},
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": {
"credentials": "<string>"
},
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$retain/extraLogging": [
"<string>"
],
"tracing": {
"$drop": [],
"sampling": 123,
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"$replace/customTags": {},
"provider": {
"$drop": [],
"otel": {
"$drop": [
"endpoint"
],
"endpoint": "<string>"
},
"$replace/otel": {
"endpoint": "<string>"
},
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {},
"$replace/controlplane": {}
},
"$replace/provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"$replace/tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"$drop": [],
"domainAutoMembers": [
"<string>"
],
"$drop/domainAutoMembers": [
"<string>"
],
"$append/domainAutoMembers": [
"<string>"
],
"$retain/domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"$replace/authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"$drop": [],
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
],
"$drop/defaultAlertEmails": [
"<string>"
],
"$append/defaultAlertEmails": [
"<string>"
],
"$retain/defaultAlertEmails": [
"<string>"
]
},
"$replace/observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"$drop": [
"threatDetection"
],
"threatDetection": {
"$drop": [],
"enabled": true,
"syslog": {
"$drop": [],
"transport": "tcp",
"host": "<string>",
"port": 123
},
"$replace/syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
},
"$replace/threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
},
"$replace/security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
},
"$replace/spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
}
}
'import requests
url = "https://api.cpln.io/org/{name}"
payload = {
"$drop": [],
"description": "<string>",
"tags": {},
"$replace/tags": {},
"name": "<string>",
"spec": {
"$drop": [],
"logging": {
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": { "credentials": "<string>" },
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": { "credentials": "<string>" },
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": { "credentials": "<string>" },
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"$replace/logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$drop/extraLogging": ["<string>"],
"$append/extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$patch/extraLogging": [
{
"$drop": [],
"s3": {
"$drop": [],
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"$replace/s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"$drop": [],
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"$replace/coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"$drop": [],
"credentials": "<string>"
},
"$replace/datadog": { "credentials": "<string>" },
"logzio": {
"$drop": [],
"credentials": "<string>"
},
"$replace/logzio": { "credentials": "<string>" },
"elastic": {
"$drop": [],
"aws": {
"$drop": [],
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"$replace/aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"$drop": [],
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"$replace/elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"$drop": [],
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
},
"$replace/generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"$replace/elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"$drop": [],
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {},
"$replace/extractFields": {}
},
"$replace/cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"$drop": [],
"host": "<string>",
"port": 123
},
"$replace/fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"$drop": [],
"credentials": "<string>"
},
"$replace/stackdriver": { "credentials": "<string>" },
"syslog": {
"$drop": [],
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"$replace/syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"$drop": [],
"endpoint": "<string>",
"headers": {},
"$replace/headers": {},
"credentials": "<string>"
},
"$replace/opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
},
"$replace/loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"$retain/extraLogging": ["<string>"],
"tracing": {
"$drop": [],
"sampling": 123,
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"$replace/customTags": {},
"provider": {
"$drop": [],
"otel": {
"$drop": ["endpoint"],
"endpoint": "<string>"
},
"$replace/otel": { "endpoint": "<string>" },
"lightstep": {
"$drop": [],
"endpoint": "<string>",
"credentials": "<string>"
},
"$replace/lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {},
"$replace/controlplane": {}
},
"$replace/provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"$replace/tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"$drop": [],
"domainAutoMembers": ["<string>"],
"$drop/domainAutoMembers": ["<string>"],
"$append/domainAutoMembers": ["<string>"],
"$retain/domainAutoMembers": ["<string>"],
"samlOnly": True
},
"$replace/authConfig": {
"domainAutoMembers": ["<string>"],
"samlOnly": True
},
"observability": {
"$drop": [],
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"],
"$drop/defaultAlertEmails": ["<string>"],
"$append/defaultAlertEmails": ["<string>"],
"$retain/defaultAlertEmails": ["<string>"]
},
"$replace/observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"]
},
"security": {
"$drop": ["threatDetection"],
"threatDetection": {
"$drop": [],
"enabled": True,
"syslog": {
"$drop": [],
"transport": "tcp",
"host": "<string>",
"port": 123
},
"$replace/syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
},
"$replace/threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
},
"$replace/security": { "threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
} }
},
"$replace/spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": { "credentials": "<string>" },
"logzio": { "credentials": "<string>" },
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": { "credentials": "<string>" },
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": { "endpoint": "<string>" },
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": ["<string>"],
"samlOnly": True
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": ["<string>"]
},
"security": { "threatDetection": {
"enabled": True,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
} }
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
$drop: [],
description: '<string>',
tags: {},
'$replace/tags': {},
name: '<string>',
spec: {
$drop: [],
logging: {
$drop: [],
s3: {
$drop: [],
bucket: '<string>',
region: '<string>',
prefix: '/',
credentials: '<string>'
},
'$replace/s3': {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {$drop: [], credentials: '<string>', app: '<string>', subsystem: '<string>'},
'$replace/coralogix': {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {$drop: [], credentials: '<string>'},
'$replace/datadog': {credentials: '<string>'},
logzio: {$drop: [], credentials: '<string>'},
'$replace/logzio': {credentials: '<string>'},
elastic: {
$drop: [],
aws: {
$drop: [],
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
'$replace/aws': {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
$drop: [],
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
'$replace/elasticCloud': {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
$drop: [],
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
},
'$replace/generic': {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
'$replace/elastic': {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
$drop: [],
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {},
'$replace/extractFields': {}
},
'$replace/cloudWatch': {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {$drop: [], host: '<string>', port: 123},
'$replace/fluentd': {host: '<string>', port: 123},
stackdriver: {$drop: [], credentials: '<string>'},
'$replace/stackdriver': {credentials: '<string>'},
syslog: {
$drop: [],
host: '<string>',
port: 123,
mode: 'tcp',
format: 'rfc5424',
severity: 123
},
'$replace/syslog': {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {
$drop: [],
endpoint: '<string>',
headers: {},
'$replace/headers': {},
credentials: '<string>'
},
'$replace/opentelemetry': {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {$drop: [], endpoint: '<string>', credentials: '<string>', tenantId: '<string>'},
'$replace/loki': {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
'$replace/logging': {
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
extraLogging: [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$drop/extraLogging': ['<string>'],
'$append/extraLogging': [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$patch/extraLogging': [
{
$drop: [],
s3: {
$drop: [],
bucket: '<string>',
region: '<string>',
prefix: '/',
credentials: '<string>'
},
'$replace/s3': {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {$drop: [], credentials: '<string>', app: '<string>', subsystem: '<string>'},
'$replace/coralogix': {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {$drop: [], credentials: '<string>'},
'$replace/datadog': {credentials: '<string>'},
logzio: {$drop: [], credentials: '<string>'},
'$replace/logzio': {credentials: '<string>'},
elastic: {
$drop: [],
aws: {
$drop: [],
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
'$replace/aws': {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
$drop: [],
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
'$replace/elasticCloud': {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
$drop: [],
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
},
'$replace/generic': {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
'$replace/elastic': {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
$drop: [],
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {},
'$replace/extractFields': {}
},
'$replace/cloudWatch': {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {$drop: [], host: '<string>', port: 123},
'$replace/fluentd': {host: '<string>', port: 123},
stackdriver: {$drop: [], credentials: '<string>'},
'$replace/stackdriver': {credentials: '<string>'},
syslog: {
$drop: [],
host: '<string>',
port: 123,
mode: 'tcp',
format: 'rfc5424',
severity: 123
},
'$replace/syslog': {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {
$drop: [],
endpoint: '<string>',
headers: {},
'$replace/headers': {},
credentials: '<string>'
},
'$replace/opentelemetry': {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {$drop: [], endpoint: '<string>', credentials: '<string>', tenantId: '<string>'},
'$replace/loki': {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
'$retain/extraLogging': ['<string>'],
tracing: {
$drop: [],
sampling: 123,
lightstep: {$drop: [], endpoint: '<string>', credentials: '<string>'},
'$replace/lightstep': {endpoint: '<string>', credentials: '<string>'},
customTags: {},
'$replace/customTags': {},
provider: {
$drop: [],
otel: {$drop: ['endpoint'], endpoint: '<string>'},
'$replace/otel': {endpoint: '<string>'},
lightstep: {$drop: [], endpoint: '<string>', credentials: '<string>'},
'$replace/lightstep': {endpoint: '<string>', credentials: '<string>'},
controlplane: {},
'$replace/controlplane': {}
},
'$replace/provider': {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
'$replace/tracing': {
sampling: 123,
lightstep: {endpoint: '<string>', credentials: '<string>'},
customTags: {},
provider: {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
sessionTimeoutSeconds: 123,
authConfig: {
$drop: [],
domainAutoMembers: ['<string>'],
'$drop/domainAutoMembers': ['<string>'],
'$append/domainAutoMembers': ['<string>'],
'$retain/domainAutoMembers': ['<string>'],
samlOnly: true
},
'$replace/authConfig': {domainAutoMembers: ['<string>'], samlOnly: true},
observability: {
$drop: [],
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>'],
'$drop/defaultAlertEmails': ['<string>'],
'$append/defaultAlertEmails': ['<string>'],
'$retain/defaultAlertEmails': ['<string>']
},
'$replace/observability': {
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>']
},
security: {
$drop: ['threatDetection'],
threatDetection: {
$drop: [],
enabled: true,
syslog: {$drop: [], transport: 'tcp', host: '<string>', port: 123},
'$replace/syslog': {transport: 'tcp', host: '<string>', port: 123}
},
'$replace/threatDetection': {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
},
'$replace/security': {
threatDetection: {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
}
},
'$replace/spec': {
logging: {
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
},
extraLogging: [
{
s3: {bucket: '<string>', region: '<string>', prefix: '/', credentials: '<string>'},
coralogix: {credentials: '<string>', app: '<string>', subsystem: '<string>'},
datadog: {credentials: '<string>'},
logzio: {credentials: '<string>'},
elastic: {
aws: {
host: '<string>',
port: 123,
index: '<string>',
type: '<string>',
credentials: '<string>',
region: '<string>'
},
elasticCloud: {
index: '<string>',
type: '<string>',
credentials: '<string>',
cloudId: '<string>'
},
generic: {
host: '<string>',
port: 123,
path: '<string>',
index: '<string>',
type: '<string>',
credentials: '<string>',
username: '<string>',
password: '<string>'
}
},
cloudWatch: {
credentials: '<string>',
retentionDays: 123,
groupName: '<string>',
streamName: '<string>',
extractFields: {}
},
fluentd: {host: '<string>', port: 123},
stackdriver: {credentials: '<string>'},
syslog: {host: '<string>', port: 123, mode: 'tcp', format: 'rfc5424', severity: 123},
opentelemetry: {endpoint: '<string>', headers: {}, credentials: '<string>'},
loki: {endpoint: '<string>', credentials: '<string>', tenantId: '<string>'}
}
],
tracing: {
sampling: 123,
lightstep: {endpoint: '<string>', credentials: '<string>'},
customTags: {},
provider: {
otel: {endpoint: '<string>'},
lightstep: {endpoint: '<string>', credentials: '<string>'},
controlplane: {}
}
},
sessionTimeoutSeconds: 123,
authConfig: {domainAutoMembers: ['<string>'], samlOnly: true},
observability: {
logsRetentionDays: 123,
metricsRetentionDays: 123,
tracesRetentionDays: 123,
defaultAlertEmails: ['<string>']
},
security: {
threatDetection: {enabled: true, syslog: {transport: 'tcp', host: '<string>', port: 123}}
}
}
})
};
fetch('https://api.cpln.io/org/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cpln.io/org/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'$drop' => [
],
'description' => '<string>',
'tags' => [
],
'$replace/tags' => [
],
'name' => '<string>',
'spec' => [
'$drop' => [
],
'logging' => [
'$drop' => [
],
's3' => [
'$drop' => [
],
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'$replace/s3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'$drop' => [
],
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'$replace/coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'$drop' => [
],
'aws' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'$replace/aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'$drop' => [
],
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'$replace/elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
],
'$replace/generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'$replace/elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'$drop' => [
],
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
],
'$replace/extractFields' => [
]
],
'$replace/cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123
],
'$replace/fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'$replace/syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'$drop' => [
],
'endpoint' => '<string>',
'headers' => [
],
'$replace/headers' => [
],
'credentials' => '<string>'
],
'$replace/opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
],
'$replace/loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'$replace/logging' => [
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$drop/extraLogging' => [
'<string>'
],
'$append/extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$patch/extraLogging' => [
[
'$drop' => [
],
's3' => [
'$drop' => [
],
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'$replace/s3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'$drop' => [
],
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'$replace/coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'$drop' => [
],
'aws' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'$replace/aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'$drop' => [
],
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'$replace/elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
],
'$replace/generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'$replace/elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'$drop' => [
],
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
],
'$replace/extractFields' => [
]
],
'$replace/cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123
],
'$replace/fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'$drop' => [
],
'credentials' => '<string>'
],
'$replace/stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'$drop' => [
],
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'$replace/syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'$drop' => [
],
'endpoint' => '<string>',
'headers' => [
],
'$replace/headers' => [
],
'credentials' => '<string>'
],
'$replace/opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
],
'$replace/loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'$retain/extraLogging' => [
'<string>'
],
'tracing' => [
'$drop' => [
],
'sampling' => 123,
'lightstep' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>'
],
'$replace/lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'$replace/customTags' => [
],
'provider' => [
'$drop' => [
],
'otel' => [
'$drop' => [
'endpoint'
],
'endpoint' => '<string>'
],
'$replace/otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'$drop' => [
],
'endpoint' => '<string>',
'credentials' => '<string>'
],
'$replace/lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
],
'$replace/controlplane' => [
]
],
'$replace/provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'$replace/tracing' => [
'sampling' => 123,
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'sessionTimeoutSeconds' => 123,
'authConfig' => [
'$drop' => [
],
'domainAutoMembers' => [
'<string>'
],
'$drop/domainAutoMembers' => [
'<string>'
],
'$append/domainAutoMembers' => [
'<string>'
],
'$retain/domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'$replace/authConfig' => [
'domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'observability' => [
'$drop' => [
],
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
],
'$drop/defaultAlertEmails' => [
'<string>'
],
'$append/defaultAlertEmails' => [
'<string>'
],
'$retain/defaultAlertEmails' => [
'<string>'
]
],
'$replace/observability' => [
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
]
],
'security' => [
'$drop' => [
'threatDetection'
],
'threatDetection' => [
'$drop' => [
],
'enabled' => true,
'syslog' => [
'$drop' => [
],
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
],
'$replace/syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
],
'$replace/threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
],
'$replace/security' => [
'threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
]
],
'$replace/spec' => [
'logging' => [
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
],
'extraLogging' => [
[
's3' => [
'bucket' => '<string>',
'region' => '<string>',
'prefix' => '/',
'credentials' => '<string>'
],
'coralogix' => [
'credentials' => '<string>',
'app' => '<string>',
'subsystem' => '<string>'
],
'datadog' => [
'credentials' => '<string>'
],
'logzio' => [
'credentials' => '<string>'
],
'elastic' => [
'aws' => [
'host' => '<string>',
'port' => 123,
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'region' => '<string>'
],
'elasticCloud' => [
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'cloudId' => '<string>'
],
'generic' => [
'host' => '<string>',
'port' => 123,
'path' => '<string>',
'index' => '<string>',
'type' => '<string>',
'credentials' => '<string>',
'username' => '<string>',
'password' => '<string>'
]
],
'cloudWatch' => [
'credentials' => '<string>',
'retentionDays' => 123,
'groupName' => '<string>',
'streamName' => '<string>',
'extractFields' => [
]
],
'fluentd' => [
'host' => '<string>',
'port' => 123
],
'stackdriver' => [
'credentials' => '<string>'
],
'syslog' => [
'host' => '<string>',
'port' => 123,
'mode' => 'tcp',
'format' => 'rfc5424',
'severity' => 123
],
'opentelemetry' => [
'endpoint' => '<string>',
'headers' => [
],
'credentials' => '<string>'
],
'loki' => [
'endpoint' => '<string>',
'credentials' => '<string>',
'tenantId' => '<string>'
]
]
],
'tracing' => [
'sampling' => 123,
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'customTags' => [
],
'provider' => [
'otel' => [
'endpoint' => '<string>'
],
'lightstep' => [
'endpoint' => '<string>',
'credentials' => '<string>'
],
'controlplane' => [
]
]
],
'sessionTimeoutSeconds' => 123,
'authConfig' => [
'domainAutoMembers' => [
'<string>'
],
'samlOnly' => true
],
'observability' => [
'logsRetentionDays' => 123,
'metricsRetentionDays' => 123,
'tracesRetentionDays' => 123,
'defaultAlertEmails' => [
'<string>'
]
],
'security' => [
'threatDetection' => [
'enabled' => true,
'syslog' => [
'transport' => 'tcp',
'host' => '<string>',
'port' => 123
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cpln.io/org/{name}"
payload := strings.NewReader("{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cpln.io/org/{name}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cpln.io/org/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"$drop\": [],\n \"description\": \"<string>\",\n \"tags\": {},\n \"$replace/tags\": {},\n \"name\": \"<string>\",\n \"spec\": {\n \"$drop\": [],\n \"logging\": {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"$replace/logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$drop/extraLogging\": [\n \"<string>\"\n ],\n \"$append/extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$patch/extraLogging\": [\n {\n \"$drop\": [],\n \"s3\": {\n \"$drop\": [],\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"$replace/s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"$replace/coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"$drop\": [],\n \"aws\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"$replace/aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"$drop\": [],\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"$replace/elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n },\n \"$replace/generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"$replace/elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"$drop\": [],\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {},\n \"$replace/extractFields\": {}\n },\n \"$replace/cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"$drop\": [],\n \"credentials\": \"<string>\"\n },\n \"$replace/stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"$drop\": [],\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"$replace/syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"$replace/headers\": {},\n \"credentials\": \"<string>\"\n },\n \"$replace/opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n },\n \"$replace/loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"$retain/extraLogging\": [\n \"<string>\"\n ],\n \"tracing\": {\n \"$drop\": [],\n \"sampling\": 123,\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"$replace/customTags\": {},\n \"provider\": {\n \"$drop\": [],\n \"otel\": {\n \"$drop\": [\n \"endpoint\"\n ],\n \"endpoint\": \"<string>\"\n },\n \"$replace/otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"$drop\": [],\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"$replace/lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {},\n \"$replace/controlplane\": {}\n },\n \"$replace/provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"$replace/tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"$drop\": [],\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"$drop/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$append/domainAutoMembers\": [\n \"<string>\"\n ],\n \"$retain/domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"$replace/authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"$drop\": [],\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$drop/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$append/defaultAlertEmails\": [\n \"<string>\"\n ],\n \"$retain/defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"$replace/observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"$drop\": [\n \"threatDetection\"\n ],\n \"threatDetection\": {\n \"$drop\": [],\n \"enabled\": true,\n \"syslog\": {\n \"$drop\": [],\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"$replace/syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n },\n \"$replace/threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n },\n \"$replace/security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n },\n \"$replace/spec\": {\n \"logging\": {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n },\n \"extraLogging\": [\n {\n \"s3\": {\n \"bucket\": \"<string>\",\n \"region\": \"<string>\",\n \"prefix\": \"/\",\n \"credentials\": \"<string>\"\n },\n \"coralogix\": {\n \"credentials\": \"<string>\",\n \"app\": \"<string>\",\n \"subsystem\": \"<string>\"\n },\n \"datadog\": {\n \"credentials\": \"<string>\"\n },\n \"logzio\": {\n \"credentials\": \"<string>\"\n },\n \"elastic\": {\n \"aws\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"elasticCloud\": {\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"cloudId\": \"<string>\"\n },\n \"generic\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"path\": \"<string>\",\n \"index\": \"<string>\",\n \"type\": \"<string>\",\n \"credentials\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n }\n },\n \"cloudWatch\": {\n \"credentials\": \"<string>\",\n \"retentionDays\": 123,\n \"groupName\": \"<string>\",\n \"streamName\": \"<string>\",\n \"extractFields\": {}\n },\n \"fluentd\": {\n \"host\": \"<string>\",\n \"port\": 123\n },\n \"stackdriver\": {\n \"credentials\": \"<string>\"\n },\n \"syslog\": {\n \"host\": \"<string>\",\n \"port\": 123,\n \"mode\": \"tcp\",\n \"format\": \"rfc5424\",\n \"severity\": 123\n },\n \"opentelemetry\": {\n \"endpoint\": \"<string>\",\n \"headers\": {},\n \"credentials\": \"<string>\"\n },\n \"loki\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\",\n \"tenantId\": \"<string>\"\n }\n }\n ],\n \"tracing\": {\n \"sampling\": 123,\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"customTags\": {},\n \"provider\": {\n \"otel\": {\n \"endpoint\": \"<string>\"\n },\n \"lightstep\": {\n \"endpoint\": \"<string>\",\n \"credentials\": \"<string>\"\n },\n \"controlplane\": {}\n }\n },\n \"sessionTimeoutSeconds\": 123,\n \"authConfig\": {\n \"domainAutoMembers\": [\n \"<string>\"\n ],\n \"samlOnly\": true\n },\n \"observability\": {\n \"logsRetentionDays\": 123,\n \"metricsRetentionDays\": 123,\n \"tracesRetentionDays\": 123,\n \"defaultAlertEmails\": [\n \"<string>\"\n ]\n },\n \"security\": {\n \"threatDetection\": {\n \"enabled\": true,\n \"syslog\": {\n \"transport\": \"tcp\",\n \"host\": \"<string>\",\n \"port\": 123\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"kind": "<string>",
"version": 123,
"description": "<string>",
"tags": {},
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"links": [
{
"rel": "<string>",
"href": "<string>"
}
],
"name": "<string>",
"spec": {
"logging": {
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
},
"extraLogging": [
{
"s3": {
"bucket": "<string>",
"region": "<string>",
"prefix": "/",
"credentials": "<string>"
},
"coralogix": {
"credentials": "<string>",
"app": "<string>",
"subsystem": "<string>"
},
"datadog": {
"credentials": "<string>"
},
"logzio": {
"credentials": "<string>"
},
"elastic": {
"aws": {
"host": "<string>",
"port": 123,
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"region": "<string>"
},
"elasticCloud": {
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"cloudId": "<string>"
},
"generic": {
"host": "<string>",
"port": 123,
"path": "<string>",
"index": "<string>",
"type": "<string>",
"credentials": "<string>",
"username": "<string>",
"password": "<string>"
}
},
"cloudWatch": {
"credentials": "<string>",
"retentionDays": 123,
"groupName": "<string>",
"streamName": "<string>",
"extractFields": {}
},
"fluentd": {
"host": "<string>",
"port": 123
},
"stackdriver": {
"credentials": "<string>"
},
"syslog": {
"host": "<string>",
"port": 123,
"mode": "tcp",
"format": "rfc5424",
"severity": 123
},
"opentelemetry": {
"endpoint": "<string>",
"headers": {},
"credentials": "<string>"
},
"loki": {
"endpoint": "<string>",
"credentials": "<string>",
"tenantId": "<string>"
}
}
],
"tracing": {
"sampling": 123,
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"customTags": {},
"provider": {
"otel": {
"endpoint": "<string>"
},
"lightstep": {
"endpoint": "<string>",
"credentials": "<string>"
},
"controlplane": {}
}
},
"sessionTimeoutSeconds": 123,
"authConfig": {
"domainAutoMembers": [
"<string>"
],
"samlOnly": true
},
"observability": {
"logsRetentionDays": 123,
"metricsRetentionDays": 123,
"tracesRetentionDays": 123,
"defaultAlertEmails": [
"<string>"
]
},
"security": {
"threatDetection": {
"enabled": true,
"syslog": {
"transport": "tcp",
"host": "<string>",
"port": 123
}
}
}
},
"status": {
"accountLink": "<string>",
"active": true,
"endpointPrefix": "<string>"
}
}{
"status": 123,
"message": "<string>",
"code": "<string>",
"details": {},
"id": "<string>"
}{
"status": 123,
"message": "<string>",
"code": "<string>",
"details": {},
"id": "<string>"
}Authorizations
serviceAccountKeyjwt
Service account key can be used as API keys
Path Parameters
Body
application/json
Response
Success
Maximum string length:
250Show child attributes
Show child attributes
Maximum string length:
64Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I