Reset the secret token for an APM resource.
Reset the token of an APM resource.
Path parameters
-
deployment_id
string Required Identifier for the Deployment.
-
ref_id
string Required User-specified RefId for the Resource (or '_main' if there is only one).
Responses
-
202 application/json
Response containing the new secret token, plan to apply it starts
-
400 application/json
Reset token is not supported when APM is managed by Elastic Agent. (code:
clusters.cluster_plan_state_error
) -
404 application/json
- The Deployment specified by {deployment_id} cannot be found. (code:
deployments.deployment_not_found
) - The Resource specified by {ref_id} cannot be found. (code:
deployments.deployment_resource_not_found
)
- The Deployment specified by {deployment_id} cannot be found. (code:
-
500 application/json
We have failed you. (code:
deployments.deployment_resource_no_longer_exists
)
POST
/deployments/{deployment_id}/apm/{ref_id}/_reset-token
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/apm/{ref_id}/_reset-token'