Delete named tokens of a provider
Deletes all named tokens belonging to a specific provider.
This operation is available for the subject provider (id), or the provider's
cluster member with cluster_update privilege. Otherwise requires
oz_tokens_manage admin privilege.
You can learn more about named and temporary tokens here.
Example cURL requests
Delete named tokens of a provider
curl -H "x-auth-token: $TOKEN" -X DELETE \
https://$HOST/api/v3/onezone/providers/$PROVIDER_ID/tokens/named
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Provider Id |
Request Examples
onezone-rest-cli deleteNamedTokensOfProvider id=6ebe7ac282e0188b5336b5d8cfa564d5Responses
All provider's named tokens have been deleted.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}