Revoke agent token
POST
/k8s/agents/{cluster_id}/revoke
const url = 'https://shoehorn.example.com/api/v1/k8s/agents/example/revoke';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shoehorn.example.com/api/v1/k8s/agents/example/revokeRevokes the agent token without deleting the agent record.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” cluster_id
required
string
Responses
Section titled “ Responses ”Token revoked