Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82778,6 +82778,14 @@ paths:
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- description: A search query to filter security rules. You can filter by attributes
such as `type`, `source`, `tags`.
example: type:signal_correlation source:cloudtrail
in: query
name: query
required: false
schema:
type: string
responses:
'200':
content:
Expand Down
11 changes: 11 additions & 0 deletions src/datadog_api_client/v2/api/security_monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,11 @@ def __init__(self, api_client=None):
"attribute": "page[number]",
"location": "query",
},
"query": {
"openapi_types": (str,),
"attribute": "query",
"location": "query",
},
},
headers_map={
"accept": ["application/json"],
Expand Down Expand Up @@ -3793,6 +3798,7 @@ def list_security_monitoring_rules(
*,
page_size: Union[int, UnsetType] = unset,
page_number: Union[int, UnsetType] = unset,
query: Union[str, UnsetType] = unset,
) -> SecurityMonitoringListRulesResponse:
"""List rules.

Expand All @@ -3802,6 +3808,8 @@ def list_security_monitoring_rules(
:type page_size: int, optional
:param page_number: Specific page number to return.
:type page_number: int, optional
:param query: A search query to filter security rules. You can filter by attributes such as ``type`` , ``source`` , ``tags``.
:type query: str, optional
:rtype: SecurityMonitoringListRulesResponse
"""
kwargs: Dict[str, Any] = {}
Expand All @@ -3811,6 +3819,9 @@ def list_security_monitoring_rules(
if page_number is not unset:
kwargs["page_number"] = page_number

if query is not unset:
kwargs["query"] = query

return self._list_security_monitoring_rules_endpoint.call_with_http_info(**kwargs)

def list_security_monitoring_signals(
Expand Down