builtin:appsec.third-party-vulnerability-kubernetes-label-rule-settings)
The global third-party vulnerability detection control defines the default for all Kubernetes hosts. 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.third-party-vulnerability-kubernetes-label-rule-settings |
| environment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:appsec.third-party-vulnerability-kubernetes-label-rule-settings |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:appsec.third-party-vulnerability-kubernetes-label-rule-settings | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:appsec.third-party-vulnerability-kubernetes-label-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 third-party vulnerability detection behaviorvulnerabilityDetectionControl | VulnerabilityDetectionControl | - | required |
Step 2: Specify where the rule is applied (optional)kubernetesLabelConditions | KubernetesLabelCondition[] | 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 Kubernetes label 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 |
---|---|---|---|
Third-party vulnerability controlmonitoringMode | enum |
| required |
KubernetesLabelCondition
objectProperty | Type | Description | Required |
---|---|---|---|
Kubernetes label keykubernetesLabelKey | text | - | required |
Matchermatcher | enum |
| required |
Kubernetes label valuekubernetesLabelValue | text | - | optional |
Metadata
objectProperty | Type | Description | Required |
---|---|---|---|
Commentcomment | text | - | required |