curl -sS -X POST "$BMA_BASE_URL/v1/machines/<machine_id>/executor_tokens/<token_id>/revoke" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"type": "executor_token",
"id": "<string>",
"machine_id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Machines
Revoke an executor token
The executor’s next token exchange with it fails with 401. A token that is already revoked is not found.
POST
/
v1
/
machines
/
{machine_id}
/
executor_tokens
/
{token_id}
/
revoke
curl -sS -X POST "$BMA_BASE_URL/v1/machines/<machine_id>/executor_tokens/<token_id>/revoke" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"type": "executor_token",
"id": "<string>",
"machine_id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}响应
Success.