The Log Streaming API provides operations to manage Log Stream configurations for an org. You can configure up to two Log Stream integrations per org.
okta.logStreams.read
Lists all Log Stream objects in your org. You can request a paginated list or a subset of Log Streams that match a supported filter expression.
after | string The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the |
limit | integer [ 1 .. 200 ] Default: 20 A limit on the number of objects to return |
filter | string An expression that filters the returned objects. You can only use the Example: filter=type eq "aws_eventbridge" |
OK
Forbidden
Too Many Requests
[- {
- "id": "0oa1orqUGCIoCGNxf0g4",
- "type": "aws_eventbridge",
- "name": "Example AWS EventBridge",
- "lastUpdated": "2023-03-24T21:02:43.000Z",
- "created": "2023-03-24T21:02:43.000Z",
- "status": "ACTIVE",
- "settings": {
- "accountId": "123456789012",
- "eventSourceName": "your-event-source-name",
- "region": "us-east-2"
}, - "_links": {
- "deactivate": {
- "method": "POST"
}
}
}
]
okta.logStreams.manage
Creates a new Log Stream object
name required | string (LogStreamName) Unique name for the Log Stream object |
type required | string (LogStreamType) Specifies the streaming provider used Supported providers:
Select the provider type to see provider-specific configurations in the |
required | object (LogStreamSettingsAws) Specifies the configuration for the |
Success
Bad Request
Forbidden
Too Many Requests
{- "type": "aws_eventbridge",
- "name": "Example AWS EventBridge",
- "settings": {
- "eventSourceName": "your-event-source-name",
- "accountId": "123456789012",
- "region": "us-east-2"
}
}
{- "id": "0oa1orqUGCIoCGNxf0g4",
- "type": "aws_eventbridge",
- "name": "Example AWS EventBridge",
- "lastUpdated": "2023-03-24T21:02:43.000Z",
- "created": "2023-03-24T21:02:43.000Z",
- "status": "ACTIVE",
- "settings": {
- "accountId": "123456789012",
- "eventSourceName": "your-event-source-name",
- "region": "us-east-2"
}, - "_links": {
- "deactivate": {
- "method": "POST"
}
}
}
okta.logStreams.read
Retrieves a Log Stream object by ID
OK
Forbidden
Not Found
Too Many Requests
{- "id": "0oa1orqUGCIoCGNxf0g4",
- "type": "aws_eventbridge",
- "name": "Example AWS EventBridge",
- "lastUpdated": "2023-03-24T21:02:43.000Z",
- "created": "2023-03-24T21:02:43.000Z",
- "status": "ACTIVE",
- "settings": {
- "accountId": "123456789012",
- "eventSourceName": "your-event-source-name",
- "region": "us-east-2"
}, - "_links": {
- "deactivate": {
- "method": "POST"
}
}
}
okta.logStreams.manage
Replaces the Log Stream object properties for a given ID.
This operation is typically used to update the configuration of a Log Stream.
Depending on the type of Log Stream you want to update, certain properties can't be modified after the Log Stream is initially created.
Use the Retrieve the Log Stream Schema for the schema type request to determine which properties you can update for the specific Log Stream type.
Log Stream properties with the "writeOnce" : true
attribute can't be updated after creation.
You must still specify these writeOnce
properties in the request body with the original values in the PUT request.
Note: You don't have to specify properties that have both the
"writeOnce": true
and the"writeOnly": true
attributes in the PUT request body. These property values are ignored even if you add them in the PUT request body.
name required | string (LogStreamName) Unique name for the Log Stream object |
type required | string (LogStreamType) Specifies the streaming provider used Supported providers:
Select the provider type to see provider-specific configurations in the |
required | object (LogStreamSettingsAws) Specifies the configuration for the |
OK
Bad Request
Forbidden
Not Found
Too Many Requests
{- "type": "aws_eventbridge",
- "name": "Updated AWS EventBridge",
- "settings": {
- "eventSourceName": "your-event-source-name",
- "accountId": "123456789012",
- "region": "us-east-2"
}
}
{- "id": "0oa1orqUGCIoCGNxf0g4",
- "type": "aws_eventbridge",
- "name": "Updated AWS EventBridge",
- "lastUpdated": "2023-03-24T21:12:43.000Z",
- "created": "2023-03-24T21:02:43.000Z",
- "status": "ACTIVE",
- "settings": {
- "accountId": "123456789012",
- "eventSourceName": "your-event-source-name",
- "region": "us-east-2"
}, - "_links": {
- "deactivate": {
- "method": "POST"
}
}
}
okta.logStreams.manage
Deletes a Log Stream object from your org by ID
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.logStreams.manage
Activates a log stream by logStreamId
OK
Forbidden
Not Found
Too Many Requests
{- "id": "0oa1orqUGCIoCGNxf0g4",
- "type": "aws_eventbridge",
- "name": "Example AWS EventBridge",
- "lastUpdated": "2023-03-24T21:22:43.000Z",
- "created": "2023-03-24T21:02:43.000Z",
- "status": "ACTIVE",
- "settings": {
- "accountId": "123456789012",
- "eventSourceName": "your-event-source-name",
- "region": "us-east-2"
}, - "_links": {
- "deactivate": {
- "method": "POST"
}
}
}
okta.logStreams.manage
Deactivates a log stream by logStreamId
OK
Forbidden
Not Found
Too Many Requests
{- "id": "0oa7agphh5FT7H521d7",
- "type": "splunk_cloud_logstreaming",
- "name": "Splunk Cloud Example",
- "lastUpdated": "2023-03-24T21:23:00.000Z",
- "created": "2023-03-24T21:15:13.000Z",
- "status": "INACTIVE",
- "settings": {
- "edition": "aws",
- "host": "okexample.splunkcloud.com"
}, - "_links": {
- "activate": {
- "method": "POST"
}
}
}