-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathReorderRulesets.py
More file actions
22 lines (19 loc) · 860 Bytes
/
ReorderRulesets.py
File metadata and controls
22 lines (19 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Reorder rulesets returns "Successfully reordered rulesets" response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
from datadog_api_client.v2.model.reorder_ruleset_resource_array import ReorderRulesetResourceArray
from datadog_api_client.v2.model.reorder_ruleset_resource_data import ReorderRulesetResourceData
from datadog_api_client.v2.model.reorder_ruleset_resource_data_type import ReorderRulesetResourceDataType
body = ReorderRulesetResourceArray(
data=[
ReorderRulesetResourceData(
type=ReorderRulesetResourceDataType.RULESET,
),
],
)
configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = CloudCostManagementApi(api_client)
api_instance.reorder_rulesets(body=body)