---
title: "Get the CSM Hosts and Containers Coverage Analysis"
method: GET
path: "/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers"
tags: ["CSM Coverage Analysis"]
---

# Get the CSM Hosts and Containers Coverage Analysis

`GET /api/v2/csm/onboarding/coverage_analysis/hosts_and_containers`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Get the CSM Coverage Analysis of your Hosts and Containers.
This is calculated based on the number of agents running on your Hosts
and Containers with CSM feature(s) enabled.

## Response `200`

OK

- CsmHostsAndContainersCoverageAnalysisResponse: CSM Hosts and Containers Coverage Analysis response.
  - `data` CsmHostsAndContainersCoverageAnalysisData: CSM Hosts and Containers Coverage Analysis data.
    - `attributes` CsmHostsAndContainersCoverageAnalysisAttributes: CSM Hosts and Containers Coverage Analysis attributes.
      - `cspm_coverage` CsmCoverageAnalysis: CSM Coverage Analysis.
        - `configured_resources_count` integer: The number of fully configured resources.
        - `coverage` number, double: The coverage percentage.
        - `partially_configured_resources_count` integer: The number of partially configured resources.
        - `total_resources_count` integer: The total number of resources.
      - `cws_coverage` CsmCoverageAnalysis: CSM Coverage Analysis.
        - `configured_resources_count` integer: The number of fully configured resources.
        - `coverage` number, double: The coverage percentage.
        - `partially_configured_resources_count` integer: The number of partially configured resources.
        - `total_resources_count` integer: The total number of resources.
      - `org_id` integer: The ID of your organization.
      - `total_coverage` CsmCoverageAnalysis: CSM Coverage Analysis.
        - `configured_resources_count` integer: The number of fully configured resources.
        - `coverage` number, double: The coverage percentage.
        - `partially_configured_resources_count` integer: The number of partially configured resources.
        - `total_resources_count` integer: The total number of resources.
      - `vm_coverage` CsmCoverageAnalysis: CSM Coverage Analysis.
        - `configured_resources_count` integer: The number of fully configured resources.
        - `coverage` number, double: The coverage percentage.
        - `partially_configured_resources_count` integer: The number of partially configured resources.
        - `total_resources_count` integer: The total number of resources.
    - `id` string: The ID of your organization.
    - `type` string: The type of the resource. The value should always be `get_hosts_and_containers_coverage_analysis_response_public_v0`.

## Other responses

- `403`: Not Authorized
- `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)
