文档中心 > DescribeFss
DescribeFss

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

文件存储分页列表,查询。

请求参数(GET)

名称

类型

是否必选

描述

示例

Action

String

系统规定参数取值:DescribeFss

DescribeFss

fsId

List

文件存储ID

nas-g6i7cmrazz70

FsName

String

文件存储名称

ty

FsType

String

文件存储类型

1

Page

int

当前页码

1

Recycle

String

是否在回收站

“0”

regionId

String

云id

cn-tianjin-yfb

Size

int

每页数据条数

10

Status

String

文件存储状态

"Available"

返回参数

名称

类型

描述

示例值

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=DescribeFss&Format=json&SignatureNonce=16343456325226&Version=2020-07-30&AccessKeyId=6oPiV0WMJXhxiT65&SignatureMethod=HMAC-SHA1&regionId=cn-tianjin-yfb&Timestamp=2020-07-30T12:00:00Z&fsName=ty&Signature=w2w76mlUzXYVSHyJbZtbEPjZY/Q=

正常返回示例

{

         "Status": true,

         "Auth": true,

         "Code":   "Success",

         "Res": {

                   "Records": [

                            {

                                     "AzoneId":   "cn-tianjin-yfb1",-

                                     "UpdateTime":   1672301318000,

                                     "ChargeType":   1,

                                     "Recycle":   "0",

                                     "PayType":   "CHARGING_HOURS_USAGE",

                                     "FsName":   "ty",

                                     "InstanceEndTime":   0,

                                     "InstanceStartTime":   1672301303000,

                                     "Vpc":   "vpc-g2gmswxtthml",

                                     "InstanceLabel":   1,

                                     "regionId":   "cn-tianjin-yfb",

                                     "DataEncryption":   "0",

                                     "Status":   "Available",

                                     "SpecificationCode":   "nas.capacity.nfs",

                                     "RegionName":   "天津研发-YFB区",

                                     "Expired":   false,

                                     "fsId":   "nas-g6i7cmrazz70",

                                     "AzoneName":   "可用区Y",

                                     "CreateTime":   1672301304000,

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

                            }

                   ],

                   "Size": 10,

                   "Pages": 1,

                   "Current": 1,

                   "Total": 1

         },

         "RequestId":   "f79fd132-eae6-455e-8542-c0db5296d69b"

}

异常返回示例

{

         "Code":   "InvalidParameter",

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

}

错误码

HttpCode

错误码

错误信息

错误描述

400

InvalidParameter

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

签名无效