Kubernetes credentials API - DELETE credentials
Deletes the specified Kubernetes credentials configuration. Deletion can't be undone.
This request is an Early Adopter release and may be changed in non-compatible way.
DELETE |
|
Authentication
To execute this request, you need the Write configuration (WriteConfig
) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string |
The ID of the required Kubernetes credentials configuration. |
path | required |
Response
Response codes
Code | Description |
---|---|
200 | Success |
Response body
The KubernetesCredentials object
Configuration for specific Kubernetes credentials.
Element | Type | Description |
---|---|---|
metadata | ConfigurationMetadata | |
id | string | The ID of the given credentials configuration. |
active | boolean | The monitoring is enabled ( If not set on creation, the If the field is omitted during an update, the old value remains unaffected. |
endpointStatus | string | The status of the configured endpoint. ASSIGNED: The credentials are assigned to an ActiveGate which is responsible for processing. UNASSIGNED: The credentials are not yet assigned to an ActiveGate so there is currently no processing. DISABLED: The credentials have been disabled by the user. FASTCHECK_AUTH_ERROR: The credentials are invalid. FASTCHECK_TLS_ERROR: The endpoint TLS certificate is invalid. FASTCHECK_NO_RESPONSE: The endpoint did not return a result until the timeout was reached. FASTCHECK_INVALID_ENDPOINT: The endpoint URL was invalid. FASTCHECK_AUTH_LOCKED: The credentials seem to be locked. UNKNOWN: An unknown error occured. |
endpointStatusInfo | string | The detailed status info of the configured endpoint. |
label | string | The name of the Kubernetes credentials configuration. Allowed characters are letters, numbers, whitespaces, and the following characters: |
endpointUrl | string | The URL of the Kubernetes API server. It must be unique within a Dynatrace environment. The URL must valid according to RFC 2396. Leading or trailing whitespaces are not allowed. |
authToken | string | The service account bearer token for the Kubernetes API server. Submit your token on creation or update of the configuration. For security reasons, GET requests return this field as If the field is omitted during an update, the old value remains unaffected. |
eventsIntegrationEnabled | boolean | The monitoring of events is enabled ( If not set on creation, the If the field is omitted during an update, the old value remains unaffected. |
workloadIntegrationEnabled | boolean | Workload and cloud application processing is enabled ( |
prometheusExportersIntegrationEnabled | boolean | Prometheus exporters integration is enabled ( |
eventsFieldSelectors | KubernetesEventPattern[] | Kubernetes event filters based on field-selectors. If set to |
certificateCheckEnabled | boolean | The check of SSL certificates is enabled ( If not set on creation, the If the field is omitted during an update, the old value remains unaffected. |
The KubernetesEventPattern object
Represents a single Kubernetes events field selector (=event filter based on the K8s field selector).
Element | Type | Description |
---|---|---|
label | string | A label of the events field selector. |
fieldSelector | string | The field selector string (url decoding is applied) when storing it. |
active | boolean | Whether subscription to this events field selector is enabled (value set to |
The ConfigurationMetadata object
Metadata useful for debugging
Element | Type | Description |
---|---|---|
configurationVersions | integer[] | A Sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A Sorted list of string version numbers of the configuration. |
clusterVersion | string | Dynatrace server version. |
{
"id": "KUBERNETES_CLUSTER-CC06304728FC9396",
"label": "K8s credentials - REST example",
"endpointUrl": "https://k8s-api.sample.org",
"eventsFieldSelectors": [
{
"label": "Node events",
"fieldSelector": "involvedObject.kind=Node",
"active": true
}
],
"workloadIntegrationEnabled": true,
"eventsIntegrationEnabled": true,
"authToken": "abcd9876",
"active": true,
"certificateCheckEnabled": true,
"hostnameVerificationEnabled": true
}