ReferenceAPIAccess Service
Revoke role
Fails with FAILED_PRECONDITION for the org's last owner.
POST
Fails with FAILED_PRECONDITION for the org's last owner.
principal*stringThe principal id.
application/json- body
name?stringThe principal's name.
binding?OK
application/json- response
principal?A user or a service account, which calls the API with its keys.
curl -X POST 'http://localhost:8080/v1/principals/string:revokeRole' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "principal": { "name": "string", "type": "PRINCIPAL_TYPE_UNSPECIFIED", "displayName": "string", "email": "string", "disabled": true, "roleBindings": [ { "role": "ROLE_UNSPECIFIED", "workspace": "string" } ], "createTime": "2019-08-24T14:15:22Z" }}