A newer version is available. For the latest information, see the
current release documentation.
Reset tokenedit
This endpoint is deprecated and scheduled to be removed in the next major version. Use reset APM resource token instead.
Resets the secret token for a given APM cluster.
Requestedit
POST /api/v1/clusters/apm/{cluster_id}/_reset-token
Path parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
Y |
APM instance identifier |
Responsesedit
-
200
-
The token was successfully reset
-
404
-
The cluster specified by {cluster_id} cannot be found (code: 'clusters.cluster_not_found')
-
412
-
There is not currently applied plan - eg the cluster has not finished provisioning, or the provisioning failed (code: 'clusters.cluster_plan_state_error')
-
449
-
elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')
Request exampleedit
curl -XPOST https://{{hostname}}/api/v1/clusters/apm/{cluster_id}/_reset-token \ -H "Authorization: ApiKey $ECE_API_KEY"