{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Queries API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Queries",
        "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 Query Scalar Data Across Multiple Products",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/query/scalar",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Query scalar values (as seen on Query Value, Table, and Toplist widgets).\nMultiple data sources are supported with the ability to\nprocess the data using formulas and functions."
        },
        {
          "info": {
            "name": "Datadog Query Timeseries Data Across Multiple Products",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/query/timeseries",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Query timeseries data across various data sources and\nprocess the data by applying formulas and functions."
        }
      ]
    }
  ],
  "bundled": true
}