Skip to content

Rotate agent token

POST
/k8s/agents/{cluster_id}/rotate
curl --request POST \
--url https://shoehorn.example.com/api/v1/k8s/agents/example/rotate

Generates a new token and invalidates the previous one.

cluster_id
required
string

New token generated

Media type application/json
object
token
string
Example generated
{
"token": "example"
}