Go to main content

Oracle® ZFS Storage Appliance RESTful API 指南,发行版 OS8.8.0

退出打印视图

更新时间: 2018 年 11 月
 
 

列出用户

每个用户都具有以下汇总属性。

表 89  用户属性
属性
类型
说明
logname
string
用户名(创建后不可变)
uid
number
用户 ID,未为目录用户启用
fullname
string
全名
initial_password
string
密码
require_annotation
boolean
需要会话注释的标志
roles
string
此用户的角色
kiosk_mode
boolean
Kiosk 用户
kiosk_screen
string
Kiosk 屏幕

请求示例:

GET /api/user/v1/users HTTP/1.1
Authorization: Basic abcefgMWE=
Host: zfs-storage.example.com:215
Accept: application/json

响应示例:

{
    "user":
    {
        "href": "/api/user/v1/users/admin3",
        "logname": "admin3",
        "type": "local",
        "uid": 2000000000,
        "fullname": "Administrator",
        "initial_password": "password",
        "require_annotation": false,
        "roles": [
            "basic"
        ],
        "kiosk_mode": false,
        "kiosk_screen": "status/dashboard",
        "exceptions": [
        ],
        "preferences": {
            "href": "/api/user/v1/users/admin3/preferences",
            "locale": "C",
            "login_screen": "status/dashboard",
            "session_timeout": 15,
            "advanced_analytics": false,
            "keys": [
            ]
        }
    }
}