{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Restrictions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Restrictions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog List Restriction Queries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries",
            "params": [
              {
                "name": "page[size]",
                "value": "",
                "type": "query",
                "description": "Size for a given page. The maximum allowed value is 100."
              },
              {
                "name": "page[number]",
                "value": "",
                "type": "query",
                "description": "Specific page number to return."
              }
            ]
          },
          "docs": "Returns all restriction queries, including their names and IDs."
        },
        {
          "info": {
            "name": "Datadog Create a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new restriction query for your organization."
        },
        {
          "info": {
            "name": "Datadog Get Restriction Query for a Given Role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/role/:role_id",
            "params": [
              {
                "name": "role_id",
                "value": "",
                "type": "path",
                "description": "The ID of the role."
              }
            ]
          },
          "docs": "Get restriction query for a given role."
        },
        {
          "info": {
            "name": "Datadog Get All Restriction Queries for a Given User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/user/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The ID of the user."
              }
            ]
          },
          "docs": "Get all restriction queries for a given user."
        },
        {
          "info": {
            "name": "Datadog Get a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              }
            ]
          },
          "docs": "Get a restriction query in the organization specified by the restriction query's `restriction_query_id`."
        },
        {
          "info": {
            "name": "Datadog Update a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Edit a restriction query."
        },
        {
          "info": {
            "name": "Datadog Delete a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              }
            ]
          },
          "docs": "Deletes a restriction query."
        },
        {
          "info": {
            "name": "Datadog List Roles for a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id/roles",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              },
              {
                "name": "page[size]",
                "value": "",
                "type": "query",
                "description": "Size for a given page. The maximum allowed value is 100."
              },
              {
                "name": "page[number]",
                "value": "",
                "type": "query",
                "description": "Specific page number to return."
              }
            ]
          },
          "docs": "Returns all roles that have a given restriction query."
        },
        {
          "info": {
            "name": "Datadog Grant Role to a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id/roles",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a role to a restriction query."
        },
        {
          "info": {
            "name": "Datadog Revoke Role from a Restriction Query",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/logs/config/restriction_queries/:restriction_query_id/roles",
            "params": [
              {
                "name": "restriction_query_id",
                "value": "",
                "type": "path",
                "description": "The ID of the restriction query."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes a role from a restriction query."
        },
        {
          "info": {
            "name": "Datadog Get a Restriction Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/restriction_policy/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "dashboard:abc-def-ghi",
                "type": "path",
                "description": "Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves the restriction policy associated with a specified resource."
        },
        {
          "info": {
            "name": "Datadog Update a Restriction Policy",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/restriction_policy/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "dashboard:abc-def-ghi",
                "type": "path",
                "description": "Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`."
              },
              {
                "name": "allow_self_lockout",
                "value": "true",
                "type": "query",
                "description": "Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Updates the restriction policy associated with a resource.\n\n#### Supported resources\nRestriction policies can be applied to the following resources:\n- Dashboards: `dashboard`\n- Integration Accounts: `integration-account`\n- Integration Services: `integration-service`\n- Integration Webhooks: `integration-webhook`\n- Notebooks: `notebook`\n- Powerpacks: `powerpack`\n- Reference Tables: `reference-table`\n- Security Rules: `security-rule`\n- Service Level Objectives: `slo`\n- Synthetic Global Variables: `"
        },
        {
          "info": {
            "name": "Datadog Delete a Restriction Policy",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/restriction_policy/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "dashboard:abc-def-ghi",
                "type": "path",
                "description": "Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Deletes the restriction policy associated with a specified resource."
        }
      ]
    }
  ],
  "bundled": true
}