builtin:appsec.code-level-vulnerability-rule-settings)
The global code-level vulnerability detection control defines the default per technology for all process groups. To override the default, define custom monitoring rules here. Note that monitoring rules are ordered; the first matching rule applies.
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 |
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.
Property | Type | Description | Required |
---|---|---|---|
Enabledenabled | boolean | - | required |
Rule nameruleName | text | - | optional |
Step 1: Select code-level vulnerability detection behaviorvulnerabilityDetectionControl | VulnerabilityDetectionControl | - | required |
Step 2: Specify where the rule is applied (optional)resourceAttributeConditions | ResourceAttributeCondition[] | When you add multiple conditions, the rule applies if all conditions apply. If you want the rule to apply only to a subset of your environment, provide the resource attributes that should be used to identify that part of the environment. | required |
Step 3: Leave comment (optional)metadata | Metadata | - | required |
VulnerabilityDetectionControl
objectProperty | Type | Description | Required |
---|---|---|---|
Code-level vulnerability controlmonitoringMode | enum |
| required |
ResourceAttributeCondition
objectProperty | Type | Description | Required |
---|---|---|---|
Resource attribute keyresourceAttributeKey | text | - | required |
Matchermatcher | enum |
| required |
Resource attribute valueresourceAttributeValue | text | - | optional |
Metadata
objectProperty | Type | Description | Required |
---|---|---|---|
Commentcomment | text | - | required |