Skip to Content
Snapshot(USnap)DescribeSnapshotServicePrice

Get USnap service price - DescribeSnapshotServicePrice

Overview

Get the price information of USnap service instance

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeSnapshotServicePrice.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
SizeintDisk SizeYes
ChargeTypestringYearly , Monthly, Default: MonthlyNo
QuantityintPurchase service duration, the default value is 1No
BackupModestringThe default is to activate the basic package, “Base”: Basic Edition, “Ultimate”: Flagship Edition, “Custom”: Custom Backup Chain.No
JournalintWhen BackupMode is set to Custom, settings are made based on multiples of 12 hours in seconds, such as 12, 24, 36, 48.No
HourintWhen BackupMode is set to Custom, settings are made on a 24-hour basis and multiplied, such as 24, 48, 72, 96.No
DayintWhen BackupMode is set to Custom, settings are made based on a multiple of 5 days, such as 5, 10, 15, 20, 25, 30.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataSetSnapshotServicePriceDataSetPrice parameter list, for detailed explanation see SnapshotServicePriceDataSetNo

Data Model

SnapshotServicePriceDataSet

Field NameTypeDescription InformationRequired
ChargeTypestringYearly, Monthly, DynamicNo
PriceintActual Price (Unit: Cent)No
OriginalPriceintUser’s discounted price (corresponding to billing CustomPrice)No
ListPriceintOriginal Price (Corresponding to Billing OriginalPrice)No

Example

Request Example

https://api.genesissai.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

Response Example

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