CREATE OR UPDATE Egress Route for Stream
PATCH/workspaces/:workspaceId/stream-groups/:streamGroupName/streams/:streamName/egress-routes/:egressRouteName
CREATE OR UPDATE Egress Route for Stream
Request
Path Parameters
Header Parameters
To ensure that no existing egress route is updated pass If-None-Match header set to "*".
- application/json
Body
properties
object
config
object
azureEventHub
object
partitionKeyPattern
object
azureServiceBus
object
sql
object
otel
object
applyResourceLabels
object
logs
object
metrics
object
traces
object
delta
object
schema
object
textLines
object
otel
object
logs
object
metrics
object
traces
object
awsS3
object
targetPath
object
Possible values: [Messages
, BatchCompletions
]
Responses
- 200
- 201
- 404
- 423
Updated egress route point.
- application/json
- Schema
- Example (from schema)
Schema
properties
object
required
config
object
required
azureEventHub
object
partitionKeyPattern
object
required
azureServiceBus
object
sql
object
grafana
object
otel
object
applyResourceLabels
object
logs
object
metrics
object
traces
object
delta
object
schema
object
required
textLines
object
otel
object
logs
object
required
metrics
object
required
traces
object
required
awsS3
object
targetPath
object
required
Possible values: [Messages
, BatchCompletions
]
{
"name": "string",
"workspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"streamGroupName": "string",
"streamName": "string",
"properties": {
"isEnabled": true,
"egressSinkName": "string",
"config": {
"azureEventHub": {
"disablePayloadEmbedding": true,
"partitionKeyPattern": {
"isEnabled": true,
"pattern": "string"
}
},
"azureServiceBus": {
"disablePayloadEmbedding": true
},
"sql": {
"egressMapping": {}
},
"grafana": {},
"otel": {
"applyResourceLabels": {
"logs": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
},
"metrics": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
},
"traces": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
}
}
},
"delta": {
"directoryPath": "string",
"schema": {
"textLines": {},
"otel": {
"logs": {
"isEnabled": true
},
"metrics": {
"isEnabled": true
},
"traces": {
"isEnabled": true
}
}
}
},
"awsS3": {
"targetPath": {
"isEnabled": true,
"path": "string"
}
}
},
"input": "Messages"
}
}
Created egress route .
Response Headers
Location
string
Endpoint URL of the created object.
- application/json
- Schema
- Example (from schema)
Schema
properties
object
required
config
object
required
azureEventHub
object
partitionKeyPattern
object
required
azureServiceBus
object
sql
object
grafana
object
otel
object
applyResourceLabels
object
logs
object
metrics
object
traces
object
delta
object
schema
object
required
textLines
object
otel
object
logs
object
required
metrics
object
required
traces
object
required
awsS3
object
targetPath
object
required
Possible values: [Messages
, BatchCompletions
]
{
"name": "string",
"workspaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"streamGroupName": "string",
"streamName": "string",
"properties": {
"isEnabled": true,
"egressSinkName": "string",
"config": {
"azureEventHub": {
"disablePayloadEmbedding": true,
"partitionKeyPattern": {
"isEnabled": true,
"pattern": "string"
}
},
"azureServiceBus": {
"disablePayloadEmbedding": true
},
"sql": {
"egressMapping": {}
},
"grafana": {},
"otel": {
"applyResourceLabels": {
"logs": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
},
"metrics": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
},
"traces": {
"deviceId": true,
"siteId": true,
"streamGroupName": true,
"streamName": true
}
}
},
"delta": {
"directoryPath": "string",
"schema": {
"textLines": {},
"otel": {
"logs": {
"isEnabled": true
},
"metrics": {
"isEnabled": true
},
"traces": {
"isEnabled": true
}
}
}
},
"awsS3": {
"targetPath": {
"isEnabled": true,
"path": "string"
}
}
},
"input": "Messages"
}
}
Stream, stream group, 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"
}