文档中心 > GetUserList
GetUserList

最近更新时间:2023-03-30

查询本地用户

请求参数(GET)

名称

类型

是否必选

描述

示例

Action

String

系统规定参数取值:GetUserList

GetUserList

regionId

String

区域id

cn-tianjin-yfb

UserGroup

String

用户组

faefaewfaewfwa

UserName

String

用户名称

faefaewfaewfwa_user

Page

Integer

当前页数

1

Size

Integer

每页条数

10

返回参数

名称

类型

描述

示例值

RequestId

String

请求ID

f79fd132-eae6-455e-8542-c0db5296d69b

Status

Boolean

状态

true

Auth

Boolean

用户认证

true

Code

String

状态码

Success

Res

List

用户信息列表

{

         “Record”:[{}…],

         "Size":   10,

         "Pages":   1,

         "Current":   1,

         "Total":   2

}

Message

String

错误提示信息 (异常返回才有此项)

The specified parameter “Signature” is not valid

示例

示例

示例内容

请求示例

https://api.unicloud.com/openapi/nas?SignatureVersion=2.0&Action=GetUserList&Format=json&SignatureNonce=16343456325226&Version=2020-07-30&AccessKeyId=6oPiV0WMJXhxiT65&SignatureMethod=HMAC-SHA1&regionId=cn-tianjin-yfb&Timestamp=2020-07-30T12%3A00%3A00Z&Signature=ZjHuzt5LoWrlW2Wr7OeglRfyxeU%3D

正常返回示例

{

         "Status":   true,

         "Auth":   true,

         "Code":   "Success",

         "Res":   {

                   "Records":   [

                            {

                                     "AffiliatedGroup":   "",

                                     "Id":   7210,

                                     "UpdatedAt":   "2023-01-12T17:43:02+08:00",

                                     "CifsUserId":   "user-h58kcmsew8zk",

                                     "Password":   "Sh@nghai",

                                     "MainGroup":   "faefaewfaewfwa",

                                     "UserName":   "sdfs",

                                     "ExpiresTime":   "2036-02-06",

                                     "CreatedAt":   "2023-01-12 17:43:02",

                                     "UserId":   "420925d6-bcc4-4537-904b-ff67a8d6ce4a"

                            },

                            {

                                     "AffiliatedGroup":   "",

                                     "Id":   976,

                                     "UpdatedAt":   "2022-09-22T12:09:51+08:00",

                                     "CifsUserId":   "user-ftgfaop3x7m0",

                                     "Password":   "KVZk6FEcq2tflGmRG2yBFA==",

                                     "MainGroup":   "faefaewfaewfwa",

                                     "UserName":   "faefaewfaewfwa_user",

                                     "ExpiresTime":   "2036-02-06",

                                     "CreatedAt":   "2022-06-10 15:13:33",

                                     "UserId":   "420925d6-bcc4-4537-904b-ff67a8d6ce4a"

                            }

                   ],

                   "Size":   10,

                   "Pages":   1,

                   "Current":   1,

                   "Total":   2

         },

         "RequestId":   "bfde376e-c4f3-44f5-97d7-8fd101f9b8d7"

}

异常返回示例

{

         "Code":   "InvalidParameter",

         "Message":   "The specified parameter “Signature” is not valid."

}

错误码

HttpCode

错误码

错误信息

错误描述

400

InvalidParameter

"The specified parameter”Signature”is   not valid."

签名无效