跳转至

【前台账号】列出



GET /api/v1/account/list

概述

Query 请求参数

参数名 类型 必选 说明
search string 用户名,email
允许为空: False
pageIndex integer 页码
允许为空: False
例子: 10
$minValue: 1
pageSize integer 每页返回数量
允许为空: False
例子: 10
$minValue: 1
$maxValue: 100

参数补充说明

请求例子

curl '<Endpoint>/api/v1/account/list?pageIndex=1&pageSize=5' \
  -H 'Content-Type: application/json' \
  -H 'X-Df-Access-Key: <AK key>' \
  -H 'X-Df-Nonce: <随机字符>' \
  -H 'X-Df-Signature: <签名>' \
  -H 'X-Df-Timestamp: <时间戳>'

响应

{
    "code": 200,
    "content": {
        "data": [
            {
                "attributes": {},
                "canaryPublic": false,
                "createAt": 1715135066,
                "creator": "extend",
                "deleteAt": -1,
                "email": "xxxxx@qq.com",
                "enableMFA": false,
                "extend": {
                    "lastLoginTime": 1715135086
                },
                "exterId": "acnt-yf5o9juQBxTeTcADbroE8",
                "id": 3023,
                "isUsed": 1,
                "language": "en",
                "mfaSecret": "*********************",
                "mobile": "15435364656",
                "name": "xxxxx",
                "nameSpace": "",
                "status": 0,
                "statusPageSubs": 0,
                "timezone": "",
                "tokenHoldTime": 604800,
                "tokenMaxValidDuration": 2592000,
                "updateAt": 1715135066,
                "updator": "extend",
                "username": "xxxxx",
                "uuid": "acnt_a95702ad60d04209b3ba42650e75c8a8",
                "wsInfo": [
                    {
                        "name": "xxxxx的空间",
                        "roles": [
                            {
                                "name": "Owner",
                                "uuid": "owner",
                                "workspaceUUID": ""
                            }
                        ],
                        "uuid": "wksp_920085d222ba48798136dbf2f4bef209"
                    }
                ]
            }
        ],
        "pageInfo": {
            "count": 5,
            "pageIndex": 1,
            "pageSize": 5,
            "totalCount": 2838
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-33D7337F-869A-4300-9350-31142D36919B"
} 

文档评价

文档内容是否对您有帮助? ×