Skip to content

Commit ad47873

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6daeb222 of spec repo
1 parent 02c03ee commit ad47873

17 files changed

+1217
-12
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": "2024-12-13 16:09:30.230478",
8-
"spec_repo_commit": "936a5463"
7+
"regenerated": "2024-12-13 17:23:57.299265",
8+
"spec_repo_commit": "6daeb222"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-13 16:09:30.249799",
13-
"spec_repo_commit": "936a5463"
12+
"regenerated": "2024-12-13 17:23:57.318507",
13+
"spec_repo_commit": "6daeb222"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,6 +4339,34 @@ components:
43394339
from the other indexes
43404340
type: string
43414341
type: object
4342+
CSMAgentsMetadata:
4343+
description: Metadata related to the paginated response.
4344+
properties:
4345+
page_index:
4346+
description: The index of the current page in the paginated results.
4347+
example: 0
4348+
format: int64
4349+
type: integer
4350+
page_size:
4351+
description: The number of items per page in the paginated results.
4352+
example: 10
4353+
format: int64
4354+
type: integer
4355+
total_filtered:
4356+
description: Total number of items that match the filter criteria.
4357+
example: 128697
4358+
format: int64
4359+
type: integer
4360+
type: object
4361+
CSMAgentsType:
4362+
default: datadog_agent
4363+
description: The type of the resource. The value should always be `datadog_agent`.
4364+
enum:
4365+
- datadog_agent
4366+
example: datadog_agent
4367+
type: string
4368+
x-enum-varnames:
4369+
- DATADOG_AGENT
43424370
CalculatedField:
43434371
description: Calculated field.
43444372
properties:
@@ -6630,6 +6658,95 @@ components:
66306658
nullable: true
66316659
type: string
66326660
type: object
6661+
CsmAgentData:
6662+
description: Single Agent Data.
6663+
properties:
6664+
attributes:
6665+
$ref: '#/components/schemas/CsmAgentsAttributes'
6666+
id:
6667+
description: The ID of the Agent.
6668+
example: fffffc5505f6a006fdf7cf5aae053653
6669+
type: string
6670+
type:
6671+
$ref: '#/components/schemas/CSMAgentsType'
6672+
type: object
6673+
CsmAgentsAttributes:
6674+
description: A CSM Agent returned by the API.
6675+
properties:
6676+
Agent_version:
6677+
description: Version of the Datadog Agent.
6678+
type: string
6679+
aws_fargate:
6680+
description: AWS Fargate details.
6681+
type: string
6682+
cluster_name:
6683+
description: List of cluster names associated with the Agent.
6684+
items:
6685+
type: string
6686+
type: array
6687+
datadog_agent:
6688+
description: Unique identifier for the Datadog Agent.
6689+
type: string
6690+
ecs_fargate_task_arn:
6691+
description: ARN of the ECS Fargate task.
6692+
type: string
6693+
envs:
6694+
description: List of environments associated with the Agent.
6695+
items:
6696+
type: string
6697+
type: array
6698+
host_id:
6699+
description: ID of the host.
6700+
format: int64
6701+
type: integer
6702+
hostname:
6703+
description: Name of the host.
6704+
type: string
6705+
install_method_installer_version:
6706+
description: Version of the installer used for installing the Datadog Agent.
6707+
type: string
6708+
install_method_tool:
6709+
description: Tool used for installing the Datadog Agent.
6710+
type: string
6711+
is_csm_vm_containers_enabled:
6712+
description: Indicates if CSM VM Containers is enabled.
6713+
nullable: true
6714+
type: boolean
6715+
is_csm_vm_hosts_enabled:
6716+
description: Indicates if CSM VM Hosts is enabled.
6717+
nullable: true
6718+
type: boolean
6719+
is_cspm_enabled:
6720+
description: Indicates if CSPM is enabled.
6721+
nullable: true
6722+
type: boolean
6723+
is_cws_enabled:
6724+
description: Indicates if CWS is enabled.
6725+
nullable: true
6726+
type: boolean
6727+
is_cws_remote_configuration_enabled:
6728+
description: Indicates if CWS Remote Configuration is enabled.
6729+
nullable: true
6730+
type: boolean
6731+
is_remote_configuration_enabled:
6732+
description: Indicates if Remote Configuration is enabled.
6733+
nullable: true
6734+
type: boolean
6735+
os:
6736+
description: Operating system of the host.
6737+
type: string
6738+
type: object
6739+
CsmAgentsResponse:
6740+
description: Response object that includes a list of CSM Agents.
6741+
properties:
6742+
data:
6743+
description: A list of Agents.
6744+
items:
6745+
$ref: '#/components/schemas/CsmAgentData'
6746+
type: array
6747+
meta:
6748+
$ref: '#/components/schemas/CSMAgentsMetadata'
6749+
type: object
66336750
CustomCostGetResponseMeta:
66346751
description: Meta for the response from the Get Custom Costs endpoints.
66356752
properties:
@@ -17704,6 +17821,16 @@ components:
1770417821
required:
1770517822
- data
1770617823
type: object
17824+
OrderDirection:
17825+
description: The sort direction for results.
17826+
enum:
17827+
- asc
17828+
- desc
17829+
example: asc
17830+
type: string
17831+
x-enum-varnames:
17832+
- ASC
17833+
- DESC
1770717834
OrgConfigGetResponse:
1770817835
description: A response with a single Org Config.
1770917836
properties:
@@ -30922,6 +31049,113 @@ paths:
3092231049
x-unstable: '**Note**: This endpoint is in public beta.
3092331050

3092431051
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
31052+
/api/v2/csm/onboarding/agents:
31053+
get:
31054+
description: Get the list of all CSM Agents running on your hosts and containers.
31055+
operationId: ListAllCSMAgents
31056+
parameters:
31057+
- description: The page index for pagination (zero-based).
31058+
in: query
31059+
name: page
31060+
required: false
31061+
schema:
31062+
example: 2
31063+
format: int32
31064+
maximum: 1000000
31065+
minimum: 0
31066+
type: integer
31067+
- description: The number of items to include in a single page.
31068+
in: query
31069+
name: size
31070+
required: false
31071+
schema:
31072+
example: 12
31073+
format: int32
31074+
maximum: 100
31075+
minimum: 0
31076+
type: integer
31077+
- description: A search query string to filter results (for example, `hostname:COMP-T2H4J27423`).
31078+
in: query
31079+
name: query
31080+
required: false
31081+
schema:
31082+
example: hostname:COMP-T2H4J27423
31083+
type: string
31084+
- description: The sort direction for results. Use `asc` for ascending or `desc`
31085+
for descending.
31086+
in: query
31087+
name: order_direction
31088+
required: false
31089+
schema:
31090+
$ref: '#/components/schemas/OrderDirection'
31091+
responses:
31092+
'200':
31093+
content:
31094+
application/json:
31095+
schema:
31096+
$ref: '#/components/schemas/CsmAgentsResponse'
31097+
description: OK
31098+
'403':
31099+
$ref: '#/components/responses/NotAuthorizedResponse'
31100+
'429':
31101+
$ref: '#/components/responses/TooManyRequestsResponse'
31102+
summary: Get all CSM Agents
31103+
tags:
31104+
- CSM Agents
31105+
/api/v2/csm/onboarding/serverless/agents:
31106+
get:
31107+
description: Get the list of all CSM Serverless Agents running on your hosts
31108+
and containers.
31109+
operationId: ListAllCSMServerlessAgents
31110+
parameters:
31111+
- description: The page index for pagination (zero-based).
31112+
in: query
31113+
name: page
31114+
required: false
31115+
schema:
31116+
example: 2
31117+
format: int32
31118+
maximum: 1000000
31119+
minimum: 0
31120+
type: integer
31121+
- description: The number of items to include in a single page.
31122+
in: query
31123+
name: size
31124+
required: false
31125+
schema:
31126+
example: 12
31127+
format: int32
31128+
maximum: 100
31129+
minimum: 0
31130+
type: integer
31131+
- description: A search query string to filter results (for example, `hostname:COMP-T2H4J27423`).
31132+
in: query
31133+
name: query
31134+
required: false
31135+
schema:
31136+
example: hostname:COMP-T2H4J27423
31137+
type: string
31138+
- description: The sort direction for results. Use `asc` for ascending or `desc`
31139+
for descending.
31140+
in: query
31141+
name: order_direction
31142+
required: false
31143+
schema:
31144+
$ref: '#/components/schemas/OrderDirection'
31145+
responses:
31146+
'200':
31147+
content:
31148+
application/json:
31149+
schema:
31150+
$ref: '#/components/schemas/CsmAgentsResponse'
31151+
description: OK
31152+
'403':
31153+
$ref: '#/components/responses/NotAuthorizedResponse'
31154+
'429':
31155+
$ref: '#/components/responses/TooManyRequestsResponse'
31156+
summary: Get all CSM Serverless Agents
31157+
tags:
31158+
- CSM Agents
3092531159
/api/v2/current_user/application_keys:
3092631160
get:
3092731161
description: List all application keys available for current user
@@ -44626,6 +44860,15 @@ tags:
4462644860
[Test Visibility in Datadog page](https://docs.datadoghq.com/tests/) for more
4462744861
information.
4462844862
name: CI Visibility Tests
44863+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
44864+
detection
44865+
44866+
and continuous configuration audits across your entire cloud infrastructure,
44867+
44868+
all in a unified view for seamless collaboration and faster remediation.
44869+
44870+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
44871+
name: CSM Agents
4462944872
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4463044873
and process activity across your environment to detect real-time threats to your
4463144874
infrastructure. See [Cloud Security Management Threats](https://docs.datadoghq.com/security/threats/)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get all CSM Agents returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CSMAgentsAPI.new
5+
p api_instance.list_all_csm_agents()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get all CSM Serverless Agents returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CSMAgentsAPI.new
5+
p api_instance.list_all_csm_serverless_agents()

features/scenarios_model_mapping.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,18 @@
11711171
"view" => "String",
11721172
"include_connected_accounts" => "Boolean",
11731173
},
1174+
"v2.ListAllCSMAgents" => {
1175+
"page" => "Integer",
1176+
"size" => "Integer",
1177+
"query" => "String",
1178+
"order_direction" => "OrderDirection",
1179+
},
1180+
"v2.ListAllCSMServerlessAgents" => {
1181+
"page" => "Integer",
1182+
"size" => "Integer",
1183+
"query" => "String",
1184+
"order_direction" => "OrderDirection",
1185+
},
11741186
"v2.DeleteDashboardListItems" => {
11751187
"dashboard_list_id" => "Integer",
11761188
"body" => "DashboardListDeleteItemsRequest",

features/v2/container_images.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ Feature: Container Images
1010
And an instance of "ContainerImages" API
1111
And new "ListContainerImages" request
1212

13-
@replay-only @team:DataDog/container-experiences
13+
@replay-only @team:DataDog/processes
1414
Scenario: Get all Container Image groups returns "OK" response
1515
Given request contains "group_by" parameter with value "short_image"
1616
When the request is sent
1717
Then the response status is 200 OK
1818
And the response "data[0].attributes.name" is equal to "test_name"
1919

20-
@generated @skip @team:DataDog/container-experiences
20+
@generated @skip @team:DataDog/processes
2121
Scenario: Get all Container Images returns "Bad Request" response
2222
When the request is sent
2323
Then the response status is 400 Bad Request
2424

25-
@replay-only @team:DataDog/container-experiences
25+
@replay-only @team:DataDog/processes
2626
Scenario: Get all Container Images returns "OK" response
2727
When the request is sent
2828
Then the response status is 200 OK
2929
And the response "data[0].attributes.name" is equal to "test_name"
3030

31-
@replay-only @skip-validation @team:DataDog/container-experiences @with-pagination
31+
@replay-only @skip-validation @team:DataDog/processes @with-pagination
3232
Scenario: Get all Container Images returns "OK" response with pagination
3333
Given request contains "page[size]" parameter with value 2
3434
When the request with pagination is sent

features/v2/containers.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ Feature: Containers
1010
And an instance of "Containers" API
1111
And new "ListContainers" request
1212

13-
@replay-only @team:DataDog/container-experiences
13+
@replay-only @team:DataDog/processes
1414
Scenario: Get All Container groups returns "OK" response
1515
Given request contains "group_by" parameter with value "short_image"
1616
When the request is sent
1717
Then the response status is 200 OK
1818
And the response "data[0].attributes.count" is equal to 123
1919

20-
@generated @skip @team:DataDog/container-experiences
20+
@generated @skip @team:DataDog/processes
2121
Scenario: Get All Containers returns "Bad Request" response
2222
When the request is sent
2323
Then the response status is 400 Bad Request
2424

25-
@replay-only @team:DataDog/container-experiences
25+
@replay-only @team:DataDog/processes
2626
Scenario: Get All Containers returns "OK" response
2727
When the request is sent
2828
Then the response status is 200 OK
2929
And the response "data[0].attributes.name" is equal to "test_name"
3030

31-
@replay-only @skip-validation @team:DataDog/container-experiences @with-pagination
31+
@replay-only @skip-validation @team:DataDog/processes @with-pagination
3232
Scenario: Get All Containers returns "OK" response with pagination
3333
Given request contains "page[size]" parameter with value 2
3434
When the request with pagination is sent

0 commit comments

Comments
 (0)