{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Assets API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Assets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Related Assets to a Metric",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/assets",
            "params": [
              {
                "name": "metric_name",
                "value": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Returns dashboards, monitors, notebooks, and SLOs that a metric is stored in, if any.  Updated every 24 hours."
        },
        {
          "info": {
            "name": "Datadog List Vulnerable Assets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/security/assets",
            "params": [
              {
                "name": "page[token]",
                "value": "b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
                "type": "query",
                "description": "Its value must come from the `links` section of the response of the first request. Do not manually edit it."
              },
              {
                "name": "page[number]",
                "value": "1",
                "type": "query",
                "description": "The page number to be retrieved. It should be equal or greater than `1`"
              },
              {
                "name": "filter[name]",
                "value": "datadog-agent",
                "type": "query",
                "description": "Filter by name."
              },
              {
                "name": "filter[type]",
                "value": "Host",
                "type": "query",
                "description": "Filter by type."
              },
              {
                "name": "filter[version.first]",
                "value": "v1.15.1",
                "type": "query",
                "description": "Filter by the first version of the asset since it has been vulnerable."
              },
              {
                "name": "filter[version.last]",
                "value": "v1.15.1",
                "type": "query",
                "description": "Filter by the last detected version of the asset."
              },
              {
                "name": "filter[repository_url]",
                "value": "github.com/DataDog/datadog-agent.git",
                "type": "query",
                "description": "Filter by the repository url associated to the asset."
              },
              {
                "name": "filter[risks.in_production]",
                "value": "false",
                "type": "query",
                "description": "Filter whether the asset is in production or not."
              },
              {
                "name": "filter[risks.under_attack]",
                "value": "false",
                "type": "query",
                "description": "Filter whether the asset (Service) is under attack or not."
              },
              {
                "name": "filter[risks.is_publicly_accessible]",
                "value": "false",
                "type": "query",
                "description": "Filter whether the asset (Host) is publicly accessible or not."
              },
              {
                "name": "filter[risks.has_privileged_access]",
                "value": "false",
                "type": "query",
                "description": "Filter whether the asset (Host) has privileged access or not."
              },
              {
                "name": "filter[risks.has_access_to_sensitive_data]",
                "value": "false",
                "type": "query",
                "description": "Filter whether the asset (Host)  has access to sensitive data or not."
              },
              {
                "name": "filter[environments]",
                "value": "staging",
                "type": "query",
                "description": "Filter by environment."
              },
              {
                "name": "filter[arch]",
                "value": "arm64",
                "type": "query",
                "description": "Filter by architecture."
              },
              {
                "name": "filter[operating_system.name]",
                "value": "ubuntu",
                "type": "query",
                "description": "Filter by operating system name."
              },
              {
                "name": "filter[operating_system.version]",
                "value": "24.04",
                "type": "query",
                "description": "Filter by operating system version."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get a list of vulnerable assets.\n\n### Pagination\n\nPlease review the [Pagination section for the \"List Vulnerabilities\"](#pagination) endpoint.\n\n### Filtering\n\nPlease review the [Filtering section for the \"List Vulnerabilities\"](#filtering) endpoint.\n\n### Metadata\n\nPlease review the [Metadata section for the \"List Vulnerabilities\"](#metadata) endpoint.\n"
        }
      ]
    }
  ],
  "bundled": true
}