查看用户详情
请求信息
请求行
GET /apis/auth.alauda.io/v1/users/{name}
查看指定的用户的详细信息。
请求行参数
名称 | 类型 | 是否必填项 | 描述 |
---|---|---|---|
name | string | 是 | 用户邮箱经过 MD5 加密后生成的 32 位小写字符串。 |
请求参数
名称 | 类型 | 是否必填项 | 描述 |
---|---|---|---|
resourceVersion | string | 否 | 如果未设置,则基于 quorum-read 标志从远程存储返回结果;如果它是 0,那么我们只是返回我们目前在缓存,没有保证;如果设置为非零,那么结果至少与给定的 resourceVersion 一样为最新的值。 |
pretty | string | 否 | 如果为 true,则会将返回结果输出成适合打印的格式。 |
返回信息
Content-Type
application/json
,
application/yaml
状态码: 200
OK
返回体示例
{
"apiVersion": "auth.alauda.io/v1",
"kind": "User",
"metadata": {
"annotations": {
"cpaas.io/creator": "admin@cpaas.io",
"cpaas.io/display-name": "example",
"cpaas.io/updated-at": "2021-06-30T06:51:24Z"
},
"creationTimestamp": "2021-06-30T06:51:24Z",
"generation": 1,
"labels": {
"auth.cpaas.io/user.connector_id": "local",
"auth.cpaas.io/user.connector_type": "local",
"auth.cpaas.io/user.email": "23463b99b62a72f26ed677cc556c44e8",
"auth.cpaas.io/user.state": "active",
"auth.cpaas.io/user.username": "",
"auth.cpaas.io/user.valid": "true"
},
"name": "23463b99b62a72f26ed677cc556c44e8",
"resourceVersion": "10492397",
"selfLink": "/apis/auth.alauda.io/v1/users/23463b99b62a72f26ed677cc556c44e8",
"uid": "1a91d3ec-74bc-4b71-8a24-c3246d05d618"
},
"spec": {
"connector_name": "local",
"connector_type": "local",
"email": "example@example.com",
"groups": [
"ungrouped"
],
"is_admin": false,
"mail": "example@example.com",
"state": "active",
"username": "example",
"valid": true
}
}
返回体说明
名称 | 类型 | 描述 |
---|---|---|
apiVersion | string | 查看公共参数 |
kind | string | 查看公共参数 |
metadata | object | 查看公共参数 |
spec | object |
字段路径:spec |
spec.connector_name | string |
身份提供者的名称。
字段路径:spec.connector_name |
spec.connector_type | string |
身份提供者的类型,例如:ldap、oidc。
字段路径:spec.connector_type |
spec.email | string |
用户邮箱地址。
字段路径:spec.email |
spec.groups | array |
用户所属的组。
字段路径:spec.groups |
spec.is_admin | boolean |
字段路径:spec.is_admin |
spec.username | string |
用户名。
字段路径:spec.username |
spec.valid | boolean |
用户是否是有效的。
字段路径:spec.valid |