B2B Gateway
- B2B Gateway
- All Products
/public/core/v3/containerImageToken/revoke/<tokenId>
Parameter | Type | Description |
---|---|---|
tokenId | String | ID of the token to be revoked. |
HTTP status code | Description |
---|---|
400 | Token with id:{tokenId} already revoked. |
400 | User:{0} is not authorized to revoke this token. |
401 | Unauthenticated or unauthorized. |
403 | Privilege get.k8s.repository.token is required for accessing
this API. |
DELETE <baseApiUrl>/public/core/v3/containerImageToken/revoke/<tokenId> Content-type: application/json Accept: application/json INFA-SESSION-ID: <SessionId>
{ "error": { "code": "AIS_007", "message": "Privilege - view.k8s.agent.config required for accessing this API.", "debugMessage": "Privilege - view.k8s.agent.config required for accessing this API.", "requestId": "l2EpwkFoqkEjrEJURclPw2", "details": null } } }
{ "error": { "code": "AIS_014", "message": "Token with id:<token ID> already revoked.", "debugMessage": "Token with id:<token ID> already revoked.", "requestId": "iVdlwEoaFiZd3vb0LvLVmp", "details": null } } }
{ "error": { "code": "AIS_013", "message": "User:k8s is not authorized to revoke this token :<token ID>.", "debugMessage": "User:k8s is not authorized to revoke this token :<token ID>.", "requestId": "iLhZ6l6EF6Ddb3jICTGxoj", "details": null } }