Linode Kubernetes Engine (LKE)

Service Token Delete

delete
https://api.linode.com/v4/lke/clusters/{clusterId}/servicetoken

Delete and regenerate the service account token for a Cluster.

Note: When regenerating a service account token, the Cluster's control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted.

Path Parameters

clusterId
Required
integer

ID of the target Kubernetes cluster.

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
      -X DELETE \
      https://api.linode.com/v4/lke/clusters/12345/servicetoken

Response Samples

{}

Responses

200: Service token deleted and regenerated successfully.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.