CREATE OR UPDATE Egress Sink
PATCH/workspaces/:workspaceId/egress-sinks/:egressSinkName
Creates new egress sink or updates existing one.
Request
Path Parameters
Name of the workspace.
Name of the egress sink.
Header Parameters
To ensure that no existing egress sink is updated pass If-None-Match header set to "*".
- application/json
Body
properties
object
config
object
azureEventHub
object
azureServiceBus
object
sql
object
postgreSql
object
required
grafana
object
otel
object
basicAuth
object
delta
object
azureBlobStorage
object
required
awsS3
object
iamUserAccessKey
object
Responses
- 200
- 201
- 404
- 423
Updated egress sink or update is not needed.
- application/json
- Schema
- Example (from schema)
- example-1
Schema
properties
object
required
config
object
required
azureEventHub
object
azureServiceBus
object
sql
object
postgreSql
object
required
grafana
object
otel
object
basicAuth
object
required
delta
object
azureBlobStorage
object
required
awsS3
object
iamUserAccessKey
object
required
Possible values: [V1
, V2
, Mixed
]
{
"name": "string",
"workspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"properties": {
"isEnabled": true,
"config": {
"azureEventHub": {
"endpoint": "string",
"eventHubName": "string",
"sharedAccessKeyName": "string"
},
"azureServiceBus": {
"endpoint": "string",
"entityName": "string",
"sharedAccessKeyName": "string"
},
"sql": {
"postgreSql": {
"host": "string",
"port": "string",
"database": "string",
"username": "string"
}
},
"grafana": {},
"otel": {
"endpoint": "string",
"basicAuth": {
"username": "string"
}
},
"delta": {
"azureBlobStorage": {
"blobServiceUri": "string",
"storageAccountName": "string",
"containerName": "string"
}
},
"awsS3": {
"bucketName": "string",
"region": "string",
"iamUserAccessKey": {
"accessKey": "string"
}
}
},
"protocolVersion": "V1"
}
}
{
"name": "example-sink-01",
"workspaceId": "00000000-0000-0000-0000-000000000001",
"properties": {
"config": {
"azureEventHub": {
"eventHubName": "example-event-hub",
"endpoint": "sb://example-event-hub-namespace.servicebus.windows.net",
"sharedAccessKeyName": "example-key-name"
}
},
"isEnabled": true,
"protocolVersion": "V2"
}
}
Egress sink was created.
- application/json
- Schema
- Example (from schema)
- example-1
Schema
properties
object
required
config
object
required
azureEventHub
object
azureServiceBus
object
sql
object
postgreSql
object
required
grafana
object
otel
object
basicAuth
object
required
delta
object
azureBlobStorage
object
required
awsS3
object
iamUserAccessKey
object
required
Possible values: [V1
, V2
, Mixed
]
{
"name": "string",
"workspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"properties": {
"isEnabled": true,
"config": {
"azureEventHub": {
"endpoint": "string",
"eventHubName": "string",
"sharedAccessKeyName": "string"
},
"azureServiceBus": {
"endpoint": "string",
"entityName": "string",
"sharedAccessKeyName": "string"
},
"sql": {
"postgreSql": {
"host": "string",
"port": "string",
"database": "string",
"username": "string"
}
},
"grafana": {},
"otel": {
"endpoint": "string",
"basicAuth": {
"username": "string"
}
},
"delta": {
"azureBlobStorage": {
"blobServiceUri": "string",
"storageAccountName": "string",
"containerName": "string"
}
},
"awsS3": {
"bucketName": "string",
"region": "string",
"iamUserAccessKey": {
"accessKey": "string"
}
}
},
"protocolVersion": "V1"
}
}
{
"name": "example-sink-01",
"workspaceId": "00000000-0000-0000-0000-000000000001",
"properties": {
"config": {
"azureEventHub": {
"eventHubName": "example-event-hub",
"endpoint": "sb://example-event-hub-namespace.servicebus.windows.net",
"sharedAccessKeyName": "example-key-name"
}
},
"isEnabled": true,
"protocolVersion": "V2"
}
}
Workspace not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace is disabled.
- application/problem+json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}