REVOKE SERVICE ROLE¶
Revokes a service role from an account role, application role, or database role. For more information, see Managing service-related privileges.
- See also:
语法
参数
name指定要撤销的服务角色的标识符。如果标识符包含空格或特殊字符,则整个字符串必须放在双引号内。放在双引号内的标识符也区分大小写。
按以下格式指定服务角色名称:
service-name!service-role-nameFor example,
echo_service!echoendpoint_role.ROLE role_name要撤销服务角色的账户角色的名称。
APPLICATION ROLE application_role要撤销服务角色的应用程序角色的名称。
DATABASE ROLE database_name要撤销服务角色的数据库角色的名称。
访问控制要求
A role used to execute this operation must have the following privileges at a minimum:
| Privilege or role | Object | Notes |
|---|---|---|
| OWNERSHIP | Service | Only the service owner can revoke the service role. |
示例
The following command revokes the echoendpoint_role service role defined in the echo_service service specification from the service_function_user_role role.