Skip to content

Commit afc23cc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e09f496 of spec repo
1 parent 8b5b094 commit afc23cc

26 files changed

Lines changed: 1366 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,20 @@ components:
13881388
required: true
13891389
schema:
13901390
type: string
1391+
SecurityMonitoringTerraformResourceId:
1392+
description: The ID of the security monitoring resource to export.
1393+
in: path
1394+
name: resource_id
1395+
required: true
1396+
schema:
1397+
type: string
1398+
SecurityMonitoringTerraformResourceType:
1399+
description: The type of security monitoring resource to export.
1400+
in: path
1401+
name: resource_type
1402+
required: true
1403+
schema:
1404+
$ref: "#/components/schemas/SecurityMonitoringTerraformResourceType"
13911405
SensitiveDataScannerGroupID:
13921406
description: The ID of a group of rules.
13931407
in: path
@@ -64476,6 +64490,134 @@ components:
6447664490
$ref: "#/components/schemas/SecurityMonitoringSuppression"
6447764491
type: array
6447864492
type: object
64493+
SecurityMonitoringTerraformBulkExportAttributes:
64494+
description: Attributes for the bulk export request.
64495+
properties:
64496+
resource_ids:
64497+
description: The list of resource IDs to export. Maximum 1000 items.
64498+
example:
64499+
- ""
64500+
items:
64501+
description: The ID of the resource to export.
64502+
type: string
64503+
maxItems: 1000
64504+
type: array
64505+
required:
64506+
- resource_ids
64507+
type: object
64508+
SecurityMonitoringTerraformBulkExportData:
64509+
description: The bulk export request data object.
64510+
properties:
64511+
attributes:
64512+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportAttributes"
64513+
type:
64514+
description: The JSON:API type. Always `bulk_export_resources`.
64515+
example: bulk_export_resources
64516+
type: string
64517+
required:
64518+
- type
64519+
- attributes
64520+
type: object
64521+
SecurityMonitoringTerraformBulkExportRequest:
64522+
description: Request body for bulk exporting security monitoring resources to Terraform.
64523+
properties:
64524+
data:
64525+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportData"
64526+
required:
64527+
- data
64528+
type: object
64529+
SecurityMonitoringTerraformConvertAttributes:
64530+
description: Attributes for the convert request.
64531+
properties:
64532+
resource_json:
64533+
additionalProperties: {}
64534+
description: The resource attributes as a JSON object, matching the structure returned by the corresponding Datadog API (for example, the attributes of a suppression rule).
64535+
example:
64536+
enabled: true
64537+
name: Custom suppression
64538+
rule_query: type:log_detection source:cloudtrail
64539+
suppression_query: env:staging status:low
64540+
type: object
64541+
required:
64542+
- resource_json
64543+
type: object
64544+
SecurityMonitoringTerraformConvertData:
64545+
description: The convert request data object.
64546+
properties:
64547+
attributes:
64548+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertAttributes"
64549+
id:
64550+
description: The ID of the resource being converted.
64551+
example: abc-123
64552+
type: string
64553+
type:
64554+
description: The JSON:API type. Always `convert_resource`.
64555+
example: convert_resource
64556+
type: string
64557+
required:
64558+
- type
64559+
- id
64560+
- attributes
64561+
type: object
64562+
SecurityMonitoringTerraformConvertRequest:
64563+
description: Request body for converting a security monitoring resource JSON to Terraform.
64564+
properties:
64565+
data:
64566+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertData"
64567+
required:
64568+
- data
64569+
type: object
64570+
SecurityMonitoringTerraformExportAttributes:
64571+
description: Attributes of the Terraform export response.
64572+
properties:
64573+
output:
64574+
description: The Terraform configuration for the resource.
64575+
type: string
64576+
resource_id:
64577+
description: The ID of the exported resource.
64578+
example: abc-123
64579+
type: string
64580+
type_name:
64581+
description: The Terraform resource type name.
64582+
example: datadog_security_monitoring_suppression
64583+
type: string
64584+
required:
64585+
- type_name
64586+
- resource_id
64587+
type: object
64588+
SecurityMonitoringTerraformExportData:
64589+
description: The Terraform export data object.
64590+
properties:
64591+
attributes:
64592+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportAttributes"
64593+
id:
64594+
description: The resource identifier composed of the Terraform type name and the resource ID separated by `|`.
64595+
example: datadog_security_monitoring_suppression|abc-123
64596+
type: string
64597+
type:
64598+
description: The JSON:API type. Always `format_resource`.
64599+
example: format_resource
64600+
type: string
64601+
required:
64602+
- type
64603+
- id
64604+
- attributes
64605+
type: object
64606+
SecurityMonitoringTerraformExportResponse:
64607+
description: Response containing the Terraform configuration for a security monitoring resource.
64608+
properties:
64609+
data:
64610+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportData"
64611+
type: object
64612+
SecurityMonitoringTerraformResourceType:
64613+
description: The type of security monitoring resource to export to Terraform.
64614+
enum:
64615+
- suppressions
64616+
- critical_assets
64617+
type: string
64618+
x-enum-varnames:
64619+
- SUPPRESSIONS
64620+
- CRITICAL_ASSETS
6447964621
SecurityMonitoringThirdPartyRootQuery:
6448064622
description: A query to be combined with the third party case query.
6448164623
properties:
@@ -113751,6 +113893,141 @@ paths:
113751113893
permissions:
113752113894
- security_monitoring_rules_read
113753113895
- security_monitoring_signals_read
113896+
/api/v2/security_monitoring/terraform/{resource_type}/bulk:
113897+
post:
113898+
description: |-
113899+
Export multiple security monitoring resources to Terraform, packaged as a zip archive.
113900+
The `resource_type` path parameter specifies the type of resources to export
113901+
and must be one of `suppressions` or `critical_assets`.
113902+
A maximum of 1000 resources can be exported in a single request.
113903+
operationId: BulkExportSecurityMonitoringTerraformResources
113904+
parameters:
113905+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
113906+
requestBody:
113907+
content:
113908+
application/json:
113909+
schema:
113910+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportRequest"
113911+
description: The resource IDs to export.
113912+
required: true
113913+
responses:
113914+
"200":
113915+
content:
113916+
application/zip:
113917+
schema:
113918+
format: binary
113919+
type: string
113920+
description: OK
113921+
"400":
113922+
$ref: "#/components/responses/BadRequestResponse"
113923+
"403":
113924+
$ref: "#/components/responses/NotAuthorizedResponse"
113925+
"404":
113926+
$ref: "#/components/responses/NotFoundResponse"
113927+
"429":
113928+
$ref: "#/components/responses/TooManyRequestsResponse"
113929+
security:
113930+
- apiKeyAuth: []
113931+
appKeyAuth: []
113932+
- AuthZ:
113933+
- security_monitoring_suppressions_read
113934+
- AuthZ:
113935+
- security_monitoring_rules_read
113936+
summary: Export security monitoring resources to Terraform
113937+
tags:
113938+
- Security Monitoring
113939+
x-codegen-request-body-name: body
113940+
"x-permission":
113941+
operator: OR
113942+
permissions:
113943+
- security_monitoring_suppressions_read
113944+
- security_monitoring_rules_read
113945+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
113946+
/api/v2/security_monitoring/terraform/{resource_type}/convert:
113947+
post:
113948+
description: |-
113949+
Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
113950+
The `resource_type` path parameter specifies the type of resource to convert
113951+
and must be one of `suppressions` or `critical_assets`.
113952+
operationId: ConvertSecurityMonitoringTerraformResource
113953+
parameters:
113954+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
113955+
requestBody:
113956+
content:
113957+
application/json:
113958+
schema:
113959+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertRequest"
113960+
description: The resource JSON to convert.
113961+
required: true
113962+
responses:
113963+
"200":
113964+
content:
113965+
application/json:
113966+
schema:
113967+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportResponse"
113968+
description: OK
113969+
"400":
113970+
$ref: "#/components/responses/BadRequestResponse"
113971+
"403":
113972+
$ref: "#/components/responses/NotAuthorizedResponse"
113973+
"429":
113974+
$ref: "#/components/responses/TooManyRequestsResponse"
113975+
security:
113976+
- apiKeyAuth: []
113977+
appKeyAuth: []
113978+
- AuthZ:
113979+
- security_monitoring_suppressions_read
113980+
- AuthZ:
113981+
- security_monitoring_rules_read
113982+
summary: Convert security monitoring resource to Terraform
113983+
tags:
113984+
- Security Monitoring
113985+
x-codegen-request-body-name: body
113986+
"x-permission":
113987+
operator: OR
113988+
permissions:
113989+
- security_monitoring_suppressions_read
113990+
- security_monitoring_rules_read
113991+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
113992+
/api/v2/security_monitoring/terraform/{resource_type}/{resource_id}:
113993+
get:
113994+
description: |-
113995+
Export a security monitoring resource to a Terraform configuration.
113996+
The `resource_type` path parameter specifies the type of resource to export
113997+
and must be one of `suppressions` or `critical_assets`.
113998+
operationId: ExportSecurityMonitoringTerraformResource
113999+
parameters:
114000+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
114001+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceId"
114002+
responses:
114003+
"200":
114004+
content:
114005+
application/json:
114006+
schema:
114007+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportResponse"
114008+
description: OK
114009+
"403":
114010+
$ref: "#/components/responses/NotAuthorizedResponse"
114011+
"404":
114012+
$ref: "#/components/responses/NotFoundResponse"
114013+
"429":
114014+
$ref: "#/components/responses/TooManyRequestsResponse"
114015+
security:
114016+
- apiKeyAuth: []
114017+
appKeyAuth: []
114018+
- AuthZ:
114019+
- security_monitoring_suppressions_read
114020+
- AuthZ:
114021+
- security_monitoring_rules_read
114022+
summary: Export security monitoring resource to Terraform
114023+
tags:
114024+
- Security Monitoring
114025+
"x-permission":
114026+
operator: OR
114027+
permissions:
114028+
- security_monitoring_suppressions_read
114029+
- security_monitoring_rules_read
114030+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
113754114031
/api/v2/sensitive-data-scanner/config:
113755114032
get:
113756114033
description: List all the Scanning groups in your organization.

docs/datadog_api_client.v2.model.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28620,6 +28620,76 @@ datadog\_api\_client.v2.model.security\_monitoring\_suppressions\_response modul
2862028620
:members:
2862128621
:show-inheritance:
2862228622

28623+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_bulk\_export\_attributes module
28624+
----------------------------------------------------------------------------------------------
28625+
28626+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_bulk_export_attributes
28627+
:members:
28628+
:show-inheritance:
28629+
28630+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_bulk\_export\_data module
28631+
----------------------------------------------------------------------------------------
28632+
28633+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_bulk_export_data
28634+
:members:
28635+
:show-inheritance:
28636+
28637+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_bulk\_export\_request module
28638+
-------------------------------------------------------------------------------------------
28639+
28640+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_bulk_export_request
28641+
:members:
28642+
:show-inheritance:
28643+
28644+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_convert\_attributes module
28645+
-----------------------------------------------------------------------------------------
28646+
28647+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_convert_attributes
28648+
:members:
28649+
:show-inheritance:
28650+
28651+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_convert\_data module
28652+
-----------------------------------------------------------------------------------
28653+
28654+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_convert_data
28655+
:members:
28656+
:show-inheritance:
28657+
28658+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_convert\_request module
28659+
--------------------------------------------------------------------------------------
28660+
28661+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_convert_request
28662+
:members:
28663+
:show-inheritance:
28664+
28665+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_export\_attributes module
28666+
----------------------------------------------------------------------------------------
28667+
28668+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_export_attributes
28669+
:members:
28670+
:show-inheritance:
28671+
28672+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_export\_data module
28673+
----------------------------------------------------------------------------------
28674+
28675+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_export_data
28676+
:members:
28677+
:show-inheritance:
28678+
28679+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_export\_response module
28680+
--------------------------------------------------------------------------------------
28681+
28682+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_export_response
28683+
:members:
28684+
:show-inheritance:
28685+
28686+
datadog\_api\_client.v2.model.security\_monitoring\_terraform\_resource\_type module
28687+
------------------------------------------------------------------------------------
28688+
28689+
.. automodule:: datadog_api_client.v2.model.security_monitoring_terraform_resource_type
28690+
:members:
28691+
:show-inheritance:
28692+
2862328693
datadog\_api\_client.v2.model.security\_monitoring\_third\_party\_root\_query module
2862428694
------------------------------------------------------------------------------------
2862528695

0 commit comments

Comments
 (0)