provider Static Analysis PUT /api/v2/static-analysis/custom/rulesets/{ruleset_name}/rules
@utdk/datadog /api/v2/static-analysis/custom/rulesets/{ruleset_name}/rules
Create Custom Rule
Create a new custom rule within a ruleset
ruleset_name path required
The ruleset name
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.

createcustomrule
PUT/api/v2/static-analysis/custom/rulesets/{ruleset_name}/rules
Create a new custom rule within a ruleset

Parameters

required

The ruleset name

Input

Data object for a custom rule create or update request.

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.createcustomrule()