CreateRoleBinding
调用该接口为用户添加角色。
Request
post \rbac\roles\{role_id}\users
| Name | Located in | Type | Description |
|---|---|---|---|
| role_id | path | string | bind role name |
Request Body
| Description | Type | Schema |
|---|---|---|
| bind user id | Object | CreateRoleBindingRequestUserList |
CreateRoleBindingRequestUserList
| Name | Type | Description |
|---|---|---|
| id | Array[ string ] | bind user id |
Response
Response 200
| Code3 | Description | Type |
|---|---|---|
| 200 | OK | { { }} |
Response default
| Code2 | Description | Type | Schema |
|---|---|---|---|
| default | An unexpected error response. | Object | rpcStatus |
rpcStatus
| Name | Type | Description |
|---|---|---|
| code | integer | |
| details | Array[protobufAny] | [ 具体参数可见下面 protobufAny ] |
| message | string |
protobufAny
| Name | Type | Description |
|---|---|---|
| @type | string |