Skip to content

Commit 243616d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 87d4d799 of spec repo
1 parent c3259c4 commit 243616d

File tree

14 files changed

+1047
-4
lines changed

14 files changed

+1047
-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": "2024-12-12 15:23:55.421590",
8-
"spec_repo_commit": "222e1f81"
7+
"regenerated": "2024-12-13 13:12:01.334976",
8+
"spec_repo_commit": "87d4d799"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-12 15:23:55.452691",
13-
"spec_repo_commit": "222e1f81"
12+
"regenerated": "2024-12-13 13:12:01.353839",
13+
"spec_repo_commit": "87d4d799"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 189 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,59 @@ 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
3092531105
/api/v2/current_user/application_keys:
3092631106
get:
3092731107
description: List all application keys available for current user
@@ -44617,6 +44797,15 @@ tags:
4461744797
[Test Visibility in Datadog page](https://docs.datadoghq.com/tests/) for more
4461844798
information.
4461944799
name: CI Visibility Tests
44800+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
44801+
detection
44802+
44803+
and continuous configuration audits across your entire cloud infrastructure,
44804+
44805+
all in a unified view for seamless collaboration and faster remediation.
44806+
44807+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
44808+
name: CSM Agents
4462044809
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4462144810
and process activity across your environment to detect real-time threats to your
4462244811
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()

features/scenarios_model_mapping.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,12 @@
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+
},
11741180
"v2.DeleteDashboardListItems" => {
11751181
"dashboard_list_id" => "Integer",
11761182
"body" => "DashboardListDeleteItemsRequest",

features/v2/csm_agents.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@endpoint(csm-agents) @endpoint(csm-agents-v2)
2+
Feature: CSM Agents
3+
Datadog Cloud Security Management (CSM) delivers real-time threat
4+
detection and continuous configuration audits across your entire cloud
5+
infrastructure, all in a unified view for seamless collaboration and
6+
faster remediation. Go to
7+
https://docs.datadoghq.com/security/cloud_security_management to learn
8+
more
9+
10+
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
11+
Scenario: Get all CSM Agents returns "OK" response
12+
Given a valid "apiKeyAuth" key in the system
13+
And a valid "appKeyAuth" key in the system
14+
And an instance of "CSMAgents" API
15+
And new "ListAllCSMAgents" request
16+
When the request is sent
17+
Then the response status is 200 OK
18+
And the response "data.type" is equal to "datadog_agent"

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@
474474
"type": "safe"
475475
}
476476
},
477+
"ListAllCSMAgents": {
478+
"tag": "CSM Agents",
479+
"undo": {
480+
"type": "safe"
481+
}
482+
},
477483
"ListCurrentUserApplicationKeys": {
478484
"tag": "Key Management",
479485
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,11 @@ def overrides
12711271
"v2.create_rule_response" => "CreateRuleResponse",
12721272
"v2.create_rule_response_data" => "CreateRuleResponseData",
12731273
"v2.creator" => "Creator",
1274+
"v2.csm_agent_data" => "CsmAgentData",
1275+
"v2.csm_agents_attributes" => "CsmAgentsAttributes",
1276+
"v2.csm_agents_metadata" => "CSMAgentsMetadata",
1277+
"v2.csm_agents_response" => "CsmAgentsResponse",
1278+
"v2.csm_agents_type" => "CSMAgentsType",
12741279
"v2.custom_cost_get_response_meta" => "CustomCostGetResponseMeta",
12751280
"v2.custom_cost_list_response_meta" => "CustomCostListResponseMeta",
12761281
"v2.custom_costs_file_get_response" => "CustomCostsFileGetResponse",
@@ -1984,6 +1989,7 @@ def overrides
19841989
"v2.opsgenie_service_update_attributes" => "OpsgenieServiceUpdateAttributes",
19851990
"v2.opsgenie_service_update_data" => "OpsgenieServiceUpdateData",
19861991
"v2.opsgenie_service_update_request" => "OpsgenieServiceUpdateRequest",
1992+
"v2.order_direction" => "OrderDirection",
19871993
"v2.organization" => "Organization",
19881994
"v2.organization_attributes" => "OrganizationAttributes",
19891995
"v2.organizations_type" => "OrganizationsType",
@@ -2703,6 +2709,7 @@ def overrides
27032709
"v2.confluent_cloud_api" => "ConfluentCloudAPI",
27042710
"v2.container_images_api" => "ContainerImagesAPI",
27052711
"v2.containers_api" => "ContainersAPI",
2712+
"v2.csm_agents_api" => "CSMAgentsAPI",
27062713
"v2.csm_threats_api" => "CSMThreatsAPI",
27072714
"v2.dashboard_lists_api" => "DashboardListsAPI",
27082715
"v2.data_deletion_api" => "DataDeletionAPI",

0 commit comments

Comments
 (0)