diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 150bd49be1..642f5da9b9 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -17622,8 +17622,10 @@ components: type: string type: object SyntheticsRestrictedRoles: + deprecated: true description: A list of role identifiers that can be pulled from the Roles API, - for restricting read and write access. + for restricting read and write access. This field is deprecated. Use the restriction + policies API to manage permissions. example: - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx items: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 128bce58ba..406a5c61a8 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -49256,18 +49256,6 @@ components: meta: $ref: '#/components/schemas/ResponseMetaAttributes' type: object - SecurityMonitoringPaginatedSuppressionsResponse: - description: Response object containing the available suppression rules with - pagination metadata. - properties: - data: - description: A list of suppressions objects. - items: - $ref: '#/components/schemas/SecurityMonitoringSuppression' - type: array - meta: - $ref: '#/components/schemas/SecurityMonitoringSuppressionsMeta' - type: object SecurityMonitoringReferenceTable: description: Reference tables used in the queries. properties: @@ -51417,31 +51405,6 @@ components: data: $ref: '#/components/schemas/SecurityMonitoringSuppression' type: object - SecurityMonitoringSuppressionSort: - description: The sort parameters used for querying suppression rules. - enum: - - name - - start_date - - expiration_date - - update_date - - enabled - - -name - - -start_date - - -expiration_date - - -update_date - - -enabled - type: string - x-enum-varnames: - - NAME - - START_DATE - - EXPIRATION_DATE - - UPDATE_DATE - - ENABLED - - NAME_DESCENDING - - START_DATE_DESCENDING - - EXPIRATION_DATE_DESCENDING - - UPDATE_DATE_DESCENDING - - ENABLED_DESCENDING SecurityMonitoringSuppressionType: default: suppressions description: The type of the resource. The value should always be `suppressions`. @@ -51537,31 +51500,6 @@ components: required: - data type: object - SecurityMonitoringSuppressionsMeta: - description: Metadata for the suppression list response. - properties: - page: - $ref: '#/components/schemas/SecurityMonitoringSuppressionsPageMeta' - type: object - SecurityMonitoringSuppressionsPageMeta: - description: Pagination metadata. - properties: - pageNumber: - description: Current page number. - example: 0 - format: int64 - type: integer - pageSize: - description: Current page size. - example: 2 - format: int64 - type: integer - totalCount: - description: Total count of suppressions. - example: 2 - format: int64 - type: integer - type: object SecurityMonitoringSuppressionsResponse: description: Response object containing the available suppression rules. properties: @@ -55419,8 +55357,10 @@ components: type: string type: object SyntheticsRestrictedRoles: + deprecated: true description: A list of role identifiers that can be pulled from the Roles API, - for restricting read and write access. + for restricting read and write access. This field is deprecated. Use the restriction + policies API to manage permissions. example: - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx items: @@ -85732,29 +85672,12 @@ paths: required: false schema: type: string - - description: Attribute used to sort the list of suppression rules. Prefix - with `-` to sort in descending order. - in: query - name: sort - required: false - schema: - $ref: '#/components/schemas/SecurityMonitoringSuppressionSort' - - description: Size for a given page. Use `-1` to return all items. - in: query - name: page[size] - required: false - schema: - default: -1 - example: 10 - format: int64 - type: integer - - $ref: '#/components/parameters/PageNumber' responses: '200': content: application/json: schema: - $ref: '#/components/schemas/SecurityMonitoringPaginatedSuppressionsResponse' + $ref: '#/components/schemas/SecurityMonitoringSuppressionsResponse' description: OK '403': $ref: '#/components/responses/NotAuthorizedResponse' diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index e4ab16db9b..c237bd315d 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -21739,13 +21739,6 @@ datadog\_api\_client.v2.model.security\_monitoring\_list\_rules\_response module :members: :show-inheritance: -datadog\_api\_client.v2.model.security\_monitoring\_paginated\_suppressions\_response module --------------------------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.security_monitoring_paginated_suppressions_response - :members: - :show-inheritance: - datadog\_api\_client.v2.model.security\_monitoring\_reference\_table module --------------------------------------------------------------------------- @@ -22383,13 +22376,6 @@ datadog\_api\_client.v2.model.security\_monitoring\_suppression\_response module :members: :show-inheritance: -datadog\_api\_client.v2.model.security\_monitoring\_suppression\_sort module ----------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.security_monitoring_suppression_sort - :members: - :show-inheritance: - datadog\_api\_client.v2.model.security\_monitoring\_suppression\_type module ---------------------------------------------------------------------------- @@ -22418,20 +22404,6 @@ datadog\_api\_client.v2.model.security\_monitoring\_suppression\_update\_request :members: :show-inheritance: -datadog\_api\_client.v2.model.security\_monitoring\_suppressions\_meta module ------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.security_monitoring_suppressions_meta - :members: - :show-inheritance: - -datadog\_api\_client.v2.model.security\_monitoring\_suppressions\_page\_meta module ------------------------------------------------------------------------------------ - -.. automodule:: datadog_api_client.v2.model.security_monitoring_suppressions_page_meta - :members: - :show-inheritance: - datadog\_api\_client.v2.model.security\_monitoring\_suppressions\_response module --------------------------------------------------------------------------------- diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.py b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.py deleted file mode 100644 index 2c0dabeea2..0000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.py +++ /dev/null @@ -1,24 +0,0 @@ -""" -Get all suppression rules returns "OK" response with sort ascending -""" - -from os import environ -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi -from datadog_api_client.v2.model.security_monitoring_suppression_sort import SecurityMonitoringSuppressionSort - -# there is a valid "suppression" in the system -SUPPRESSION_DATA_ID = environ["SUPPRESSION_DATA_ID"] - -# there is a valid "suppression2" in the system -SUPPRESSION2_DATA_ID = environ["SUPPRESSION2_DATA_ID"] - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = SecurityMonitoringApi(api_client) - response = api_instance.list_security_monitoring_suppressions( - query="id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0", - sort=SecurityMonitoringSuppressionSort.NAME, - ) - - print(response) diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.py b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.py deleted file mode 100644 index e191bc1787..0000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.py +++ /dev/null @@ -1,24 +0,0 @@ -""" -Get all suppression rules returns "OK" response with sort descending -""" - -from os import environ -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi -from datadog_api_client.v2.model.security_monitoring_suppression_sort import SecurityMonitoringSuppressionSort - -# there is a valid "suppression" in the system -SUPPRESSION_DATA_ID = environ["SUPPRESSION_DATA_ID"] - -# there is a valid "suppression2" in the system -SUPPRESSION2_DATA_ID = environ["SUPPRESSION2_DATA_ID"] - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = SecurityMonitoringApi(api_client) - response = api_instance.list_security_monitoring_suppressions( - query="id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0", - sort=SecurityMonitoringSuppressionSort.NAME_DESCENDING, - ) - - print(response) diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.py b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.py deleted file mode 100644 index c038f600a5..0000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.py +++ /dev/null @@ -1,24 +0,0 @@ -""" -Get all suppression rules returns "OK" response with pagination -""" - -from os import environ -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi - -# there is a valid "suppression" in the system -SUPPRESSION_DATA_ID = environ["SUPPRESSION_DATA_ID"] - -# there is a valid "suppression2" in the system -SUPPRESSION2_DATA_ID = environ["SUPPRESSION2_DATA_ID"] - -configuration = Configuration() -with ApiClient(configuration) as api_client: - api_instance = SecurityMonitoringApi(api_client) - response = api_instance.list_security_monitoring_suppressions( - query="id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0", - page_size=1, - page_number=0, - ) - - print(response) diff --git a/src/datadog_api_client/v1/model/synthetics_global_variable_attributes.py b/src/datadog_api_client/v1/model/synthetics_global_variable_attributes.py index ca3e9512a4..e58f89160e 100644 --- a/src/datadog_api_client/v1/model/synthetics_global_variable_attributes.py +++ b/src/datadog_api_client/v1/model/synthetics_global_variable_attributes.py @@ -34,7 +34,7 @@ def __init__(self_, restricted_roles: Union[SyntheticsRestrictedRoles, UnsetType """ Attributes of the global variable. - :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. **Deprecated**. :type restricted_roles: SyntheticsRestrictedRoles, optional """ if restricted_roles is not unset: diff --git a/src/datadog_api_client/v1/model/synthetics_mobile_test_options.py b/src/datadog_api_client/v1/model/synthetics_mobile_test_options.py index 829fc11726..d869ef4b7d 100644 --- a/src/datadog_api_client/v1/model/synthetics_mobile_test_options.py +++ b/src/datadog_api_client/v1/model/synthetics_mobile_test_options.py @@ -168,7 +168,7 @@ def __init__( :param no_screenshot: A boolean set to not take a screenshot for the step. :type no_screenshot: bool, optional - :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. **Deprecated**. :type restricted_roles: SyntheticsRestrictedRoles, optional :param retry: Object describing the retry strategy to apply to a Synthetic test. diff --git a/src/datadog_api_client/v1/model/synthetics_private_location_metadata.py b/src/datadog_api_client/v1/model/synthetics_private_location_metadata.py index fa49bb1ac0..453cb79da3 100644 --- a/src/datadog_api_client/v1/model/synthetics_private_location_metadata.py +++ b/src/datadog_api_client/v1/model/synthetics_private_location_metadata.py @@ -34,7 +34,7 @@ def __init__(self_, restricted_roles: Union[SyntheticsRestrictedRoles, UnsetType """ Object containing metadata about the private location. - :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. **Deprecated**. :type restricted_roles: SyntheticsRestrictedRoles, optional """ if restricted_roles is not unset: diff --git a/src/datadog_api_client/v1/model/synthetics_restricted_roles.py b/src/datadog_api_client/v1/model/synthetics_restricted_roles.py index 2f107c6e17..22a7642abf 100644 --- a/src/datadog_api_client/v1/model/synthetics_restricted_roles.py +++ b/src/datadog_api_client/v1/model/synthetics_restricted_roles.py @@ -12,7 +12,7 @@ class SyntheticsRestrictedRoles(ModelSimple): """ - A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. :type value: [str] diff --git a/src/datadog_api_client/v1/model/synthetics_test_options.py b/src/datadog_api_client/v1/model/synthetics_test_options.py index abcbf1f0db..2ee4c39d45 100644 --- a/src/datadog_api_client/v1/model/synthetics_test_options.py +++ b/src/datadog_api_client/v1/model/synthetics_test_options.py @@ -204,7 +204,7 @@ def __init__( :param no_screenshot: Prevents saving screenshots of the steps. :type no_screenshot: bool, optional - :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. **Deprecated**. :type restricted_roles: SyntheticsRestrictedRoles, optional :param retry: Object describing the retry strategy to apply to a Synthetic test. 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 1905f89201..5f23e8da82 100644 --- a/src/datadog_api_client/v2/api/security_monitoring_api.py +++ b/src/datadog_api_client/v2/api/security_monitoring_api.py @@ -80,15 +80,11 @@ from datadog_api_client.v2.model.security_filter_response import SecurityFilterResponse from datadog_api_client.v2.model.security_filter_create_request import SecurityFilterCreateRequest from datadog_api_client.v2.model.security_filter_update_request import SecurityFilterUpdateRequest -from datadog_api_client.v2.model.security_monitoring_paginated_suppressions_response import ( - SecurityMonitoringPaginatedSuppressionsResponse, -) -from datadog_api_client.v2.model.security_monitoring_suppression_sort import SecurityMonitoringSuppressionSort +from datadog_api_client.v2.model.security_monitoring_suppressions_response import SecurityMonitoringSuppressionsResponse from datadog_api_client.v2.model.security_monitoring_suppression_response import SecurityMonitoringSuppressionResponse from datadog_api_client.v2.model.security_monitoring_suppression_create_request import ( SecurityMonitoringSuppressionCreateRequest, ) -from datadog_api_client.v2.model.security_monitoring_suppressions_response import SecurityMonitoringSuppressionsResponse from datadog_api_client.v2.model.security_monitoring_rule_create_payload import SecurityMonitoringRuleCreatePayload from datadog_api_client.v2.model.security_monitoring_standard_rule_create_payload import ( SecurityMonitoringStandardRuleCreatePayload, @@ -1767,7 +1763,7 @@ def __init__(self, api_client=None): self._list_security_monitoring_suppressions_endpoint = _Endpoint( settings={ - "response_type": (SecurityMonitoringPaginatedSuppressionsResponse,), + "response_type": (SecurityMonitoringSuppressionsResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], "endpoint_path": "/api/v2/security_monitoring/configuration/suppressions", "operation_id": "list_security_monitoring_suppressions", @@ -1780,21 +1776,6 @@ def __init__(self, api_client=None): "attribute": "query", "location": "query", }, - "sort": { - "openapi_types": (SecurityMonitoringSuppressionSort,), - "attribute": "sort", - "location": "query", - }, - "page_size": { - "openapi_types": (int,), - "attribute": "page[size]", - "location": "query", - }, - "page_number": { - "openapi_types": (int,), - "attribute": "page[number]", - "location": "query", - }, }, headers_map={ "accept": ["application/json"], @@ -4354,37 +4335,19 @@ def list_security_monitoring_suppressions( self, *, query: Union[str, UnsetType] = unset, - sort: Union[SecurityMonitoringSuppressionSort, UnsetType] = unset, - page_size: Union[int, UnsetType] = unset, - page_number: Union[int, UnsetType] = unset, - ) -> SecurityMonitoringPaginatedSuppressionsResponse: + ) -> SecurityMonitoringSuppressionsResponse: """Get all suppression rules. Get the list of all suppression rules. :param query: Query string. :type query: str, optional - :param sort: Attribute used to sort the list of suppression rules. Prefix with ``-`` to sort in descending order. - :type sort: SecurityMonitoringSuppressionSort, optional - :param page_size: Size for a given page. Use ``-1`` to return all items. - :type page_size: int, optional - :param page_number: Specific page number to return. - :type page_number: int, optional - :rtype: SecurityMonitoringPaginatedSuppressionsResponse + :rtype: SecurityMonitoringSuppressionsResponse """ kwargs: Dict[str, Any] = {} if query is not unset: kwargs["query"] = query - if sort is not unset: - kwargs["sort"] = sort - - if page_size is not unset: - kwargs["page_size"] = page_size - - if page_number is not unset: - kwargs["page_number"] = page_number - return self._list_security_monitoring_suppressions_endpoint.call_with_http_info(**kwargs) def list_threat_hunting_jobs( diff --git a/src/datadog_api_client/v2/model/security_monitoring_paginated_suppressions_response.py b/src/datadog_api_client/v2/model/security_monitoring_paginated_suppressions_response.py deleted file mode 100644 index 6b583d8ed0..0000000000 --- a/src/datadog_api_client/v2/model/security_monitoring_paginated_suppressions_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import List, Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.security_monitoring_suppression import SecurityMonitoringSuppression - from datadog_api_client.v2.model.security_monitoring_suppressions_meta import SecurityMonitoringSuppressionsMeta - - -class SecurityMonitoringPaginatedSuppressionsResponse(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.security_monitoring_suppression import SecurityMonitoringSuppression - from datadog_api_client.v2.model.security_monitoring_suppressions_meta import SecurityMonitoringSuppressionsMeta - - return { - "data": ([SecurityMonitoringSuppression],), - "meta": (SecurityMonitoringSuppressionsMeta,), - } - - attribute_map = { - "data": "data", - "meta": "meta", - } - - def __init__( - self_, - data: Union[List[SecurityMonitoringSuppression], UnsetType] = unset, - meta: Union[SecurityMonitoringSuppressionsMeta, UnsetType] = unset, - **kwargs, - ): - """ - Response object containing the available suppression rules with pagination metadata. - - :param data: A list of suppressions objects. - :type data: [SecurityMonitoringSuppression], optional - - :param meta: Metadata for the suppression list response. - :type meta: SecurityMonitoringSuppressionsMeta, optional - """ - if data is not unset: - kwargs["data"] = data - if meta is not unset: - kwargs["meta"] = meta - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/security_monitoring_suppression_sort.py b/src/datadog_api_client/v2/model/security_monitoring_suppression_sort.py deleted file mode 100644 index 86a162c776..0000000000 --- a/src/datadog_api_client/v2/model/security_monitoring_suppression_sort.py +++ /dev/null @@ -1,62 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class SecurityMonitoringSuppressionSort(ModelSimple): - """ - The sort parameters used for querying suppression rules. - - :param value: Must be one of ["name", "start_date", "expiration_date", "update_date", "enabled", "-name", "-start_date", "-expiration_date", "-update_date", "-enabled"]. - :type value: str - """ - - allowed_values = { - "name", - "start_date", - "expiration_date", - "update_date", - "enabled", - "-name", - "-start_date", - "-expiration_date", - "-update_date", - "-enabled", - } - NAME: ClassVar["SecurityMonitoringSuppressionSort"] - START_DATE: ClassVar["SecurityMonitoringSuppressionSort"] - EXPIRATION_DATE: ClassVar["SecurityMonitoringSuppressionSort"] - UPDATE_DATE: ClassVar["SecurityMonitoringSuppressionSort"] - ENABLED: ClassVar["SecurityMonitoringSuppressionSort"] - NAME_DESCENDING: ClassVar["SecurityMonitoringSuppressionSort"] - START_DATE_DESCENDING: ClassVar["SecurityMonitoringSuppressionSort"] - EXPIRATION_DATE_DESCENDING: ClassVar["SecurityMonitoringSuppressionSort"] - UPDATE_DATE_DESCENDING: ClassVar["SecurityMonitoringSuppressionSort"] - ENABLED_DESCENDING: ClassVar["SecurityMonitoringSuppressionSort"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -SecurityMonitoringSuppressionSort.NAME = SecurityMonitoringSuppressionSort("name") -SecurityMonitoringSuppressionSort.START_DATE = SecurityMonitoringSuppressionSort("start_date") -SecurityMonitoringSuppressionSort.EXPIRATION_DATE = SecurityMonitoringSuppressionSort("expiration_date") -SecurityMonitoringSuppressionSort.UPDATE_DATE = SecurityMonitoringSuppressionSort("update_date") -SecurityMonitoringSuppressionSort.ENABLED = SecurityMonitoringSuppressionSort("enabled") -SecurityMonitoringSuppressionSort.NAME_DESCENDING = SecurityMonitoringSuppressionSort("-name") -SecurityMonitoringSuppressionSort.START_DATE_DESCENDING = SecurityMonitoringSuppressionSort("-start_date") -SecurityMonitoringSuppressionSort.EXPIRATION_DATE_DESCENDING = SecurityMonitoringSuppressionSort("-expiration_date") -SecurityMonitoringSuppressionSort.UPDATE_DATE_DESCENDING = SecurityMonitoringSuppressionSort("-update_date") -SecurityMonitoringSuppressionSort.ENABLED_DESCENDING = SecurityMonitoringSuppressionSort("-enabled") diff --git a/src/datadog_api_client/v2/model/security_monitoring_suppressions_meta.py b/src/datadog_api_client/v2/model/security_monitoring_suppressions_meta.py deleted file mode 100644 index de6b75a34b..0000000000 --- a/src/datadog_api_client/v2/model/security_monitoring_suppressions_meta.py +++ /dev/null @@ -1,46 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.security_monitoring_suppressions_page_meta import ( - SecurityMonitoringSuppressionsPageMeta, - ) - - -class SecurityMonitoringSuppressionsMeta(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.security_monitoring_suppressions_page_meta import ( - SecurityMonitoringSuppressionsPageMeta, - ) - - return { - "page": (SecurityMonitoringSuppressionsPageMeta,), - } - - attribute_map = { - "page": "page", - } - - def __init__(self_, page: Union[SecurityMonitoringSuppressionsPageMeta, UnsetType] = unset, **kwargs): - """ - Metadata for the suppression list response. - - :param page: Pagination metadata. - :type page: SecurityMonitoringSuppressionsPageMeta, optional - """ - if page is not unset: - kwargs["page"] = page - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/security_monitoring_suppressions_page_meta.py b/src/datadog_api_client/v2/model/security_monitoring_suppressions_page_meta.py deleted file mode 100644 index 6d769253cc..0000000000 --- a/src/datadog_api_client/v2/model/security_monitoring_suppressions_page_meta.py +++ /dev/null @@ -1,56 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -class SecurityMonitoringSuppressionsPageMeta(ModelNormal): - @cached_property - def openapi_types(_): - return { - "page_number": (int,), - "page_size": (int,), - "total_count": (int,), - } - - attribute_map = { - "page_number": "pageNumber", - "page_size": "pageSize", - "total_count": "totalCount", - } - - def __init__( - self_, - page_number: Union[int, UnsetType] = unset, - page_size: Union[int, UnsetType] = unset, - total_count: Union[int, UnsetType] = unset, - **kwargs, - ): - """ - Pagination metadata. - - :param page_number: Current page number. - :type page_number: int, optional - - :param page_size: Current page size. - :type page_size: int, optional - - :param total_count: Total count of suppressions. - :type total_count: int, optional - """ - if page_number is not unset: - kwargs["page_number"] = page_number - if page_size is not unset: - kwargs["page_size"] = page_size - if total_count is not unset: - kwargs["total_count"] = total_count - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/synthetics_global_variable_attributes.py b/src/datadog_api_client/v2/model/synthetics_global_variable_attributes.py index 00ac9e1f62..8c600f4a48 100644 --- a/src/datadog_api_client/v2/model/synthetics_global_variable_attributes.py +++ b/src/datadog_api_client/v2/model/synthetics_global_variable_attributes.py @@ -28,7 +28,7 @@ def __init__(self_, restricted_roles: Union[List[str], UnsetType] = unset, **kwa """ Attributes of the global variable. - :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + :param restricted_roles: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. **Deprecated**. :type restricted_roles: [str], optional """ if restricted_roles is not unset: diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 19cabdd42d..f0255dfa30 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -4380,9 +4380,6 @@ from datadog_api_client.v2.model.security_monitoring_filter import SecurityMonitoringFilter from datadog_api_client.v2.model.security_monitoring_filter_action import SecurityMonitoringFilterAction from datadog_api_client.v2.model.security_monitoring_list_rules_response import SecurityMonitoringListRulesResponse -from datadog_api_client.v2.model.security_monitoring_paginated_suppressions_response import ( - SecurityMonitoringPaginatedSuppressionsResponse, -) from datadog_api_client.v2.model.security_monitoring_reference_table import SecurityMonitoringReferenceTable from datadog_api_client.v2.model.security_monitoring_rule_anomaly_detection_options import ( SecurityMonitoringRuleAnomalyDetectionOptions, @@ -4566,7 +4563,6 @@ SecurityMonitoringSuppressionCreateRequest, ) from datadog_api_client.v2.model.security_monitoring_suppression_response import SecurityMonitoringSuppressionResponse -from datadog_api_client.v2.model.security_monitoring_suppression_sort import SecurityMonitoringSuppressionSort from datadog_api_client.v2.model.security_monitoring_suppression_type import SecurityMonitoringSuppressionType from datadog_api_client.v2.model.security_monitoring_suppression_update_attributes import ( SecurityMonitoringSuppressionUpdateAttributes, @@ -4577,10 +4573,6 @@ from datadog_api_client.v2.model.security_monitoring_suppression_update_request import ( SecurityMonitoringSuppressionUpdateRequest, ) -from datadog_api_client.v2.model.security_monitoring_suppressions_meta import SecurityMonitoringSuppressionsMeta -from datadog_api_client.v2.model.security_monitoring_suppressions_page_meta import ( - SecurityMonitoringSuppressionsPageMeta, -) from datadog_api_client.v2.model.security_monitoring_suppressions_response import SecurityMonitoringSuppressionsResponse from datadog_api_client.v2.model.security_monitoring_third_party_root_query import SecurityMonitoringThirdPartyRootQuery from datadog_api_client.v2.model.security_monitoring_third_party_rule_case import SecurityMonitoringThirdPartyRuleCase @@ -8490,7 +8482,6 @@ "SecurityMonitoringFilter", "SecurityMonitoringFilterAction", "SecurityMonitoringListRulesResponse", - "SecurityMonitoringPaginatedSuppressionsResponse", "SecurityMonitoringReferenceTable", "SecurityMonitoringRuleAnomalyDetectionOptions", "SecurityMonitoringRuleAnomalyDetectionOptionsBucketDuration", @@ -8582,13 +8573,10 @@ "SecurityMonitoringSuppressionCreateData", "SecurityMonitoringSuppressionCreateRequest", "SecurityMonitoringSuppressionResponse", - "SecurityMonitoringSuppressionSort", "SecurityMonitoringSuppressionType", "SecurityMonitoringSuppressionUpdateAttributes", "SecurityMonitoringSuppressionUpdateData", "SecurityMonitoringSuppressionUpdateRequest", - "SecurityMonitoringSuppressionsMeta", - "SecurityMonitoringSuppressionsPageMeta", "SecurityMonitoringSuppressionsResponse", "SecurityMonitoringThirdPartyRootQuery", "SecurityMonitoringThirdPartyRuleCase", diff --git a/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.frozen index ec35b85885..3f3e3c99f2 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.frozen @@ -1 +1 @@ -2026-01-14T17:29:03.168Z \ No newline at end of file +2025-11-07T12:27:26.759Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.yaml index 28d2d9c6f5..a3ce9d669a 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_a_suppression_rule_returns_ok_response.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"description":"Test-Delete_a_suppression_rule_returns_OK_response-1768411743","enabled":true,"name":"suppression - Test-Delete_a_suppression_rule_returns_OK_response-1768411743","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' + body: '{"data":{"attributes":{"description":"Test-Delete_a_suppression_rule_returns_OK_response-1762518446","enabled":true,"name":"Test-Delete_a_suppression_rule_returns_OK_response-1762518446","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' headers: accept: - application/json @@ -11,9 +10,8 @@ interactions: uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions response: body: - string: '{"data":{"id":"itm-ljs-0qw","type":"suppressions","attributes":{"creation_date":1768411744411,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Delete_a_suppression_rule_returns_OK_response-1768411743","editable":true,"enabled":true,"name":"suppression - Test-Delete_a_suppression_rule_returns_OK_response-1768411743","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411744411,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + string: '{"data":{"id":"uea-lab-big","type":"suppressions","attributes":{"creation_date":1762518447002,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"data_exclusion_query":"","description":"Test-Delete_a_suppression_rule_returns_OK_response-1762518446","editable":true,"enabled":true,"name":"Test-Delete_a_suppression_rule_returns_OK_response-1762518446","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1762518447002,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI Account"},"version":1}}}' headers: content-type: @@ -27,7 +25,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/itm-ljs-0qw + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uea-lab-big response: body: string: '' @@ -41,10 +39,10 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/itm-ljs-0qw + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uea-lab-big response: body: - string: '{"errors":["not_found(Suppression with ID itm-ljs-0qw not found)"]}' + string: '{"errors":["not_found(Suppression with ID uea-lab-big not found)"]}' headers: content-type: - application/json diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.frozen index 16f1a15edd..a93a4d20e7 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.frozen @@ -1 +1 @@ -2026-01-14T17:29:04.856Z \ No newline at end of file +2025-11-07T12:27:27.654Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.yaml index 38dd28e4b5..407dc4e26c 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_a_suppression_rule_returns_ok_response.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"description":"Test-Get_a_suppression_rule_returns_OK_response-1768411744","enabled":true,"name":"suppression - Test-Get_a_suppression_rule_returns_OK_response-1768411744","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' + body: '{"data":{"attributes":{"description":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","enabled":true,"name":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' headers: accept: - application/json @@ -11,9 +10,8 @@ interactions: uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions response: body: - string: '{"data":{"id":"xno-kwg-8df","type":"suppressions","attributes":{"creation_date":1768411744987,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Get_a_suppression_rule_returns_OK_response-1768411744","editable":true,"enabled":true,"name":"suppression - Test-Get_a_suppression_rule_returns_OK_response-1768411744","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411744987,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + string: '{"data":{"id":"ylq-igi-icg","type":"suppressions","attributes":{"creation_date":1762518447901,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"data_exclusion_query":"","description":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","editable":true,"enabled":true,"name":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1762518447901,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI Account"},"version":1}}}' headers: content-type: @@ -27,12 +25,11 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/xno-kwg-8df + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ylq-igi-icg response: body: - string: '{"data":{"id":"xno-kwg-8df","type":"suppressions","attributes":{"creation_date":1768411744987,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Get_a_suppression_rule_returns_OK_response-1768411744","editable":true,"enabled":true,"name":"suppression - Test-Get_a_suppression_rule_returns_OK_response-1768411744","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411744987,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + string: '{"data":{"id":"ylq-igi-icg","type":"suppressions","attributes":{"creation_date":1762518447901,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"data_exclusion_query":"","description":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","editable":true,"enabled":true,"name":"Test-Get_a_suppression_rule_returns_OK_response-1762518447","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1762518447901,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI Account"},"version":1}}}' headers: content-type: @@ -46,7 +43,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/xno-kwg-8df + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ylq-igi-icg response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.frozen index 6691326413..d0d5ccec31 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.frozen @@ -1 +1 @@ -2026-01-14T17:29:05.317Z \ No newline at end of file +2025-11-26T13:33:06.482Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.yaml index ec1c652445..44a5caea94 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_a_suppressions_version_history_returns_ok_response.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","enabled":true,"name":"suppression - Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' + body: '{"data":{"attributes":{"description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","enabled":true,"name":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' headers: accept: - application/json @@ -11,10 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions response: body: - string: '{"data":{"id":"sro-unv-k08","type":"suppressions","attributes":{"creation_date":1768411745430,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","editable":true,"enabled":true,"name":"suppression - Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411745430,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"version":1}}}' + string: '{"data":{"id":"456-piv-74h","type":"suppressions","attributes":{"creation_date":1764163986851,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","editable":true,"enabled":true,"name":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1764163986851,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' headers: content-type: - application/vnd.api+json @@ -27,13 +23,10 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/sro-unv-k08/version_history + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/456-piv-74h/version_history response: body: - string: '{"data":{"id":"sro-unv-k08","type":"suppression_version_history","attributes":{"count":1,"data":{"1":{"suppression":{"id":"sro-unv-k08","name":"suppression - Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","enabled":true,"description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:test","data_exclusion_query":"","version":1,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"creation_date":1768411745430,"update_date":1768411745430,"editable":true,"tags":["source:cloudtrail","technique:T1110-brute-force"]},"changes":[]}}}}}' + string: '{"data":{"id":"456-piv-74h","type":"suppression_version_history","attributes":{"count":1,"data":{"1":{"suppression":{"id":"456-piv-74h","name":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","enabled":true,"description":"Test-Get_a_suppression_s_version_history_returns_OK_response-1764163986","rule_query":"source:cloudtrail","suppression_query":"env:test","data_exclusion_query":"","version":1,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"updater":{"handle":"frog@datadoghq.com","name":"frog"},"creation_date":1764163986851,"update_date":1764163986851,"editable":true,"tags":["source:cloudtrail","technique:T1110-brute-force"]},"changes":[]}}}}}' headers: content-type: - application/vnd.api+json @@ -46,7 +39,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/sro-unv-k08 + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/456-piv-74h response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.frozen b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.frozen deleted file mode 100644 index 23cdf460db..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-14T17:12:28.523Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.yaml b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.yaml deleted file mode 100644 index 4d4d98c984..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_pagination.yaml +++ /dev/null @@ -1,87 +0,0 @@ -interactions: -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"fgz-hyr-ibu","type":"suppressions","attributes":{"creation_date":1768410748883,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410748883,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"lgh-7no-380","type":"suppressions","attributes":{"creation_date":1768410749324,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","editable":true,"enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410749324,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - application/json - method: GET - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions?page%5Bsize%5D=1&page%5Bnumber%5D=0&query=id%3Afgz-hyr-ibu%20OR%20id%3Algh-7no-380 - response: - body: - string: '{"data":[{"id":"fgz-hyr-ibu","type":"suppressions","attributes":{"creation_date":1768410748883,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_pagination-1768410748","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410748883,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}],"meta":{"page":{"totalCount":2,"pageSize":1,"pageNumber":0}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/lgh-7no-380 - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/fgz-hyr-ibu - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.frozen b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.frozen deleted file mode 100644 index 89bfc8cd8e..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-14T17:12:30.925Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.yaml b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.yaml deleted file mode 100644 index 285c415343..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_ascending.yaml +++ /dev/null @@ -1,88 +0,0 @@ -interactions: -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"5cq-vnw-eza","type":"suppressions","attributes":{"creation_date":1768410751276,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410751276,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"fuu-xxd-kjd","type":"suppressions","attributes":{"creation_date":1768410751710,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","editable":true,"enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410751710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - application/json - method: GET - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions?sort=name&query=id%3A5cq-vnw-eza%20OR%20id%3Afuu-xxd-kjd - response: - body: - string: '{"data":[{"id":"5cq-vnw-eza","type":"suppressions","attributes":{"creation_date":1768410751276,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410751276,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}},{"id":"fuu-xxd-kjd","type":"suppressions","attributes":{"creation_date":1768410751710,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","editable":true,"enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_ascending-1768410750","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410751710,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}],"meta":{"page":{"totalCount":2,"pageSize":2,"pageNumber":0}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/fuu-xxd-kjd - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/5cq-vnw-eza - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.frozen b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.frozen deleted file mode 100644 index d184a46ea0..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-14T17:12:33.088Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.yaml b/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.yaml deleted file mode 100644 index 0b935052c1..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_get_all_suppression_rules_returns_ok_response_with_sort_descending.yaml +++ /dev/null @@ -1,88 +0,0 @@ -interactions: -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"osw-qyf-tqn","type":"suppressions","attributes":{"creation_date":1768410753455,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410753455,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: '{"data":{"attributes":{"description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' - headers: - accept: - - application/json - content-type: - - application/json - method: POST - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions - response: - body: - string: '{"data":{"id":"pe9-gdi-ee2","type":"suppressions","attributes":{"creation_date":1768410753872,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","editable":true,"enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410753872,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - application/json - method: GET - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions?sort=-name&query=id%3Aosw-qyf-tqn%20OR%20id%3Ape9-gdi-ee2 - response: - body: - string: '{"data":[{"id":"pe9-gdi-ee2","type":"suppressions","attributes":{"creation_date":1768410753872,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","editable":true,"enabled":true,"name":"suppression2 - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410753872,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}},{"id":"osw-qyf-tqn","type":"suppressions","attributes":{"creation_date":1768410753455,"creator":{"handle":"frog@datadoghq.com","name":"frog"},"data_exclusion_query":"","description":"Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","editable":true,"enabled":true,"name":"suppression - Test-Get_all_suppression_rules_returns_OK_response_with_sort_descending-1768410753","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768410753455,"updater":{"handle":"frog@datadoghq.com","name":"frog"},"version":1}}],"meta":{"page":{"totalCount":2,"pageSize":2,"pageNumber":0}}}' - headers: - content-type: - - application/vnd.api+json - status: - code: 200 - message: OK -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/pe9-gdi-ee2 - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -- request: - body: null - headers: - accept: - - '*/*' - method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/osw-qyf-tqn - response: - body: - string: '' - headers: {} - status: - code: 204 - message: No Content -version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.frozen index e05f55dd71..8839a50677 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.frozen @@ -1 +1 @@ -2026-01-14T17:29:05.825Z \ No newline at end of file +2025-11-07T12:27:28.613Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.yaml index c25bee2e9c..aaa585f339 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_a_suppression_rule_returns_ok_response.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"description":"Test-Update_a_suppression_rule_returns_OK_response-1768411745","enabled":true,"name":"suppression - Test-Update_a_suppression_rule_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' + body: '{"data":{"attributes":{"description":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","enabled":true,"name":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["technique:T1110-brute-force","source:cloudtrail"]},"type":"suppressions"}}' headers: accept: - application/json @@ -11,9 +10,8 @@ interactions: uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions response: body: - string: '{"data":{"id":"ucv-bpf-4bc","type":"suppressions","attributes":{"creation_date":1768411745950,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Update_a_suppression_rule_returns_OK_response-1768411745","editable":true,"enabled":true,"name":"suppression - Test-Update_a_suppression_rule_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411745950,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + string: '{"data":{"id":"uqt-hh6-qbq","type":"suppressions","attributes":{"creation_date":1762518448839,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"data_exclusion_query":"","description":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","editable":true,"enabled":true,"name":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","rule_query":"source:cloudtrail","suppression_query":"env:test","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1762518448839,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI Account"},"version":1}}}' headers: content-type: @@ -29,13 +27,12 @@ interactions: content-type: - application/json method: PATCH - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ucv-bpf-4bc + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uqt-hh6-qbq response: body: - string: '{"data":{"id":"ucv-bpf-4bc","type":"suppressions","attributes":{"creation_date":1768411745950,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI - Account"},"data_exclusion_query":"","description":"Test-Update_a_suppression_rule_returns_OK_response-1768411745","editable":true,"enabled":true,"name":"suppression - Test-Update_a_suppression_rule_returns_OK_response-1768411745","rule_query":"source:cloudtrail","suppression_query":"env:staging - status:low","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1768411746111,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + string: '{"data":{"id":"uqt-hh6-qbq","type":"suppressions","attributes":{"creation_date":1762518448839,"creator":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"data_exclusion_query":"","description":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","editable":true,"enabled":true,"name":"Test-Update_a_suppression_rule_returns_OK_response-1762518448","rule_query":"source:cloudtrail","suppression_query":"env:staging + status:low","tags":["source:cloudtrail","technique:T1110-brute-force"],"update_date":1762518449150,"updater":{"handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI Account"},"version":2}}}' headers: content-type: @@ -49,7 +46,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ucv-bpf-4bc + uri: https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uqt-hh6-qbq response: body: string: '' diff --git a/tests/v2/features/given.json b/tests/v2/features/given.json index 9d69fd33f2..c717223ca7 100644 --- a/tests/v2/features/given.json +++ b/tests/v2/features/given.json @@ -1035,7 +1035,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"type\": \"suppressions\",\n \"attributes\": {\n \"enabled\": true,\n \"name\": \"suppression {{ unique }}\",\n \"description\": \"{{ unique }}\",\n \"rule_query\": \"source:cloudtrail\",\n \"suppression_query\": \"env:test\",\n \"tags\": [\"technique:T1110-brute-force\", \"source:cloudtrail\"]\n }\n }\n}" + "value": "{\n \"data\": {\n \"type\": \"suppressions\",\n \"attributes\": {\n \"enabled\": true,\n \"name\": \"{{ unique }}\",\n \"description\": \"{{ unique }}\",\n \"rule_query\": \"source:cloudtrail\",\n \"suppression_query\": \"env:test\",\n \"tags\": [\"technique:T1110-brute-force\", \"source:cloudtrail\"]\n }\n }\n}" } ], "step": "there is a valid \"suppression\" in the system", @@ -1043,18 +1043,6 @@ "tag": "Security Monitoring", "operationId": "CreateSecurityMonitoringSuppression" }, - { - "parameters": [ - { - "name": "body", - "value": "{\n \"data\": {\n \"type\": \"suppressions\",\n \"attributes\": {\n \"enabled\": true,\n \"name\": \"suppression2 {{ unique }}\",\n \"description\": \"{{ unique }}\",\n \"rule_query\": \"source:cloudtrail\",\n \"suppression_query\": \"env:test\",\n \"tags\": [\"technique:T1110-brute-force\", \"source:cloudtrail\"]\n }\n }\n}" - } - ], - "step": "there is a valid \"suppression2\" in the system", - "key": "suppression2", - "tag": "Security Monitoring", - "operationId": "CreateSecurityMonitoringSuppression" - }, { "parameters": [ { diff --git a/tests/v2/features/security_monitoring.feature b/tests/v2/features/security_monitoring.feature index 60e9df68bb..2a6c599c30 100644 --- a/tests/v2/features/security_monitoring.feature +++ b/tests/v2/features/security_monitoring.feature @@ -1124,40 +1124,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @team:DataDog/k9-cloud-security-platform - Scenario: Get all suppression rules returns "OK" response with pagination - Given new "ListSecurityMonitoringSuppressions" request - And there is a valid "suppression" in the system - And there is a valid "suppression2" in the system - And request contains "page[size]" parameter with value 1 - And request contains "page[number]" parameter with value 0 - And request contains "query" parameter with value "id:{{ suppression.data.id }} OR id:{{ suppression2.data.id }}" - When the request is sent - Then the response status is 200 OK - And the response "data" has length 1 - - @team:DataDog/k9-cloud-security-platform - Scenario: Get all suppression rules returns "OK" response with sort ascending - Given new "ListSecurityMonitoringSuppressions" request - And there is a valid "suppression" in the system - And there is a valid "suppression2" in the system - And request contains "sort" parameter with value "name" - And request contains "query" parameter with value "id:{{ suppression.data.id }} OR id:{{ suppression2.data.id }}" - When the request is sent - Then the response status is 200 OK - And the response "data[0].attributes.name" is equal to "suppression {{ unique }}" - - @team:DataDog/k9-cloud-security-platform - Scenario: Get all suppression rules returns "OK" response with sort descending - Given new "ListSecurityMonitoringSuppressions" request - And there is a valid "suppression" in the system - And there is a valid "suppression2" in the system - And request contains "sort" parameter with value "-name" - And request contains "query" parameter with value "id:{{ suppression.data.id }} OR id:{{ suppression2.data.id }}" - When the request is sent - Then the response status is 200 OK - And the response "data[0].attributes.name" is equal to "suppression2 {{ unique }}" - @skip @team:DataDog/k9-cloud-security-platform Scenario: Get critical assets affecting a specific rule returns "Not Found" response Given new "GetCriticalAssetsAffectingRule" request