{ "opencollection": "1.0.0", "info": { "name": "Datadog Account Rules API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Rules", "type": "folder" }, "items": [ { "info": { "name": "Datadog Get All Monitor Notification Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/monitor/notification_rule", "params": [ { "name": "include", "value": "created_by", "type": "query", "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npath is `created_by`." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Returns a list of all monitor notification rules." }, { "info": { "name": "Datadog Create a Monitor Notification Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/monitor/notification_rule", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Creates a monitor notification rule." }, { "info": { "name": "Datadog Get a Monitor Notification Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/monitor/notification_rule/:rule_id", "params": [ { "name": "rule_id", "value": "abc-123-def", "type": "path", "description": "ID of the monitor notification rule to fetch." }, { "name": "include", "value": "created_by", "type": "query", "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npath is `created_by`." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Returns a monitor notification rule by `rule_id`." }, { "info": { "name": "Datadog Update a Monitor Notification Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/monitor/notification_rule/:rule_id", "params": [ { "name": "rule_id", "value": "abc-123-def", "type": "path", "description": "ID of the monitor notification rule to update." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Updates a monitor notification rule by `rule_id`." }, { "info": { "name": "Datadog Delete a Monitor Notification Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/monitor/notification_rule/:rule_id", "params": [ { "name": "rule_id", "value": "abc-123-def", "type": "path", "description": "ID of the monitor notification rule to delete." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Deletes a monitor notification rule by `rule_id`." }, { "info": { "name": "Datadog Get On-call Team Routing Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/on-call/teams/:team_id/routing-rules", "params": [ { "name": "team_id", "value": "27590dae-47be-4a7d-9abf-8f4e45124020", "type": "path", "description": "The team ID" }, { "name": "include", "value": "example_value", "type": "query", "description": "Comma-separated list of included relationships to be returned. Allowed values: `rules`, `rules.policy`." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Get a team's On-Call routing rules" }, { "info": { "name": "Datadog Set On-call Team Routing Rules", "type": "http" }, "http": { "method": "PUT", "url": "https://{subdomain}.{site}/api/v2/on-call/teams/:team_id/routing-rules", "params": [ { "name": "team_id", "value": "27590dae-47be-4a7d-9abf-8f4e45124020", "type": "path", "description": "The team ID" }, { "name": "include", "value": "example_value", "type": "query", "description": "Comma-separated list of included relationships to be returned. Allowed values: `rules`, `rules.policy`." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Set a team's On-Call routing rules" }, { "info": { "name": "Datadog List All Waf Custom Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/asm/waf/custom_rules" }, "docs": "Retrieve a list of WAF custom rule." }, { "info": { "name": "Datadog Create a Waf Custom Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/asm/waf/custom_rules", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new WAF custom rule with the given parameters." }, { "info": { "name": "Datadog Get a Waf Custom Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/asm/waf/custom_rules/:custom_rule_id", "params": [ { "name": "custom_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the custom rule." } ] }, "docs": "Retrieve a WAF custom rule by ID." }, { "info": { "name": "Datadog Update a Waf Custom Rule", "type": "http" }, "http": { "method": "PUT", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/asm/waf/custom_rules/:custom_rule_id", "params": [ { "name": "custom_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the custom rule." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a specific WAF custom Rule.\nReturns the Custom Rule object when the request is successful." }, { "info": { "name": "Datadog Delete a Waf Custom Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/asm/waf/custom_rules/:custom_rule_id", "params": [ { "name": "custom_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the custom rule." } ] }, "docs": "Delete a specific WAF custom rule." }, { "info": { "name": "Datadog Get All Workload Protection Agent Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules", "params": [ { "name": "policy_id", "value": "6517fcc1-cec7-4394-a655-8d6e9d085255", "type": "query", "description": "The ID of the Agent policy" } ] }, "docs": "Get the list of Workload Protection agent rules.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below." }, { "info": { "name": "Datadog Create a Workload Protection Agent Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new Workload Protection agent rule with the given parameters.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below." }, { "info": { "name": "Datadog Get a Workload Protection Agent Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" }, { "name": "policy_id", "value": "6517fcc1-cec7-4394-a655-8d6e9d085255", "type": "query", "description": "The ID of the Agent policy" } ] }, "docs": "Get the details of a specific Workload Protection agent rule.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below." }, { "info": { "name": "Datadog Update a Workload Protection Agent Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" }, { "name": "policy_id", "value": "6517fcc1-cec7-4394-a655-8d6e9d085255", "type": "query", "description": "The ID of the Agent policy" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a specific Workload Protection Agent rule.\nReturns the agent rule object when the request is successful.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below." }, { "info": { "name": "Datadog Delete a Workload Protection Agent Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" }, { "name": "policy_id", "value": "6517fcc1-cec7-4394-a655-8d6e9d085255", "type": "query", "description": "The ID of the Agent policy" } ] }, "docs": "Delete a specific Workload Protection agent rule.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below." }, { "info": { "name": "Datadog List All Rule Outcomes", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/scorecard/outcomes", "params": [ { "name": "page[size]", "value": "", "type": "query", "description": "Size for a given page. The maximum allowed value is 100." }, { "name": "page[offset]", "value": "", "type": "query", "description": "Specific offset to use as the beginning of the returned page." }, { "name": "include", "value": "rule", "type": "query", "description": "Include related rule details in the response." }, { "name": "fields[outcome]", "value": "state, service_name", "type": "query", "description": "Return only specified values in the outcome attributes." }, { "name": "fields[rule]", "value": "name", "type": "query", "description": "Return only specified values in the included rule details." }, { "name": "filter[outcome][service_name]", "value": "web-store", "type": "query", "description": "Filter the outcomes on a specific service name." }, { "name": "filter[outcome][state]", "value": "fail", "type": "query", "description": "Filter the outcomes by a specific state." }, { "name": "filter[rule][enabled]", "value": "true", "type": "query", "description": "Filter outcomes on whether a rule is enabled/disabled." }, { "name": "filter[rule][id]", "value": "f4485c79-0762-449c-96cf-c31e54a659f6", "type": "query", "description": "Filter outcomes based on rule ID." }, { "name": "filter[rule][name]", "value": "SLOs Defined", "type": "query", "description": "Filter outcomes based on rule name." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Fetches all rule outcomes." }, { "info": { "name": "Datadog List All Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/scorecard/rules", "params": [ { "name": "page[size]", "value": "", "type": "query", "description": "Size for a given page. The maximum allowed value is 100." }, { "name": "page[offset]", "value": "", "type": "query", "description": "Specific offset to use as the beginning of the returned page." }, { "name": "include", "value": "scorecard", "type": "query", "description": "Include related scorecard details in the response." }, { "name": "filter[rule][id]", "value": "37d2f990-c885-4972-949b-8b798213a166", "type": "query", "description": "Filter the rules on a rule ID." }, { "name": "filter[rule][enabled]", "value": "true", "type": "query", "description": "Filter for enabled rules only." }, { "name": "filter[rule][custom]", "value": "true", "type": "query", "description": "Filter for custom rules only." }, { "name": "filter[rule][name]", "value": "Code Repos Defined", "type": "query", "description": "Filter rules on the rule name." }, { "name": "filter[rule][description]", "value": "Identifying", "type": "query", "description": "Filter rules on the rule description." }, { "name": "fields[rule]", "value": "name, description", "type": "query", "description": "Return only specific fields in the response for rule attributes." }, { "name": "fields[scorecard]", "value": "name", "type": "query", "description": "Return only specific fields in the included response for scorecard attributes." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Fetch all rules." }, { "info": { "name": "Datadog Create a New Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/scorecard/rules", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Creates a new rule." }, { "info": { "name": "Datadog Update an Existing Rule", "type": "http" }, "http": { "method": "PUT", "url": "https://{subdomain}.{site}/api/v2/scorecard/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Updates an existing rule." }, { "info": { "name": "Datadog Delete a Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/scorecard/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Deletes a single rule." }, { "info": { "name": "Datadog Get the List of Signal-based Notification Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security/signals/notification_rules", "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Returns the list of notification rules for security signals." }, { "info": { "name": "Datadog Create a New Signal-based Notification Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security/signals/notification_rules", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Create a new notification rule for security signals and return the created rule." }, { "info": { "name": "Datadog Get Details of a Signal-based Notification Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security/signals/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Get the details of a notification rule for security signals." }, { "info": { "name": "Datadog Patch a Signal-based Notification Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/security/signals/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated." }, { "info": { "name": "Datadog Delete a Signal-based Notification Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/security/signals/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Delete a notification rule for security signals." }, { "info": { "name": "Datadog Get the List of Vulnerability Notification Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security/vulnerabilities/notification_rules", "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Returns the list of notification rules for security vulnerabilities." }, { "info": { "name": "Datadog Create a New Vulnerability-based Notification Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security/vulnerabilities/notification_rules", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Create a new notification rule for security vulnerabilities and return the created rule." }, { "info": { "name": "Datadog Get Details of a Vulnerability Notification Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security/vulnerabilities/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Get the details of a notification rule for security vulnerabilities." }, { "info": { "name": "Datadog Patch a Vulnerability-based Notification Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/security/vulnerabilities/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated." }, { "info": { "name": "Datadog Delete a Vulnerability-based Notification Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/security/vulnerabilities/notification_rules/:id", "params": [ { "name": "id", "value": "abc-123-def", "type": "path", "description": "ID of the notification rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Delete a notification rule for security vulnerabilities." }, { "info": { "name": "Datadog Get All Workload Protection Agent Rules (us1-fed)", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules" }, "docs": "Get the list of agent rules.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site." }, { "info": { "name": "Datadog Create a Workload Protection Agent Rule (us1-fed)", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new agent rule with the given parameters.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site." }, { "info": { "name": "Datadog Get a Workload Protection Agent Rule (us1-fed)", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" } ] }, "docs": "Get the details of a specific agent rule.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site." }, { "info": { "name": "Datadog Update a Workload Protection Agent Rule (us1-fed)", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a specific agent rule.\nReturns the agent rule object when the request is successful.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site." }, { "info": { "name": "Datadog Delete a Workload Protection Agent Rule (us1-fed)", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id", "params": [ { "name": "agent_rule_id", "value": "3b5-v82-ns6", "type": "path", "description": "The ID of the Agent rule" } ] }, "docs": "Delete a specific agent rule.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site." }, { "info": { "name": "Datadog Get All Suppression Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/configuration/suppressions", "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Get the list of all suppression rules." }, { "info": { "name": "Datadog Create a Suppression Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/configuration/suppressions", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Create a new suppression rule." }, { "info": { "name": "Datadog Get a Suppression Rule", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/configuration/suppressions/:suppression_id", "params": [ { "name": "suppression_id", "value": "", "type": "path", "description": "The ID of the suppression rule" } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Get the details of a specific suppression rule." }, { "info": { "name": "Datadog Update a Suppression Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/configuration/suppressions/:suppression_id", "params": [ { "name": "suppression_id", "value": "", "type": "path", "description": "The ID of the suppression rule" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Update a specific suppression rule." }, { "info": { "name": "Datadog Delete a Suppression Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/configuration/suppressions/:suppression_id", "params": [ { "name": "suppression_id", "value": "", "type": "path", "description": "The ID of the suppression rule" } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Delete a specific suppression rule." }, { "info": { "name": "Datadog List Rules", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules", "params": [ { "name": "page[size]", "value": "", "type": "query", "description": "Size for a given page. The maximum allowed value is 100." }, { "name": "page[number]", "value": "", "type": "query", "description": "Specific page number to return." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "List rules." }, { "info": { "name": "Datadog Create a Detection Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Create a detection rule." }, { "info": { "name": "Datadog Convert a Rule from Json to Terraform", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/convert", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Convert a rule that doesn't (yet) exist from JSON to Terraform for datadog provider\nresource datadog_security_monitoring_rule." }, { "info": { "name": "Datadog Test a Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/test", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Test a rule." }, { "info": { "name": "Datadog Validate a Detection Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/validation", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Validate a detection rule." }, { "info": { "name": "Datadog Update an Existing Rule", "type": "http" }, "http": { "method": "PUT", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Update an existing rule. When updating `cases`, `queries` or `options`, the whole field\nmust be included. For example, when modifying a query all queries must be included.\nDefault rules can only be updated to be enabled, to change notifications, or to update\nthe tags (default tags cannot be removed)." }, { "info": { "name": "Datadog Delete an Existing Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Delete an existing rule. Default rules cannot be deleted." }, { "info": { "name": "Datadog Convert an Existing Rule from Json to Terraform", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/:rule_id/convert", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Convert an existing rule from JSON to Terraform for datadog provider\nresource datadog_security_monitoring_rule." }, { "info": { "name": "Datadog Test an Existing Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/security_monitoring/rules/:rule_id/test", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "Test an existing rule." }, { "info": { "name": "Datadog Create Scanning Rule", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/rules", "body": { "type": "json", "data": "{}" } }, "docs": "Create a scanning rule in a sensitive data scanner group, ordered last.\nThe posted rule MUST include a group relationship.\nIt MUST include either a standard_pattern relationship or a regex attribute, but not both.\nIf included_attributes is empty or missing, we will scan all attributes except\nexcluded_attributes. If both are missing, we will scan the whole event." }, { "info": { "name": "Datadog Update Scanning Rule", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a scanning rule.\nThe request body MUST NOT include a standard_pattern relationship, as that relationship\nis non-editable. Trying to edit the regex attribute of a rule with a standard_pattern\nrelationship will also result in an error." }, { "info": { "name": "Datadog Delete Scanning Rule", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/rules/:rule_id", "params": [ { "name": "rule_id", "value": "", "type": "path", "description": "The ID of the rule." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Delete a given rule." } ] } ], "bundled": true }