Revoke Client
Revoke Oauth App Client. You need to pass asset id or client id as input. Asset id/client id can be fetched from Oauth App search api.
Show optional properties
{
"tenant_id": "string"
}
{
"asset_id": "asset@test",
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6"
}
Id of the owner tenant in which Oauth App is created
Asset Id of Oauth App. Either Asset Id or Client Id must be provided. If both present Asset Id will be used to revoke the client associated with Asset Id.
Client Id of Oauth App. Either Client Id or Asset Id must be provided. If both present Asset Id will be used to revoke the client associated with Asset Id.
OK
{
"client_id": "94faf930-df7e-477d-b6fe-e80c9b049e30",
"asset_id": "asset@test",
"site_id": 67444,
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6",
"revoked_by": "[email protected]"
}
Id of the owner tenant in which Oauth App is created
Asset id of Oauth App
Client id of Oauth App
Site id.
Principal who revoked the Oauth App
Bad Request
{
"value": {
"major_error_code": "INVALID_ASSET_ID",
"minor_error_code": "INVALID_ASSET_ID",
"message": "Invalid Asset ID In the Request OR Asset is already revoked."
}
}
parameter_list
message
major_error_code
minor_error_code
Unauthorized
{
"value": {
"major_error_code": 401,
"minor_error_code": "UNAUTHORIZED",
"message": "Validation Failed. Reason: Token Expired"
}
}
parameter_list
message
major_error_code
minor_error_code
Forbidden
{
"major_error_code": 403,
"minor_error_code": "ACCESS_DENIED",
"message": "Access Denied"
}
parameter_list
message
major_error_code
minor_error_code
Not Found
{
"value": {
"major_error_code": "NOT_FOUND",
"minor_error_code": "TENANT_NOT_FOUND",
"message": "Tenant 567905de-ef1c-48ce-9e4e-05c28f5caaa6 not found."
}
}
parameter_list
message
major_error_code
minor_error_code
Internal Server Error
{
"value": {
"major_error_code": "FAILED_TO_REVOKE_ASSET",
"minor_error_code": "FAILED_TO_REVOKE_ASSET",
"message": "Failed to revoke asset."
}
}
parameter_list
message
major_error_code
minor_error_code
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"tenant_id:"string"}' https://{api_host}/vcf/tenant-mgmt/api/v1/auth/clients/revoke