diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99b25f0ac8..4b1026f1b2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -88613,10 +88613,14 @@ components: enum: - suppressions - critical_assets + - security_filters + - rules type: string x-enum-varnames: - SUPPRESSIONS - CRITICAL_ASSETS + - SECURITY_FILTERS + - RULES SecurityMonitoringThirdPartyRootQuery: description: A query to be combined with the third party case query. properties: @@ -177097,8 +177101,9 @@ paths: description: |- Export multiple security monitoring resources to Terraform, packaged as a zip archive. The `resource_type` path parameter specifies the type of resources to export - and must be one of `suppressions` or `critical_assets`. + and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`. A maximum of 1000 resources can be exported in a single request. + For `rules`, partner rules cannot be exported and return a 400 error. operationId: BulkExportSecurityMonitoringTerraformResources parameters: - $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType" @@ -177143,6 +177148,8 @@ paths: - security_monitoring_suppressions_read - AuthZ: - security_monitoring_rules_read + - AuthZ: + - security_monitoring_filters_read summary: Export security monitoring resources to Terraform tags: - Security Monitoring @@ -177152,13 +177159,14 @@ paths: permissions: - security_monitoring_suppressions_read - security_monitoring_rules_read + - security_monitoring_filters_read x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)." /api/v2/security_monitoring/terraform/{resource_type}/convert: post: description: |- Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform. The `resource_type` path parameter specifies the type of resource to convert - and must be one of `suppressions` or `critical_assets`. + and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`. operationId: ConvertSecurityMonitoringTerraformResource parameters: - $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType" @@ -177211,6 +177219,8 @@ paths: - security_monitoring_suppressions_read - AuthZ: - security_monitoring_rules_read + - AuthZ: + - security_monitoring_filters_read summary: Convert security monitoring resource to Terraform tags: - Security Monitoring @@ -177220,13 +177230,15 @@ paths: permissions: - security_monitoring_suppressions_read - security_monitoring_rules_read + - security_monitoring_filters_read x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)." /api/v2/security_monitoring/terraform/{resource_type}/{resource_id}: get: description: |- Export a security monitoring resource to a Terraform configuration. The `resource_type` path parameter specifies the type of resource to export - and must be one of `suppressions` or `critical_assets`. + and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`. + For `rules`, partner rules cannot be exported and return a 400 error. operationId: ExportSecurityMonitoringTerraformResource parameters: - $ref: "#/components/parameters/SecurityMonitoringTerraformResourceType" @@ -177261,6 +177273,8 @@ paths: - security_monitoring_suppressions_read - AuthZ: - security_monitoring_rules_read + - AuthZ: + - security_monitoring_filters_read summary: Export security monitoring resource to Terraform tags: - Security Monitoring @@ -177269,6 +177283,7 @@ paths: permissions: - security_monitoring_suppressions_read - security_monitoring_rules_read + - security_monitoring_filters_read x-unstable: "**Note**: This endpoint is in Preview. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/)." /api/v2/sensitive-data-scanner/config: get: diff --git a/src/datadog_api_client/v2/api/security_monitoring_api.py b/src/datadog_api_client/v2/api/security_monitoring_api.py index 513301a1ad..8c5ff67fdf 100644 --- a/src/datadog_api_client/v2/api/security_monitoring_api.py +++ b/src/datadog_api_client/v2/api/security_monitoring_api.py @@ -4725,8 +4725,9 @@ def bulk_export_security_monitoring_terraform_resources( Export multiple security monitoring resources to Terraform, packaged as a zip archive. The ``resource_type`` path parameter specifies the type of resources to export - and must be one of ``suppressions`` or ``critical_assets``. + and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``. A maximum of 1000 resources can be exported in a single request. + For ``rules`` , partner rules cannot be exported and return a 400 error. :param resource_type: The type of security monitoring resource to export. :type resource_type: SecurityMonitoringTerraformResourceType @@ -4834,7 +4835,7 @@ def convert_security_monitoring_terraform_resource( Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform. The ``resource_type`` path parameter specifies the type of resource to convert - and must be one of ``suppressions`` or ``critical_assets``. + and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``. :param resource_type: The type of security monitoring resource to export. :type resource_type: SecurityMonitoringTerraformResourceType @@ -5566,7 +5567,8 @@ def export_security_monitoring_terraform_resource( Export a security monitoring resource to a Terraform configuration. The ``resource_type`` path parameter specifies the type of resource to export - and must be one of ``suppressions`` or ``critical_assets``. + and must be one of ``suppressions`` , ``critical_assets`` , ``security_filters`` , or ``rules``. + For ``rules`` , partner rules cannot be exported and return a 400 error. :param resource_type: The type of security monitoring resource to export. :type resource_type: SecurityMonitoringTerraformResourceType diff --git a/src/datadog_api_client/v2/model/security_monitoring_terraform_resource_type.py b/src/datadog_api_client/v2/model/security_monitoring_terraform_resource_type.py index 24e2b29eb1..960669e57f 100644 --- a/src/datadog_api_client/v2/model/security_monitoring_terraform_resource_type.py +++ b/src/datadog_api_client/v2/model/security_monitoring_terraform_resource_type.py @@ -16,16 +16,20 @@ class SecurityMonitoringTerraformResourceType(ModelSimple): """ The type of security monitoring resource to export to Terraform. - :param value: Must be one of ["suppressions", "critical_assets"]. + :param value: Must be one of ["suppressions", "critical_assets", "security_filters", "rules"]. :type value: str """ allowed_values = { "suppressions", "critical_assets", + "security_filters", + "rules", } SUPPRESSIONS: ClassVar["SecurityMonitoringTerraformResourceType"] CRITICAL_ASSETS: ClassVar["SecurityMonitoringTerraformResourceType"] + SECURITY_FILTERS: ClassVar["SecurityMonitoringTerraformResourceType"] + RULES: ClassVar["SecurityMonitoringTerraformResourceType"] @cached_property def openapi_types(_): @@ -36,3 +40,5 @@ def openapi_types(_): SecurityMonitoringTerraformResourceType.SUPPRESSIONS = SecurityMonitoringTerraformResourceType("suppressions") SecurityMonitoringTerraformResourceType.CRITICAL_ASSETS = SecurityMonitoringTerraformResourceType("critical_assets") +SecurityMonitoringTerraformResourceType.SECURITY_FILTERS = SecurityMonitoringTerraformResourceType("security_filters") +SecurityMonitoringTerraformResourceType.RULES = SecurityMonitoringTerraformResourceType("rules")