Create an AWS cloud authentication intake mapping
https://api.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.us3.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.us5.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.datadoghq.eu/api/v2/wif/aws/intake_mappinghttps://api.ap1.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.ap2.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.uk1.datadoghq.com/api/v2/wif/aws/intake_mappinghttps://api.ddog-gov.com/api/v2/wif/aws/intake_mappinghttps://api.us2.ddog-gov.com/api/v2/wif/aws/intake_mappingOverview
Create an AWS cloud authentication intake mapping to authorize an AWS ARN pattern for Agent authentication. The AWS account must already be integrated with Datadog, and managed API key rotation must be enabled for the organization. Patterns that conflict with existing intake or persona mappings are rejected.
Request
Body Data (required)
data [required]Data for creating an AWS cloud authentication intake mapping.
attributes [required]Attributes for creating an AWS cloud authentication intake mapping.
arn_pattern [required]AWS caller ARN pattern allowed to authenticate for telemetry submission. ARN syntax and AWS integration membership are validated by the server. For an assumed role, use the STS assumed-role ARN with a trailing /* wildcard to match its sessions.
type [required]Type identifier for AWS cloud authentication intake mapping.
aws_cloud_auth_intake_mapping{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}Response
Created
Response containing a single AWS cloud authentication intake mapping.
data [required]Data for AWS cloud authentication intake mapping response.
attributes [required]Attributes for AWS cloud authentication intake mapping response.
arn_pattern [required]AWS caller ARN pattern allowed to authenticate for telemetry submission. ARN syntax and AWS integration membership are validated by the server. For an assumed role, use the STS assumed-role ARN with a trailing /* wildcard to match its sessions.
par_enrollment_enabledWhether the mapping allows Private Action Runner enrollment. This attribute may be omitted when enrollment is disabled. Enrollment permission is managed separately from the ARN pattern.
id [required]Unique identifier for the intake mapping.
type [required]Type identifier for AWS cloud authentication intake mapping.
aws_cloud_auth_intake_mapping{
"data": {
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgentRole/*",
"par_enrollment_enabled": true
},
"id": "c5c758c6-18c2-4484-ae3f-46b84128404a",
"type": "aws_cloud_auth_intake_mapping"
}
}Bad Request
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Forbidden
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Conflict
API error response.
errors [required]A list of errors.
codeAn application-specific error code.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"code": "invalid_request",
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Code Example
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"type": "aws_cloud_auth_intake_mapping",
"attributes": {
"arn_pattern": "arn:aws:sts::123456789012:assumed-role/DatadogAgent-de20b7e944abfac3/*"
}
}
}
EOF