---
title: List AWS cloud authentication intake mappings
description: List AWS cloud authentication intake mappings configured for the organization.
breadcrumbs: Docs > API > List AWS cloud authentication intake mappings
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# List AWS cloud authentication intake mappings

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                    |
| ----------------- | --------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/wif/aws/intake_mapping     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/wif/aws/intake_mapping |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/wif/aws/intake_mapping |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/wif/aws/intake_mapping      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/wif/aws/intake_mapping |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/wif/aws/intake_mapping |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/wif/aws/intake_mapping |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/wif/aws/intake_mapping      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/wif/aws/intake_mapping  |

### Overview

List AWS cloud authentication intake mappings configured for the organization.

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Response containing a list of AWS cloud authentication intake mappings.

| Parent field | Field                    | Type     | Description                                                                                                                                                                                                                                          |
| ------------ | ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|              | data [*required*]        | [object] | List of AWS cloud authentication intake mappings.                                                                                                                                                                                                    |
| data         | attributes [*required*]  | object   | Attributes for AWS cloud authentication intake mapping response.                                                                                                                                                                                     |
| attributes   | arn_pattern [*required*] | string   | 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. |
| attributes   | par_enrollment_enabled   | boolean  | Whether 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. Read-only.                                                 |
| data         | id [*required*]          | string   | Unique identifier for the intake mapping.                                                                                                                                                                                                            |
| data         | type [*required*]        | enum     | Type identifier for AWS cloud authentication intake mapping. Allowed enum values: `aws_cloud_auth_intake_mapping`.                                                                                                                                   |
{% /tab %}

{% tab label="Example" %}
```json
{
  "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"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "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"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "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"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, 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 GET "https://api.${DD_SITE}/api/v2/wif/aws/intake_mapping" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}
{% /tabs %}
