Docs
api
Snapshot(USnap)
CreateSnapshotService

- CreateSnapshotService

Overview

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
RegionstringYes
ZonestringYes
ProjectIdstringNo
VDiskIdstringYes
ChargeTypestringNo
QuantityintNo
TagstringNo
BackupModestringNo
JournalintNo
HourintNo
DayintNo
CouponIdstringNo

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
SnapshotServiceIdstringYes
StatusstringNo

Example

Request Example

https://api.dezai.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"
}