Skip to content

Commit e1b35c8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2b33aae of spec repo
1 parent a159056 commit e1b35c8

File tree

23 files changed

+1831
-0
lines changed

23 files changed

+1831
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,20 @@ components:
11791179
required: true
11801180
schema:
11811181
type: string
1182+
SecurityMonitoringTerraformResourceId:
1183+
description: The ID of the security monitoring resource to export.
1184+
in: path
1185+
name: resource_id
1186+
required: true
1187+
schema:
1188+
type: string
1189+
SecurityMonitoringTerraformResourceType:
1190+
description: The type of security monitoring resource to export.
1191+
in: path
1192+
name: resource_type
1193+
required: true
1194+
schema:
1195+
$ref: "#/components/schemas/SecurityMonitoringTerraformResourceType"
11821196
SensitiveDataScannerGroupID:
11831197
description: The ID of a group of rules.
11841198
in: path
@@ -61471,6 +61485,134 @@ components:
6147161485
$ref: "#/components/schemas/SecurityMonitoringSuppression"
6147261486
type: array
6147361487
type: object
61488+
SecurityMonitoringTerraformBulkExportAttributes:
61489+
description: Attributes for the bulk export request.
61490+
properties:
61491+
resource_ids:
61492+
description: The list of resource IDs to export. Maximum 1000 items.
61493+
example:
61494+
- ""
61495+
items:
61496+
description: The ID of the resource to export.
61497+
type: string
61498+
maxItems: 1000
61499+
type: array
61500+
required:
61501+
- resource_ids
61502+
type: object
61503+
SecurityMonitoringTerraformBulkExportData:
61504+
description: The bulk export request data object.
61505+
properties:
61506+
attributes:
61507+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportAttributes"
61508+
type:
61509+
description: The JSON:API type. Always `bulk_export_resources`.
61510+
example: bulk_export_resources
61511+
type: string
61512+
required:
61513+
- type
61514+
- attributes
61515+
type: object
61516+
SecurityMonitoringTerraformBulkExportRequest:
61517+
description: Request body for bulk exporting security monitoring resources to Terraform.
61518+
properties:
61519+
data:
61520+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportData"
61521+
required:
61522+
- data
61523+
type: object
61524+
SecurityMonitoringTerraformConvertAttributes:
61525+
description: Attributes for the convert request.
61526+
properties:
61527+
resource_json:
61528+
additionalProperties: {}
61529+
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).
61530+
example:
61531+
enabled: true
61532+
name: Custom suppression
61533+
rule_query: type:log_detection source:cloudtrail
61534+
suppression_query: env:staging status:low
61535+
type: object
61536+
required:
61537+
- resource_json
61538+
type: object
61539+
SecurityMonitoringTerraformConvertData:
61540+
description: The convert request data object.
61541+
properties:
61542+
attributes:
61543+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertAttributes"
61544+
id:
61545+
description: The ID of the resource being converted.
61546+
example: abc-123
61547+
type: string
61548+
type:
61549+
description: The JSON:API type. Always `convert_resource`.
61550+
example: convert_resource
61551+
type: string
61552+
required:
61553+
- type
61554+
- id
61555+
- attributes
61556+
type: object
61557+
SecurityMonitoringTerraformConvertRequest:
61558+
description: Request body for converting a security monitoring resource JSON to Terraform.
61559+
properties:
61560+
data:
61561+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertData"
61562+
required:
61563+
- data
61564+
type: object
61565+
SecurityMonitoringTerraformExportAttributes:
61566+
description: Attributes of the Terraform export response.
61567+
properties:
61568+
output:
61569+
description: The Terraform configuration for the resource.
61570+
type: string
61571+
resource_id:
61572+
description: The ID of the exported resource.
61573+
example: abc-123
61574+
type: string
61575+
type_name:
61576+
description: The Terraform resource type name.
61577+
example: datadog_security_monitoring_suppression
61578+
type: string
61579+
required:
61580+
- type_name
61581+
- resource_id
61582+
type: object
61583+
SecurityMonitoringTerraformExportData:
61584+
description: The Terraform export data object.
61585+
properties:
61586+
attributes:
61587+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportAttributes"
61588+
id:
61589+
description: The resource identifier composed of the Terraform type name and the resource ID separated by `|`.
61590+
example: datadog_security_monitoring_suppression|abc-123
61591+
type: string
61592+
type:
61593+
description: The JSON:API type. Always `format_resource`.
61594+
example: format_resource
61595+
type: string
61596+
required:
61597+
- type
61598+
- id
61599+
- attributes
61600+
type: object
61601+
SecurityMonitoringTerraformExportResponse:
61602+
description: Response containing the Terraform configuration for a security monitoring resource.
61603+
properties:
61604+
data:
61605+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportData"
61606+
type: object
61607+
SecurityMonitoringTerraformResourceType:
61608+
description: The type of security monitoring resource to export to Terraform.
61609+
enum:
61610+
- suppressions
61611+
- critical_assets
61612+
type: string
61613+
x-enum-varnames:
61614+
- SUPPRESSIONS
61615+
- CRITICAL_ASSETS
6147461616
SecurityMonitoringThirdPartyRootQuery:
6147561617
description: A query to be combined with the third party case query.
6147661618
properties:
@@ -108012,6 +108154,135 @@ paths:
108012108154
permissions:
108013108155
- security_monitoring_rules_read
108014108156
- security_monitoring_signals_read
108157+
/api/v2/security_monitoring/terraform/{resource_type}/bulk:
108158+
post:
108159+
description: |-
108160+
Export multiple security monitoring resources to Terraform, packaged as a zip archive.
108161+
The `resource_type` path parameter specifies the type of resources to export
108162+
and must be one of `suppressions` or `critical_assets`.
108163+
A maximum of 1000 resources can be exported in a single request.
108164+
operationId: BulkExportSecurityMonitoringTerraformResources
108165+
parameters:
108166+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
108167+
requestBody:
108168+
content:
108169+
application/json:
108170+
schema:
108171+
$ref: "#/components/schemas/SecurityMonitoringTerraformBulkExportRequest"
108172+
description: The resource IDs to export.
108173+
required: true
108174+
responses:
108175+
"200":
108176+
content:
108177+
application/zip:
108178+
schema:
108179+
format: binary
108180+
type: string
108181+
description: OK
108182+
"400":
108183+
$ref: "#/components/responses/BadRequestResponse"
108184+
"403":
108185+
$ref: "#/components/responses/NotAuthorizedResponse"
108186+
"404":
108187+
$ref: "#/components/responses/NotFoundResponse"
108188+
"429":
108189+
$ref: "#/components/responses/TooManyRequestsResponse"
108190+
security:
108191+
- apiKeyAuth: []
108192+
appKeyAuth: []
108193+
- AuthZ:
108194+
- security_monitoring_suppressions_read
108195+
summary: Export security monitoring resources to Terraform
108196+
tags:
108197+
- Security Monitoring
108198+
x-codegen-request-body-name: body
108199+
"x-permission":
108200+
operator: OR
108201+
permissions:
108202+
- security_monitoring_suppressions_read
108203+
- security_monitoring_rules_read
108204+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
108205+
/api/v2/security_monitoring/terraform/{resource_type}/convert:
108206+
post:
108207+
description: |-
108208+
Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
108209+
The `resource_type` path parameter specifies the type of resource to convert
108210+
and must be one of `suppressions` or `critical_assets`.
108211+
operationId: ConvertSecurityMonitoringTerraformResource
108212+
parameters:
108213+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
108214+
requestBody:
108215+
content:
108216+
application/json:
108217+
schema:
108218+
$ref: "#/components/schemas/SecurityMonitoringTerraformConvertRequest"
108219+
description: The resource JSON to convert.
108220+
required: true
108221+
responses:
108222+
"200":
108223+
content:
108224+
application/json:
108225+
schema:
108226+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportResponse"
108227+
description: OK
108228+
"400":
108229+
$ref: "#/components/responses/BadRequestResponse"
108230+
"403":
108231+
$ref: "#/components/responses/NotAuthorizedResponse"
108232+
"429":
108233+
$ref: "#/components/responses/TooManyRequestsResponse"
108234+
security:
108235+
- apiKeyAuth: []
108236+
appKeyAuth: []
108237+
- AuthZ:
108238+
- security_monitoring_suppressions_read
108239+
summary: Convert security monitoring resource to Terraform
108240+
tags:
108241+
- Security Monitoring
108242+
x-codegen-request-body-name: body
108243+
"x-permission":
108244+
operator: OR
108245+
permissions:
108246+
- security_monitoring_suppressions_read
108247+
- security_monitoring_rules_read
108248+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
108249+
/api/v2/security_monitoring/terraform/{resource_type}/{resource_id}:
108250+
get:
108251+
description: |-
108252+
Export a security monitoring resource to a Terraform configuration.
108253+
The `resource_type` path parameter specifies the type of resource to export
108254+
and must be one of `suppressions` or `critical_assets`.
108255+
operationId: ExportSecurityMonitoringTerraformResource
108256+
parameters:
108257+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType"
108258+
- $ref: "#/components/parameters/SecurityMonitoringTerraformResourceId"
108259+
responses:
108260+
"200":
108261+
content:
108262+
application/json:
108263+
schema:
108264+
$ref: "#/components/schemas/SecurityMonitoringTerraformExportResponse"
108265+
description: OK
108266+
"403":
108267+
$ref: "#/components/responses/NotAuthorizedResponse"
108268+
"404":
108269+
$ref: "#/components/responses/NotFoundResponse"
108270+
"429":
108271+
$ref: "#/components/responses/TooManyRequestsResponse"
108272+
security:
108273+
- apiKeyAuth: []
108274+
appKeyAuth: []
108275+
- AuthZ:
108276+
- security_monitoring_suppressions_read
108277+
summary: Export security monitoring resource to Terraform
108278+
tags:
108279+
- Security Monitoring
108280+
"x-permission":
108281+
operator: OR
108282+
permissions:
108283+
- security_monitoring_suppressions_read
108284+
- security_monitoring_rules_read
108285+
x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)."
108015108286
/api/v2/sensitive-data-scanner/config:
108016108287
get:
108017108288
description: List all the Scanning groups in your organization.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-10T08:55:44.730Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Security Monitoring/Convert security monitoring resource to Terraform returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "1da6a19e5e5846c3b012a46c18a26ff5",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 200,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 627,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"resource_json\":{\"enabled\":true,\"name\":\"Example-Security-Monitoring\",\"rule_query\":\"source:cloudtrail\",\"suppression_query\":\"env:test\"}},\"id\":\"abc-123\",\"type\":\"convert_resource\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/terraform/suppressions/convert"
39+
},
40+
"response": {
41+
"bodySize": 430,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 430,
45+
"text": "{\"data\":{\"id\":\"datadog_security_monitoring_suppression|abc-123\",\"type\":\"format_resource\",\"attributes\":{\"output\":\"resource \\\"datadog_security_monitoring_suppression\\\" \\\"abc-123\\\" {\\n enabled = true\\n name = \\\"Example-Security-Monitoring\\\"\\n rule_query = \\\"source:cloudtrail\\\"\\n suppression_query = \\\"env:test\\\"\\n}\\n\",\"resource_id\":\"abc-123\",\"type_name\":\"datadog_security_monitoring_suppression\"}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 662,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-04-10T08:55:44.733Z",
61+
"time": 376
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-04-10T08:56:17.310Z"

0 commit comments

Comments
 (0)