Skip to content

Commit 9aecd2e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add query param in rules list endpoint (#3034)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 32f544f commit 9aecd2e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85404,6 +85404,14 @@ paths:
8540485404
parameters:
8540585405
- $ref: '#/components/parameters/PageSize'
8540685406
- $ref: '#/components/parameters/PageNumber'
85407+
- description: A search query to filter security rules. You can filter by attributes
85408+
such as `type`, `source`, `tags`.
85409+
example: type:signal_correlation source:cloudtrail
85410+
in: query
85411+
name: query
85412+
required: false
85413+
schema:
85414+
type: string
8540785415
responses:
8540885416
'200':
8540985417
content:

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,11 @@ def __init__(self, api_client=None):
15761576
"attribute": "page[number]",
15771577
"location": "query",
15781578
},
1579+
"query": {
1580+
"openapi_types": (str,),
1581+
"attribute": "query",
1582+
"location": "query",
1583+
},
15791584
},
15801585
headers_map={
15811586
"accept": ["application/json"],
@@ -3951,6 +3956,7 @@ def list_security_monitoring_rules(
39513956
*,
39523957
page_size: Union[int, UnsetType] = unset,
39533958
page_number: Union[int, UnsetType] = unset,
3959+
query: Union[str, UnsetType] = unset,
39543960
) -> SecurityMonitoringListRulesResponse:
39553961
"""List rules.
39563962
@@ -3960,6 +3966,8 @@ def list_security_monitoring_rules(
39603966
:type page_size: int, optional
39613967
:param page_number: Specific page number to return.
39623968
:type page_number: int, optional
3969+
:param query: A search query to filter security rules. You can filter by attributes such as ``type`` , ``source`` , ``tags``.
3970+
:type query: str, optional
39633971
:rtype: SecurityMonitoringListRulesResponse
39643972
"""
39653973
kwargs: Dict[str, Any] = {}
@@ -3969,6 +3977,9 @@ def list_security_monitoring_rules(
39693977
if page_number is not unset:
39703978
kwargs["page_number"] = page_number
39713979

3980+
if query is not unset:
3981+
kwargs["query"] = query
3982+
39723983
return self._list_security_monitoring_rules_endpoint.call_with_http_info(**kwargs)
39733984

39743985
def list_security_monitoring_signals(

0 commit comments

Comments
 (0)