{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Devices API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Devices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Get the List of Devices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/ndm/devices",
            "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."
              },
              {
                "name": "sort",
                "value": "status",
                "type": "query",
                "description": "The field to sort the devices by."
              },
              {
                "name": "filter[tag]",
                "value": "status:ok",
                "type": "query",
                "description": "Filter devices by tag."
              }
            ]
          },
          "docs": "Get the list of devices."
        },
        {
          "info": {
            "name": "Datadog Get the Device Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/ndm/devices/:device_id",
            "params": [
              {
                "name": "device_id",
                "value": "example:1.2.3.4",
                "type": "path",
                "description": "The id of the device to fetch."
              }
            ]
          },
          "docs": "Get the device details."
        },
        {
          "info": {
            "name": "Datadog Get the List of Interfaces of the Device",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/ndm/interfaces",
            "params": [
              {
                "name": "device_id",
                "value": "example:1.2.3.4",
                "type": "query",
                "description": "The ID of the device to get interfaces from."
              },
              {
                "name": "get_ip_addresses",
                "value": "true",
                "type": "query",
                "description": "Whether to get the IP addresses of the interfaces."
              }
            ]
          },
          "docs": "Get the list of interfaces of the device."
        },
        {
          "info": {
            "name": "Datadog Get the List of Tags for a Device",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/ndm/tags/devices/:device_id",
            "params": [
              {
                "name": "device_id",
                "value": "example:1.2.3.4",
                "type": "path",
                "description": "The id of the device to fetch tags for."
              }
            ]
          },
          "docs": "Get the list of tags for a device."
        },
        {
          "info": {
            "name": "Datadog Update the Tags for a Device",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/ndm/tags/devices/:device_id",
            "params": [
              {
                "name": "device_id",
                "value": "example:1.2.3.4",
                "type": "path",
                "description": "The id of the device to update tags for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the tags for a device."
        }
      ]
    }
  ],
  "bundled": true
}