Skip to Content
快照服务 USnap获取磁盘快照服务价格 - DescribeSnapshotServicePrice

获取磁盘快照服务价格 - DescribeSnapshotServicePrice

简介

获取磁盘快照服务实例价格信息

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 DescribeSnapshotServicePriceYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
Regionstring地域。 参见 地域和可用区列表Yes
Zonestring可用区。参见 可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
Sizeint磁盘大小Yes
ChargeTypestringYear , Month, Dynamic 默认: MonthNo
Quantityint购买服务时长,默认值是1No
BackupModestring默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链No
JournalintBackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48No
HourintBackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96No
DayintBackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30No

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
DataSetSnapshotServicePriceDataSet价格参数列表,具体说明见SnapshotServicePriceDataSetNo

数据模型

SnapshotServicePriceDataSet

字段名类型描述信息必填
ChargeTypestringYear, Month, DynamicNo
Priceint实际价格 (单位: 分)No
OriginalPriceint用户折后价(对应计费CustomPrice)No
ListPriceint原价(对应计费OriginalPrice)No

示例

请求示例

https://api.tnqacloud.com/?Action=DescribeSnapshotServicePrice &Region=cn-zj &Zone=cn-zj-01 &ProjectId=YYkcnwog &VDiskId=vDRTnYEK &ChargeType=TcmcJLby &Quantity=fqNBRpVA &BackupMode=IcQFSHJJ &Journal=7 &Hour=9 &Day=2

响应示例

{ "Action": "DescribeSnapshotServicePriceResponse", "DataSet": "XsAPerJm", "RetCode": 0 }