Rotate the Cloud Connected cluster API Key

Base URL
https://api.elastic-cloud.com
  • POST /api/v1/cloud-connected/clusters/{id}/apikey/_rotate
Auth

Rotate the API key used to manage this Cloud Connected cluster. A new key is returned, and the previous key is revoked after 7 days or when _revoke-pending is called.

Path parameters

id string · pattern: ^[a-z0-9]{32}$ required

The ID of the Cloud Connected cluster

Header parameters

If-Match string

ETag value fetched in a previous GET cluster request. Used to prevent simultaneous updates

Responses

The new API Key for the Cloud Connected service

application/json
key string

The API Key to manage the Cloud Connected cluster.

Unauthorized

application/json
errors object[] required
message string required

A human-readable message of the error.

code string required

An identifier for this type of error.

Forbidden

application/json
errors object[] required
message string required

A human-readable message of the error.

code string required

An identifier for this type of error.

Not Found

application/json
errors object[] required
message string required

A human-readable message of the error.

code string required

An identifier for this type of error.

Base URL
https://api.elastic-cloud.com