Integration audit log subscriptions
Create audit log subscription
Create an audit log subscription.<br /><br />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.
post/api/v2/integrations/{integrationKey}
Path parameters
integrationKeystring string required
The integration key
The integration key
Request body
Example request
{
"name": "Example audit log subscription.",
"statements": [
{
"resources": [
"proj/*:env/*:flag/*;testing-tag"
],
"actions": [
"*"
],
"effect": "allow"
}
],
"tags": [
"testing-tag"
],
"config": {
"optional": "an optional property",
"required": "the required property",
"url": "https://example.com"
}
}Response
Integration response
Example response
{
"_id": "1234a56b7c89d012345e678f",
"kind": "datadog",
"name": "Example Datadog integration",
"statements": [
{
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
],
"on": true,
"tags": [
"testing"
],
"_access": {
"denied": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
],
"allowed": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
]
}
}