Skip to Content
Snapshot(USnap)DescribeSnapshotService

Get USnap List - DescribeSnapshotService

Overview

Get USnap List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeSnapshotService.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
OffsetintData offset, default is 0No
LimitintReturn data length, default is 20No
SnapshotServiceIdstringSnapshot Service ID (If passed in, the current Snapshot Service ID will be obtained, if not passed in, the list of Snapshot Services in the current available zone will be obtained)No
VDiskIdstringDisk ID (If provided, get the current disk snapshot service, if not provided, get the list of snapshot services available in the current availability zone)No
SnapshotIdstringSnapshot ID (If entered, the snapshot service corresponding to the current snapshot disk will be obtained, if not entered, the snapshot service list of the current available zone will be obtained, if both disk ID and snapshot ID are entered, the disk ID will be prioritized)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
DataSetarray[SnapshotServiceDataSet]Snapshot Service ListNo
TotalCountintSnapshot Service DataSet TotalNo

Data Model

SnapshotServiceDataSet

Field NameTypeDescription InformationRequired
ZonestringAvailability Zone InformationNo
CreateTimeintCreation TimeYes
VDiskIdstringDisk IdYes
StatusstringStatus: Available (Available), InAvailable (Unavailable), Expired (Arrears)Yes
VDiskTypestringUDiskData” Cloud Disk Data Disk; “UDiskBoot” Cloud Disk System Disk.Yes
VDiskStatusintIs the disk available, 1 indicates available, 0 indicates not availableYes
VDiskSizeintDisk Size (G)Yes
ServiceIdstringService IDNo
VDiskNamestringDisk NameNo
ExpiredTimeintExpiration TimeNo
ChargeTypestringBilling TypeNo
IsExpirestringIs the billing expired?No
AutoRenewstringAuto-renewal?No
TagstringBusiness GroupNo

Example

Request Example

https://api.nubexcloud.com/?Action=DescribeSnapshotService &Region=cn-zj &Zone=cn-zj-01 &ProjectId=CeigGZFc &Offset=9 &Limit=4 &VDiskId=BEjwyiFd &SnapshotId=JAQOCYXO &SnapshotId=zSeLTmxM &SnapshotServiceId=eHiegDYn

Response Example

{ "Action": "DescribeSnapshotServiceResponse", "DataSet": [ { "CreateTime": 5, "ServiceId": "PRTbzCzM", "Status": "vVArIRBK", "VDiskId": "gHjSEVdN" } ], "RetCode": 0, "TotalCount": 2 }