Skip to content

Commit 99cf671

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add CSM Coverage Analysis API specs (#2329)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5aecaab commit 99cf671

28 files changed

+1203
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-02 14:39:45.568008",
8-
"spec_repo_commit": "b4e964b3"
7+
"regenerated": "2025-01-02 15:18:22.861274",
8+
"spec_repo_commit": "bc53c28f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-02 14:39:45.582278",
13-
"spec_repo_commit": "b4e964b3"
12+
"regenerated": "2025-01-02 15:18:22.882795",
13+
"spec_repo_commit": "bc53c28f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7340,6 +7340,140 @@ components:
73407340
meta:
73417341
$ref: '#/components/schemas/CSMAgentsMetadata'
73427342
type: object
7343+
CsmCloudAccountsCoverageAnalysisAttributes:
7344+
description: CSM Cloud Accounts Coverage Analysis attributes.
7345+
properties:
7346+
aws_coverage:
7347+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7348+
azure_coverage:
7349+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7350+
gcp_coverage:
7351+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7352+
org_id:
7353+
description: The ID of your organization.
7354+
example: 123456
7355+
format: int64
7356+
type: integer
7357+
total_coverage:
7358+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7359+
type: object
7360+
CsmCloudAccountsCoverageAnalysisData:
7361+
description: CSM Cloud Accounts Coverage Analysis data.
7362+
properties:
7363+
attributes:
7364+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisAttributes'
7365+
id:
7366+
description: The ID of your organization.
7367+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7368+
type: string
7369+
type:
7370+
default: get_cloud_accounts_coverage_analysis_response_public_v0
7371+
description: The type of the resource. The value should always be `get_cloud_accounts_coverage_analysis_response_public_v0`.
7372+
example: get_cloud_accounts_coverage_analysis_response_public_v0
7373+
type: string
7374+
type: object
7375+
CsmCloudAccountsCoverageAnalysisResponse:
7376+
description: CSM Cloud Accounts Coverage Analysis response.
7377+
properties:
7378+
data:
7379+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisData'
7380+
type: object
7381+
CsmCoverageAnalysis:
7382+
description: CSM Coverage Analysis.
7383+
properties:
7384+
configured_resources_count:
7385+
description: The number of fully configured resources.
7386+
example: 8
7387+
format: int64
7388+
type: integer
7389+
coverage:
7390+
description: The coverage percentage.
7391+
example: 0.8
7392+
format: double
7393+
type: number
7394+
partially_configured_resources_count:
7395+
description: The number of partially configured resources.
7396+
example: 0
7397+
format: int64
7398+
type: integer
7399+
total_resources_count:
7400+
description: The total number of resources.
7401+
example: 10
7402+
format: int64
7403+
type: integer
7404+
type: object
7405+
CsmHostsAndContainersCoverageAnalysisAttributes:
7406+
description: CSM Hosts and Containers Coverage Analysis attributes.
7407+
properties:
7408+
cspm_coverage:
7409+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7410+
cws_coverage:
7411+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7412+
org_id:
7413+
description: The ID of your organization.
7414+
example: 123456
7415+
format: int64
7416+
type: integer
7417+
total_coverage:
7418+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7419+
vm_coverage:
7420+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7421+
type: object
7422+
CsmHostsAndContainersCoverageAnalysisData:
7423+
description: CSM Hosts and Containers Coverage Analysis data.
7424+
properties:
7425+
attributes:
7426+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisAttributes'
7427+
id:
7428+
description: The ID of your organization.
7429+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7430+
type: string
7431+
type:
7432+
default: get_hosts_and_containers_coverage_analysis_response_public_v0
7433+
description: The type of the resource. The value should always be `get_hosts_and_containers_coverage_analysis_response_public_v0`.
7434+
example: get_hosts_and_containers_coverage_analysis_response_public_v0
7435+
type: string
7436+
type: object
7437+
CsmHostsAndContainersCoverageAnalysisResponse:
7438+
description: CSM Hosts and Containers Coverage Analysis response.
7439+
properties:
7440+
data:
7441+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisData'
7442+
type: object
7443+
CsmServerlessCoverageAnalysisAttributes:
7444+
description: CSM Serverless Resources Coverage Analysis attributes.
7445+
properties:
7446+
cws_coverage:
7447+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7448+
org_id:
7449+
description: The ID of your organization.
7450+
example: 123456
7451+
format: int64
7452+
type: integer
7453+
total_coverage:
7454+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7455+
type: object
7456+
CsmServerlessCoverageAnalysisData:
7457+
description: CSM Serverless Resources Coverage Analysis data.
7458+
properties:
7459+
attributes:
7460+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisAttributes'
7461+
id:
7462+
description: The ID of your organization.
7463+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7464+
type: string
7465+
type:
7466+
default: get_serverless_coverage_analysis_response_public_v0
7467+
description: The type of the resource. The value should always be `get_serverless_coverage_analysis_response_public_v0`.
7468+
example: get_serverless_coverage_analysis_response_public_v0
7469+
type: string
7470+
type: object
7471+
CsmServerlessCoverageAnalysisResponse:
7472+
description: CSM Serverless Resources Coverage Analysis response.
7473+
properties:
7474+
data:
7475+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisData'
7476+
type: object
73437477
CustomConnection:
73447478
description: The definition of `CustomConnection` object.
73457479
properties:
@@ -33610,6 +33744,72 @@ paths:
3361033744
summary: Get all CSM Agents
3361133745
tags:
3361233746
- CSM Agents
33747+
/api/v2/csm/onboarding/coverage_analysis/cloud_accounts:
33748+
get:
33749+
description: 'Get the CSM Coverage Analysis of your Cloud Accounts.
33750+
33751+
This is calculated based on the number of your Cloud Accounts that are
33752+
33753+
scanned for security issues.'
33754+
operationId: GetCSMCloudAccountsCoverageAnalysis
33755+
responses:
33756+
'200':
33757+
content:
33758+
application/json:
33759+
schema:
33760+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisResponse'
33761+
description: OK
33762+
'403':
33763+
$ref: '#/components/responses/NotAuthorizedResponse'
33764+
'429':
33765+
$ref: '#/components/responses/TooManyRequestsResponse'
33766+
summary: Get the CSM Cloud Accounts Coverage Analysis
33767+
tags:
33768+
- CSM Coverage Analysis
33769+
/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers:
33770+
get:
33771+
description: 'Get the CSM Coverage Analysis of your Hosts and Containers.
33772+
33773+
This is calculated based on the number of agents running on your Hosts
33774+
33775+
and Containers with CSM feature(s) enabled.'
33776+
operationId: GetCSMHostsAndContainersCoverageAnalysis
33777+
responses:
33778+
'200':
33779+
content:
33780+
application/json:
33781+
schema:
33782+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisResponse'
33783+
description: OK
33784+
'403':
33785+
$ref: '#/components/responses/NotAuthorizedResponse'
33786+
'429':
33787+
$ref: '#/components/responses/TooManyRequestsResponse'
33788+
summary: Get the CSM Hosts and Containers Coverage Analysis
33789+
tags:
33790+
- CSM Coverage Analysis
33791+
/api/v2/csm/onboarding/coverage_analysis/serverless:
33792+
get:
33793+
description: 'Get the CSM Coverage Analysis of your Serverless Resources.
33794+
33795+
This is calculated based on the number of agents running on your Serverless
33796+
33797+
Resources with CSM feature(s) enabled.'
33798+
operationId: GetCSMServerlessCoverageAnalysis
33799+
responses:
33800+
'200':
33801+
content:
33802+
application/json:
33803+
schema:
33804+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisResponse'
33805+
description: OK
33806+
'403':
33807+
$ref: '#/components/responses/NotAuthorizedResponse'
33808+
'429':
33809+
$ref: '#/components/responses/TooManyRequestsResponse'
33810+
summary: Get the CSM Serverless Coverage Analysis
33811+
tags:
33812+
- CSM Coverage Analysis
3361333813
/api/v2/csm/onboarding/serverless/agents:
3361433814
get:
3361533815
description: Get the list of all CSM Serverless Agents running on your hosts
@@ -47941,6 +48141,15 @@ tags:
4794148141

4794248142
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
4794348143
name: CSM Agents
48144+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
48145+
detection
48146+
48147+
and continuous configuration audits across your entire cloud infrastructure,
48148+
48149+
all in a unified view for seamless collaboration and faster remediation.
48150+
48151+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more.'
48152+
name: CSM Coverage Analysis
4794448153
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4794548154
and process activity across your environment to detect real-time threats to your
4794648155
infrastructure. See [Cloud Security Management Threats](https://docs.datadoghq.com/security/threats/)

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ datadog\_api\_client.v2.api.csm\_agents\_api module
123123
:members:
124124
:show-inheritance:
125125

126+
datadog\_api\_client.v2.api.csm\_coverage\_analysis\_api module
127+
---------------------------------------------------------------
128+
129+
.. automodule:: datadog_api_client.v2.api.csm_coverage_analysis_api
130+
:members:
131+
:show-inheritance:
132+
126133
datadog\_api\_client.v2.api.csm\_threats\_api module
127134
----------------------------------------------------
128135

docs/datadog_api_client.v2.model.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,6 +2839,76 @@ datadog\_api\_client.v2.model.csm\_agents\_type module
28392839
:members:
28402840
:show-inheritance:
28412841

2842+
datadog\_api\_client.v2.model.csm\_cloud\_accounts\_coverage\_analysis\_attributes module
2843+
-----------------------------------------------------------------------------------------
2844+
2845+
.. automodule:: datadog_api_client.v2.model.csm_cloud_accounts_coverage_analysis_attributes
2846+
:members:
2847+
:show-inheritance:
2848+
2849+
datadog\_api\_client.v2.model.csm\_cloud\_accounts\_coverage\_analysis\_data module
2850+
-----------------------------------------------------------------------------------
2851+
2852+
.. automodule:: datadog_api_client.v2.model.csm_cloud_accounts_coverage_analysis_data
2853+
:members:
2854+
:show-inheritance:
2855+
2856+
datadog\_api\_client.v2.model.csm\_cloud\_accounts\_coverage\_analysis\_response module
2857+
---------------------------------------------------------------------------------------
2858+
2859+
.. automodule:: datadog_api_client.v2.model.csm_cloud_accounts_coverage_analysis_response
2860+
:members:
2861+
:show-inheritance:
2862+
2863+
datadog\_api\_client.v2.model.csm\_coverage\_analysis module
2864+
------------------------------------------------------------
2865+
2866+
.. automodule:: datadog_api_client.v2.model.csm_coverage_analysis
2867+
:members:
2868+
:show-inheritance:
2869+
2870+
datadog\_api\_client.v2.model.csm\_hosts\_and\_containers\_coverage\_analysis\_attributes module
2871+
------------------------------------------------------------------------------------------------
2872+
2873+
.. automodule:: datadog_api_client.v2.model.csm_hosts_and_containers_coverage_analysis_attributes
2874+
:members:
2875+
:show-inheritance:
2876+
2877+
datadog\_api\_client.v2.model.csm\_hosts\_and\_containers\_coverage\_analysis\_data module
2878+
------------------------------------------------------------------------------------------
2879+
2880+
.. automodule:: datadog_api_client.v2.model.csm_hosts_and_containers_coverage_analysis_data
2881+
:members:
2882+
:show-inheritance:
2883+
2884+
datadog\_api\_client.v2.model.csm\_hosts\_and\_containers\_coverage\_analysis\_response module
2885+
----------------------------------------------------------------------------------------------
2886+
2887+
.. automodule:: datadog_api_client.v2.model.csm_hosts_and_containers_coverage_analysis_response
2888+
:members:
2889+
:show-inheritance:
2890+
2891+
datadog\_api\_client.v2.model.csm\_serverless\_coverage\_analysis\_attributes module
2892+
------------------------------------------------------------------------------------
2893+
2894+
.. automodule:: datadog_api_client.v2.model.csm_serverless_coverage_analysis_attributes
2895+
:members:
2896+
:show-inheritance:
2897+
2898+
datadog\_api\_client.v2.model.csm\_serverless\_coverage\_analysis\_data module
2899+
------------------------------------------------------------------------------
2900+
2901+
.. automodule:: datadog_api_client.v2.model.csm_serverless_coverage_analysis_data
2902+
:members:
2903+
:show-inheritance:
2904+
2905+
datadog\_api\_client.v2.model.csm\_serverless\_coverage\_analysis\_response module
2906+
----------------------------------------------------------------------------------
2907+
2908+
.. automodule:: datadog_api_client.v2.model.csm_serverless_coverage_analysis_response
2909+
:members:
2910+
:show-inheritance:
2911+
28422912
datadog\_api\_client.v2.model.custom\_connection module
28432913
-------------------------------------------------------
28442914

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get the CSM Cloud Accounts Coverage Analysis returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.csm_coverage_analysis_api import CSMCoverageAnalysisApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = CSMCoverageAnalysisApi(api_client)
11+
response = api_instance.get_csm_cloud_accounts_coverage_analysis()
12+
13+
print(response)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get the CSM Hosts and Containers Coverage Analysis returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.csm_coverage_analysis_api import CSMCoverageAnalysisApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = CSMCoverageAnalysisApi(api_client)
11+
response = api_instance.get_csm_hosts_and_containers_coverage_analysis()
12+
13+
print(response)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get the CSM Serverless Coverage Analysis returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.csm_coverage_analysis_api import CSMCoverageAnalysisApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = CSMCoverageAnalysisApi(api_client)
11+
response = api_instance.get_csm_serverless_coverage_analysis()
12+
13+
print(response)

0 commit comments

Comments
 (0)