Skip to Content
Snapshot(USnap)CreateSnapshotService

Create USnap Service - CreateSnapshotService

Overview

Create USnap Service

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateSnapshotService.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
VDiskIdstringDisk IDYes
ChargeTypestringYearly , Monthly, Default: MonthlyNo
QuantityintPurchase Duration Default: 1No
TagstringBusiness Group Default: DefaultNo
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
CouponIdstringCoupon IDNo

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
SnapshotServiceIdstringSnapshot Service IDYes
StatusstringSnapshot Service Status, Status: Available(Available), InAvailable(Unavailable), Expired(In Arrears)No

Example

Request Example

https://api.nubexcloud.com/?Action=CreateSnapshotService &Region=cn-zj &Zone=cn-zj-01 &ProjectId=zJuzzWFf &VDiskId=KWofBuYG &Quantity=9 &ChargeType=DBszwtFT &CouponId=CCpkbTeg &CouponId=xFISNPEZ &Tag=DjjJMPup &Form=1 &Journal=3 &Hour=1 &Day=9 &Form=3 &Journal=9 &Hour=2 &Day=5 &UHostQuantity=6.71152

Response Example

{ "Action": "CreateSnapshotServiceResponse", "RetCode": 0, "ServiceID": "uHcWVAVa", "Status": "awQmvrLq" }