@@ -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.
0 commit comments