provider Sensitive Data Scanner PATCH /api/v2/sensitive-data-scanner/config/rules/{rule_id}
@utdk/datadog /api/v2/sensitive-data-scanner/config/rules/{rule_id}
Update Scanning Rule
Update a scanning rule. The request body MUST NOT include a standard_pattern relationship, as that relationship is non-editable. Trying to edit the regex attribute of a rule with a standard_pattern relationship will also result in an error.
rule_id path required
The ID of the rule.
string

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updatescanningrule
PATCH/api/v2/sensitive-data-scanner/config/rules/{rule_id}
Update a scanning rule. The request body MUST NOT include a standard_pattern relationship, as that relationship is non-editable. Trying to edit the regex attribute of a rule with a standard_pattern relationship will also result in an error.

Parameters

required

The ID of the rule.

Input

required

Data related to the update of a rule.

required

Meta payload containing information about the API.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.updatescanningrule()