Delete Cluster token

This request enables you to delete any token, including tokens not owned by the user who owns the token used to authenticate the call.

Endpoint

/api/cluster/v1/tokens

Parameters

Parameter Type Description In Required
id string

The ID of the token to be deleted. Can either be the public identifier or the secret.

You can't delete the token you're using for authentication of the request.

path required

Response

Response code

Code Description
204

Success. The token has been deleted.

400

Failed. You can't delete the token you're using for authentication of the request.

404

Failed. The token has not been found.

Response format

A successful request doesn't return any content.

Example

In this example, the request deletes the token with ID value 4e9f128e-04f9-4795-pj319-8b7c-3c14a5e885e4. The response code of 204 indicates that the deletion was successful.

The API token is passed in the Authorization header.

Curl

curl -X DELETE "https://myManaged.cluster.com/api/cluster/v1/tokens/4e9f128e-04f9-4795-pj319-8b7c-3c14a5e885e4"
            -H "accept: application/json; charset=utf-8"

Request URL

https://myManaged.cluster.com/api/cluster/v1/tokens/4e9f128e-04f9-4795-pj319-8b7c-3c14a5e885e4

Response code

204