Create audit log subscription

Create an audit log subscription.

For each subscription, you must specify the set of resources you wish to subscribe to audit log notifications for. You can describe these resources using a custom role policy. To learn more, read Custom role concepts.

Path parameters

integrationKeystringRequired
The integration key

Headers

AuthorizationstringRequired

Request

This endpoint expects an object.
namestringRequired

A human-friendly name for your audit log subscription.

configmap from strings to anyRequired

The unique set of fields required to configure an audit log subscription integration of this type. Refer to the formVariables field in the corresponding manifest.json at https://github.com/launchdarkly/integration-framework/tree/main/integrations for a full list of fields for the integration you wish to configure.

statementslist of objectsOptional
The set of resources you wish to subscribe to audit log notifications for.
onbooleanOptional
Whether or not you want your subscription to actively send events.
tagslist of stringsOptional
An array of tags for this subscription.
urlstringOptional
Slack webhook receiver URL. Only necessary for legacy Slack webhook integrations.
apiKeystringOptional
Datadog API key. Only necessary for legacy Datadog webhook integrations.

Response

Integration response
_idstring or null
The ID for this integration audit log subscription
kindstring or null
The type of integration
namestring or null

A human-friendly name for the integration

configmap from strings to any or null

Details on configuration for an integration of this type. Refer to the formVariables field in the corresponding manifest.json for a full list of fields for each integration.

statementslist of objects or null
Represents a Custom role policy, defining a resource kinds filter the integration audit log subscription responds to.
onboolean or null
Whether the integration is currently active
tagslist of strings or null
An array of tags for this integration
_accessobject or null
Details on the allowed and denied actions for this subscription
_statusobject or null
Details on the most recent successes and errors for this integration
urlstring or null
Slack webhook receiver URL. Only used for legacy Slack webhook integrations.
apiKeystring or null
Datadog API key. Only used for legacy Datadog webhook integrations.

Errors