{ "opencollection": "1.0.0", "info": { "name": "Datadog Account Scanning API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Scanning", "type": "folder" }, "items": [ { "info": { "name": "Datadog List Scanning Groups", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config" }, "docs": "List all the Scanning groups in your organization." }, { "info": { "name": "Datadog Create Scanning Group", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/groups", "body": { "type": "json", "data": "{}" } }, "docs": "Create a scanning group.\nThe request MAY include a configuration relationship.\nA rules relationship can be omitted entirely, but if it is included it MUST be\nnull or an empty array (rules cannot be created at the same time).\nThe new group will be ordered last within the configuration." }, { "info": { "name": "Datadog Update Scanning Group", "type": "http" }, "http": { "method": "PATCH", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/groups/:group_id", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of a group of rules." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a group, including the order of the rules.\nRules within the group are reordered by including a rules relationship. If the rules\nrelationship is present, its data section MUST contain linkages for all of the rules\ncurrently in the group, and MUST NOT contain any others." }, { "info": { "name": "Datadog Delete Scanning Group", "type": "http" }, "http": { "method": "DELETE", "url": "https://{subdomain}.{site}/api/v2/sensitive-data-scanner/config/groups/:group_id", "params": [ { "name": "group_id", "value": "", "type": "path", "description": "The ID of a group of rules." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Delete a given group." }, { "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 }