For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Create an audit log subscription. Specify the resources to subscribe to using a custom role policy.
curl --request POST \
--url https://app.launchdarkly.com/api/v2/integrations/{integrationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"optional": "an optional property",
"required": "the required property",
"url": "https://example.com"
},
"name": "Example audit log subscription.",
"on": false,
"statements": [
{
"actions": [
"*"
],
"effect": "allow",
"resources": [
"proj/*:env/*:flag/*;testing-tag"
]
}
],
"tags": [
"testing-tag"
]
}
'{
"_links": {},
"_id": "1234a56b7c89d012345e678f",
"kind": "datadog",
"name": "Example Datadog integration",
"config": {},
"statements": [
{
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
]
}
],
"on": true,
"tags": [
"testing"
],
"_access": {
"denied": [
{
"action": "<string>",
"reason": {
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
],
"role_name": "<string>"
}
}
],
"allowed": [
{
"action": "<string>",
"reason": {
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
],
"role_name": "<string>"
}
}
]
},
"_status": {
"successCount": 123,
"lastSuccess": 123,
"lastError": 123,
"errorCount": 123,
"errors": [
{
"statusCode": 123,
"responseBody": "<string>",
"timestamp": 123
}
]
},
"url": "<string>",
"apiKey": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The integration key
A human-friendly name for your audit log subscription.
"Example audit log subscription."
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.
Show child attributes
{
"optional": "an optional property",
"required": "the required property",
"url": "https://example.com"
}The set of resources you wish to subscribe to audit log notifications for.
Show child attributes
Whether or not you want your subscription to actively send events.
false
An array of tags for this subscription.
["testing-tag"]Slack webhook receiver URL. Only necessary for legacy Slack webhook integrations.
Datadog API key. Only necessary for legacy Datadog webhook integrations.
Integration response
The location and content type of related resources
Show child attributes
The ID for this integration audit log subscription
"1234a56b7c89d012345e678f"
The type of integration
"datadog"
A human-friendly name for the integration
"Example Datadog integration"
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.
Show child attributes
Represents a Custom role policy, defining a resource kinds filter the integration audit log subscription responds to.
Show child attributes
Whether the integration is currently active
true
An array of tags for this integration
["testing"]Details on the allowed and denied actions for this subscription
Show child attributes
Details on the most recent successes and errors for this integration
Show child attributes
Slack webhook receiver URL. Only used for legacy Slack webhook integrations.
Datadog API key. Only used for legacy Datadog webhook integrations.
curl --request POST \
--url https://app.launchdarkly.com/api/v2/integrations/{integrationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"optional": "an optional property",
"required": "the required property",
"url": "https://example.com"
},
"name": "Example audit log subscription.",
"on": false,
"statements": [
{
"actions": [
"*"
],
"effect": "allow",
"resources": [
"proj/*:env/*:flag/*;testing-tag"
]
}
],
"tags": [
"testing-tag"
]
}
'{
"_links": {},
"_id": "1234a56b7c89d012345e678f",
"kind": "datadog",
"name": "Example Datadog integration",
"config": {},
"statements": [
{
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
]
}
],
"on": true,
"tags": [
"testing"
],
"_access": {
"denied": [
{
"action": "<string>",
"reason": {
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
],
"role_name": "<string>"
}
}
],
"allowed": [
{
"action": "<string>",
"reason": {
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"notResources": [
"<string>"
],
"actions": [
"*"
],
"notActions": [
"<string>"
],
"role_name": "<string>"
}
}
]
},
"_status": {
"successCount": 123,
"lastSuccess": 123,
"lastError": 123,
"errorCount": 123,
"errors": [
{
"statusCode": 123,
"responseBody": "<string>",
"timestamp": 123
}
]
},
"url": "<string>",
"apiKey": "<string>"
}