文档中心 > NasLogList
NasLogList

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

查询操作日志列表

请求参数(GET)

名称

类型

是否必选

描述

示例

Action

String

系统规定参数取值:NasLogList

NasLogList

regionId

String

区域id

cn-tianjin-yfb

beginTime

String

开始时间

1673493220775

EndTime

String

结束时间

1673514820775

InstanceId

String

文件存储ID

nas-g6i7cmrazz70

InstanceName

String

文件存储名称

ty

NodeName

String

节点名称


Page

String

当前页码

1

Size

String

每页数据条数

10

返回参数

名称

类型

描述

示例值

RequestId

String

请求ID

f79fd132-eae6-455e-8542-c0db5296d69b

Status

Boolean

状态

true

Auth

Boolean

用户认证

true

Code

String

状态码

Success

Res

List

文件存储记录

[ { ......    }]

Message

String

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

The specified parameter “Signature” is not valid

示例

示例

示例内容

请求示例

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

正常返回示例

{

         "status":   true,

         "code":   "Success",

         "auth":   true,

         "res":   {

                   "current":   1,

                   "size":   10,

                   "total":   21,

                   "pages":   3,

                   "records":   [

                            {

                                     "status":   "",

                                     "requestId":   "b42314e0-9d24-42f6-b0b6-6b99f2724a4e",

                                     "instanceId":   "user-h58kgcyik1ii",

                                     "nodeName":   "",

                                     "operationName":   "创建本地用户",

                                     "operationUserId":   "420925d6-bcc4-4537-904b-ff67a8d6ce4a",

                                     "createdAt":   "2023-01-16 02:07:56",

                                     "svm":   "user-h58kgcyik1ii",

                                     "updatedAt":   "2023-01-16T02:07:56+08:00",

                                     "result":   "success",

                                     "instanceName":   "sdfs12314",

                                     "type":   "uniStor",

                                     "paramDetail":   "{\"UserName\":\"sdfs12314\",\"UserId\":\"420925d6-bcc4-4537-904b-ff67a8d6ce4a\",\"CifsUserId\":\"user-h58kgcyik1ii\",\"Password\":\"Sh@nghai\",\"GroupName\":[\"faefaewfaewfwa\"],\"ReqId\":\"b42314e0-9d24-42f6-b0b6-6b99f2724a4e\"}",

                                     "id":   220794,

                                     "deletedAt":   null

                            }

                   ]

         },

         "msg":   null

}

异常返回示例

{

         "Status":   false,

         "Msg":   "Required String parameter 'beginTime' is not present",

         "Auth":   true,

         "Code":   "UnknownError",

         "RequestId":   "62fc2726-0946-499d-9098-93643e800b5a"

}

错误码

HttpCode

错误码

错误信息

错误描述

400

InvalidParameter

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

签名无效