AWS credentials API - POST new credentials

Creates a new Kubernetes credentials configuration.

The body must not provide an ID. The Dynatrace server automatically assigns an ID.

The request consumes and produces an application/json payload.

This request is an early adopter release and may be changed in non compatible way.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/kubernetes/credentials
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/kubernetes/credentials

Parameters

Parameter Type Description In Required
body KubernetesCredentials

The JSON body of the request. Contains parameters of the new Kubernetes credentials configuration.

body optional

The KubernetesCredentials object

Configuration of a Kubernetes credentials.

Element Type Description Required
metadata ConfigurationMetadata

Metadata useful for debugging.

optional
id string

The ID of the Kubernetes credentials configuration.

optional
label string

The name of the Kubernetes credentials configuration.

required
endpointUrl string

The URL of the Kubernetes API server.

It must be unique within a Dynatrace environment.

optional
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 null.

If the field is omitted during an update, the old value is used.

optional
active boolean

The monitoring is enabled (true) or disabled (false) for the Kubernetes cluster.

If not set on creation, the true value is used.

If the field is omitted during an update, the old value is used.

optional

The ConfigurationMetadata object

Metadata useful for debugging

Element Type Description Required
configurationVersions integer[]

A Sorted list of the version numbers of the configuration.

optional
clusterVersion string

Dynatrace server version.

optional

Response format

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

Element Type Description
id string

The ID of the Dynatrace entity.

name string

The name of the Dynatrace entity.

description string

A short description of the Dynatrace entity.

Validate payload

We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.

The request consumes an application/json payload.

This request is an early adopter release and may be changed in non compatible way.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/kubernetes/credentials/validator
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/kubernetes/credentials/validator

Response codes

Code Description
204 Validated. The submitted configuration is valid. The response doesn't have a body.
400 Failed. The input is invalid.