查看用户和角色的绑定关系详情
请求信息
请求行
GET /apis/auth.alauda.io/v1/userbindings/{name}
查看指定的用户绑定关系的详细信息。
请求行参数
| 名称 | 类型 | 是否必填项 | 描述 | 
|---|---|---|---|
| name | string | 是 | 用户绑定关系的名称。 | 
请求参数
| 名称 | 类型 | 是否必填项 | 描述 | 
|---|---|---|---|
| resourceVersion | string | 否 | 如果未设置,则基于 quorum-read 标志从远程存储返回结果;如果它是 0,那么我们只是返回我们目前在缓存,没有保证;如果设置为非零,那么结果至少与给定的 resourceVersion 一样为最新的值。 | 
| pretty | string | 否 | 如果为 true,则会将返回结果输出成适合打印的格式。 | 
返回信息
Content-Type 
                application/json,
                application/yaml
状态码: 200
OK
返回体示例
UserBinding 是 UserBinding API 的 Schema。
{
   "apiVersion": "auth.alauda.io/v1",
   "kind": "UserBinding",
   "metadata": {
     "annotations": {
       "auth.cpaas.io/role.display-name": "项目管理员",
       "auth.cpaas.io/user.email": "example@example.com",
       "cpaas.io/updated-at": "2021-06-30T07:37:24Z"
     },
     "creationTimestamp": "2021-06-30T07:37:24Z",
     "generation": 1,
     "labels": {
       "auth.cpaas.io/role.display-name": "2KAEbcqMR",
       "auth.cpaas.io/role.level": "project",
       "auth.cpaas.io/role.name": "project-admin-system",
       "auth.cpaas.io/user.email": "23463b99b62a72f26ed677cc556c44e8",
       "cpaas.io/cluster": "",
       "cpaas.io/namespace": "",
       "cpaas.io/project": "example"
     },
     "name": "76315b6128bf97333edbbfef1e03c995",
     "resourceVersion": "10539942",
     "selfLink": "/apis/auth.alauda.io/v1/userbindings/76315b6128bf97333edbbfef1e03c995",
     "uid": "7c8993b5-51f4-4433-a12f-e22a94d19045"
   }
 }返回体说明
| 名称 | 类型 | 描述 | 
|---|---|---|
| apiVersion | string | 查看公共参数 | 
| kind | string | 查看公共参数 | 
| metadata | object | 查看公共参数 |