---
title: "Get IP Allowlist"
method: GET
path: "/api/v2/ip_allowlist"
tags: ["IP Allowlist"]
---

# Get IP Allowlist

`GET /api/v2/ip_allowlist`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/ip_allowlist`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `org_management`

Returns the IP allowlist and its enabled or disabled state.

## Response `200`

OK

- IPAllowlistResponse: Response containing information about the IP allowlist.
  - `data` IPAllowlistData: IP allowlist data.
    - `attributes` IPAllowlistAttributes: Attributes of the IP allowlist.
      - `enabled` boolean: Whether the IP allowlist logic is enabled or not.
      - `entries` IPAllowlistEntry[]: Array of entries in the IP allowlist.
        - `data` IPAllowlistEntryData, required: Data of the IP allowlist entry object.
          - `attributes` IPAllowlistEntryAttributes: Attributes of the IP allowlist entry.
            - `cidr_block` string: The CIDR block describing the IP range of the entry.
            - `created_at` string, date-time: Creation time of the entry.
            - `modified_at` string, date-time: Time of last entry modification.
            - `note` string: A note describing the IP allowlist entry.
          - `id` string: The unique identifier of the IP allowlist entry.
          - `type` 'ip_allowlist_entry', required: IP allowlist Entry type.
    - `id` string: The unique identifier of the org.
    - `type` 'ip_allowlist', required: IP allowlist type.

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
