Create audit log subscription

POST
/api/v2/integrations/:integrationKey

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

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

_idstringOptional

The ID for this integration audit log subscription

kindstringOptional

The type of integration

namestringOptional

A human-friendly name for the integration

configmap from strings to anyOptional

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 objectsOptional

Represents a Custom role policy, defining a resource kinds filter the integration audit log subscription responds to.

onbooleanOptional

Whether the integration is currently active

tagslist of stringsOptional

An array of tags for this integration

_accessobjectOptional

Details on the allowed and denied actions for this subscription

_statusobjectOptional

Details on the most recent successes and errors for this integration

urlstringOptional

Slack webhook receiver URL. Only used for legacy Slack webhook integrations.

apiKeystringOptional

Datadog API key. Only used for legacy Datadog webhook integrations.

Errors

Built with