Settings API - Vulnerability Analytics- Monitoring rules for code-level vulnerabilities schema table
Vulnerability Analytics: Monitoring rules for code-level vulnerabilities (builtin:appsec.code-level-vulnerability-rule-settings)
Global code-level vulnerability detection control defines the default for all process groups. Define custom monitoring rules here to override the default. Note that the monitoring rules are ordered; first matching rule will be applied.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:appsec.code-level-vulnerability-rule-settings |
| environment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:appsec.code-level-vulnerability-rule-settings |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:appsec.code-level-vulnerability-rule-settings | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:appsec.code-level-vulnerability-rule-settings |
Authentication
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Parameters
Property | Type | Description | Required |
---|---|---|---|
Enabledenabled | boolean | - | required |
Step 1: Define criteriacriteria | Criteria | - | required |
Step 2: Define code-level vulnerability detection control for chosen criteriavulnerabilityDetectionControl | VulnerabilityDetectionControl | - | required |
Step 3: Leave comment (optional)metadata | Metadata | - | required |
The Criteria
object
Property | Type | Description | Required |
---|---|---|---|
Process groupprocessGroup | text | - | optional |
The VulnerabilityDetectionControl
object
Property | Type | Description | Required |
---|---|---|---|
Code-level vulnerability controlmonitoringMode | enum |
| required |
The Metadata
object
Property | Type | Description | Required |
---|---|---|---|
Commentcomment | text | - | required |