文档中心 > UpGradeResourcePack
UpGradeResourcePack

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

扩容/升级

请求参数(POST)

名称

类型

是否必选

描述

示例

Action

String

系统规定参数取值:UpGradeResourcePack

UpGradeResourcePack

body

名称

类型

是否必选

描述

示例

instanceIds

String

资源包id

pack-h58kdagr9vsf

orderCategory

String

订单类型

RENEW

payType

String

计费模式

YEAR_MONTH

rentCount

Integer

租借数量

1

rentUnit

String

租借单位

month

返回参数

名称

类型

描述

示例值

RequestId

String

请求ID

f79fd132-eae6-455e-8542-c0db5296d69b

Status

Boolean

状态

true

Auth

Boolean

用户认证

true

Code

String

状态码

Success

Res

List

文件系统id和订单id

"Ids": [

         " pack-h58kdagr9vyv   "

         ],

"OrderId": " 1038174323649126788   "

Message

String

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

The specified parameter “Signature” is not valid

示例

示例

示例内容

请求示例

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

body:

{

         "capacity":"200",

         "componentCode":   "packageInstance",

         "instanceId":"pack-h58kdagr9vsf",

         "orderCategory":   "UPGRADE",

         "payType":   "YEAR_MONTH",

         "quantity":   0,

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

         "renewType":   "manualrenew",

         "specificationCode":   "nasbag.capacity.200G",

}

正常返回示例

{

         "Status":   true,

         "Auth":   true,

         "Code":   "Success",

         "Res":   {

                   "Ids":   [

                            "pack-h58kdagr9vsf"

                   ],

                   "OrderId":   "1038174306469270849"

         },

         "RequestId":   "8d98d12e-1cbc-4e32-9eb7-97176b418172"

}

异常返回示例

{

         "Status":   false,

         "Msg":   "Index: 0, Size: 0",

         "Auth":   true,

         "Code":   "UnknownError",

         "RequestId":   "349f2115-6b74-4583-b8b1-84a4d1082077"

}

错误码

HttpCode

错误码

错误信息

错误描述

400

InvalidParameter

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

签名无效