---
title: "Get the CSM Serverless Coverage Analysis"
method: GET
path: "/api/v2/csm/onboarding/coverage_analysis/serverless"
tags: ["CSM Coverage Analysis"]
---

# Get the CSM Serverless Coverage Analysis

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

## Request

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

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

## Response `200`

OK

- CsmServerlessCoverageAnalysisResponse: CSM Serverless Resources Coverage Analysis response.
  - `data` CsmServerlessCoverageAnalysisData: CSM Serverless Resources Coverage Analysis data.
    - `attributes` CsmServerlessCoverageAnalysisAttributes: CSM Serverless Resources Coverage Analysis attributes.
      - `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.
    - `id` string: The ID of your organization.
    - `type` string: The type of the resource. The value should always be `get_serverless_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)
