@@ -49985,6 +49985,55 @@ components:
4998549985 - TWO_DAYS
4998649986 - ONE_WEEK
4998749987 - TWO_WEEKS
49988+ SecurityMonitoringRuleBulkExportAttributes:
49989+ description: Attributes for bulk exporting security monitoring rules.
49990+ properties:
49991+ ruleIds:
49992+ description: 'List of rule IDs to export. Each rule will be included in
49993+ the resulting ZIP file
49994+
49995+ as a separate JSON file.'
49996+ example:
49997+ - def-000-u7q
49998+ - def-000-7dd
49999+ items:
50000+ type: string
50001+ minItems: 1
50002+ type: array
50003+ required:
50004+ - ruleIds
50005+ type: object
50006+ SecurityMonitoringRuleBulkExportData:
50007+ description: Data for bulk exporting security monitoring rules.
50008+ properties:
50009+ attributes:
50010+ $ref: '#/components/schemas/SecurityMonitoringRuleBulkExportAttributes'
50011+ id:
50012+ description: Request ID.
50013+ example: bulk_export
50014+ type: string
50015+ type:
50016+ $ref: '#/components/schemas/SecurityMonitoringRuleBulkExportDataType'
50017+ required:
50018+ - attributes
50019+ - type
50020+ type: object
50021+ SecurityMonitoringRuleBulkExportDataType:
50022+ description: The type of the resource.
50023+ enum:
50024+ - security_monitoring_rules_bulk_export
50025+ example: security_monitoring_rules_bulk_export
50026+ type: string
50027+ x-enum-varnames:
50028+ - SECURITY_MONITORING_RULES_BULK_EXPORT
50029+ SecurityMonitoringRuleBulkExportPayload:
50030+ description: Payload for bulk exporting security monitoring rules.
50031+ properties:
50032+ data:
50033+ $ref: '#/components/schemas/SecurityMonitoringRuleBulkExportData'
50034+ required:
50035+ - data
50036+ type: object
4998850037 SecurityMonitoringRuleCase:
4998950038 description: Case when signal is generated.
4999050039 properties:
@@ -87257,6 +87306,51 @@ paths:
8725787306 operator: OR
8725887307 permissions:
8725987308 - security_monitoring_rules_write
87309+ /api/v2/security_monitoring/rules/bulk_export:
87310+ post:
87311+ description: 'Export a list of security monitoring rules as a ZIP file containing
87312+ JSON rule definitions.
87313+
87314+ The endpoint accepts a list of rule IDs and returns a ZIP archive where each
87315+ rule is
87316+
87317+ saved as a separate JSON file named after the rule.'
87318+ operationId: BulkExportSecurityMonitoringRules
87319+ requestBody:
87320+ content:
87321+ application/json:
87322+ schema:
87323+ $ref: '#/components/schemas/SecurityMonitoringRuleBulkExportPayload'
87324+ required: true
87325+ responses:
87326+ '200':
87327+ content:
87328+ application/zip:
87329+ schema:
87330+ format: binary
87331+ type: string
87332+ description: OK
87333+ '400':
87334+ $ref: '#/components/responses/BadRequestResponse'
87335+ '403':
87336+ $ref: '#/components/responses/NotAuthorizedResponse'
87337+ '404':
87338+ $ref: '#/components/responses/NotFoundResponse'
87339+ '429':
87340+ $ref: '#/components/responses/TooManyRequestsResponse'
87341+ security:
87342+ - apiKeyAuth: []
87343+ appKeyAuth: []
87344+ - AuthZ:
87345+ - security_monitoring_rules_read
87346+ summary: Bulk export security monitoring rules
87347+ tags:
87348+ - Security Monitoring
87349+ x-codegen-request-body-name: body
87350+ x-permission:
87351+ operator: OR
87352+ permissions:
87353+ - security_monitoring_rules_read
8726087354 /api/v2/security_monitoring/rules/convert:
8726187355 post:
8726287356 description: 'Convert a rule that doesn''t (yet) exist from JSON to Terraform
0 commit comments