Docs
api
Cloud Disk(UDisk)
DescribeUDisk

Get Cloud Disk List - DescribeUDisk

Overview

Get UDisk Instance

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUDisk.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
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 ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
UDiskIdstringUDisk Id (Leave blank to return all)No
OffsetintData offset, default is 0No
LimitintReturn data length, default is 20No
DiskTypestringWhen the ProtocolVersion field is 1, the specific disk type needs to be determined in conjunction with IsBoot: Ordinary data disk: DiskType:"CLOUD_NORMAL", IsBoot:"False"; Ordinary system disk: DiskType:"CLOUD_NORMAL", IsBoot:"True"; SSD data disk: DiskType:"CLOUD_SSD", IsBoot:"False"; SSD system disk: DiskType:"CLOUD_SSD", IsBoot:"True"; RSSD data disk: DiskType:"CLOUD_RSSD", IsBoot:"False"; RSSD system disk: DiskType:"CLOUD_RSSD", IsBoot:"True"; High-efficiency data disk: DiskType:"CLOUD_EFFICIENCY", IsBoot:"False"; High-efficiency system disk: DiskType:"CLOUD_EFFICIENCY", IsBoot:"True"; If empty, pull all. When the ProtocolVersion field is 0 or there is no such field, it can be set to the following values: Ordinary data disk: DataDisk; Ordinary system disk: SystemDisk; SSD data disk: SSDDataDisk; SSD system disk: SSDSystemDisk; RSSD data disk: RSSDDataDisk; RSSD system disk: RSSDSystemDisk; High-efficiency data disk: EfficiencyDataDisk; High-efficiency system disk: EfficiencySystemDisk; If empty, pull all.No
ProtocolVersionintRequest for protocol version, it is recommended to upgrade to 1, when it is 1, DiskType is consistent with UHost disk type definition; default is 0.No
IsBootstringWhen the ProtocolVersion field is 1 and DiskType is not empty, it must be set, please refer to DiskType for setting rules; When the ProtocolVersion field is 1 and DiskType is empty, this field is invalid. When the ProtocolVersion field is 0 or this field does not exist, this field is invalid.No
IgnoreUBillInfostringIgnore billing information or not. Yes: Ignore, No: Do not ignore, default value (No). (If you are not concerned about the billing information, it is recommended to choose "Yes" to reduce request latency)No
IgnoreBackupModestringWhether to ignore snapshot service information. Yes: Ignore, No: Do not ignore, default value (No). (If you do not care about snapshot service information, it is recommended to optionally fill in "Yes" to reduce request latency)No
UDiskBasicInfostringWhether to only return the basic information of the cloud disk (including only the resource information of the cloud disk and the associated host). Yes: Yes, No: No, default value (No). (If only basic information is needed, it is recommended to optionally fill in "Yes" to reduce request latency)No
UHostIdForAttachmentstringFilter out the cloud disks that can be mounted on the host according to the passed UHostIdForAttachment [This field is about to be deprecated, it is recommended to use HostIdForAttachment]No
HostIdForAttachmentstringFilter out the cloud disks that can be mounted on the host according to the passed HostIdForAttachment. Currently mainly for RSSD cloud disks.No
HostIdstringReturns the cloud disk information associated with the host based on the passed in HostId.No
HostProductstringHost product type, which can be used to filter the cloud disks mounted on this type of host. Optional values: uhost, uphost. If empty, all will be fetched. (When the HostIdForAttachment field is not empty, this field can be left blank. If the HostIdForAttachment conflicts with the host type of this field, the HostIdForAttachment field will prevail.)No
StatusstringCloud Disk Status. All (All Status), Available (Available), Attaching (Mounting), InUse (Mounted), Detaching (Unmounting), Initializating (Allocating), Failed (Creation Failed), Cloning (Cloning), Restoring (Restoring), RestoreFailed (Restore Failed). Default value: AllNo
TagstringBusiness Group NameNo

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[UDiskDataSet]JSON formatted UDisk data list, each parameter can be seen below in UDiskDataSetNo
TotalCountintTotal count based on filter conditionsNo

Data Model

UDiskDataSet

Field NameTypeDescription InformationRequired
ZonestringAvailability ZoneNo
UDiskIdstringUDisk Instance IdNo
NamestringInstance NameNo
SizeintCapacity Unit GBNo
StatusstringStatus: Available(Available), Attaching(Attaching), InUse(In Use), Detaching(Detaching), Initializating(Allocating), Failed(Failed to Create), Cloning(Cloning), Restoring(Restoring), RestoreFailed(Failed to Restore)No
CreateTimeintCreation TimeNo
ExpiredTimeintExpiration TimeNo
UHostIdstringThe Id of the mounted UHost. [To be deprecated soon, it is recommended to use HostId]No
UHostNamestringName of the mounted UHost. [To be deprecated soon, it is recommended to use HostName]No
UHostIPstringThe IP of the mounted UHost. [Soon to be deprecated, it is recommended to use HostIP]No
HostIdstringMounted Host's IdNo
HostNamestringName of the Mounted HostNo
HostIPstringMounted Host's IPNo
DeviceNamestringMounted Device NameNo
ChargeTypestringYearly, Monthly, Dynamic, Trial, PostpayNo
TagstringBusiness Group NameNo
IsExpirestringWhether the resource has expired, expired: "Yes", not expired: "No".No
VersionstringDoes it support UDataArk, support: "2.0", not support: "1.0".No
UDataArkModestringWhether to enable UDataArk, enable: "Yes", not supported: "No".No
SnapshotCountintThe number of disk snapshotsNo
SnapshotLimitintSnapshot limit for this diskNo
DiskTypestringWhen the ProtocolVersion field in the request is 1, the specific disk type needs to be determined in conjunction with IsBoot: Ordinary data disk: DiskType:"CLOUD_NORMAL", IsBoot:"False"; Ordinary system disk: DiskType:"CLOUD_NORMAL", IsBoot:"True"; SSD data disk: DiskType:"CLOUD_SSD", IsBoot:"False"; SSD system disk: DiskType:"CLOUD_SSD", IsBoot:"True"; RSSD data disk: DiskType:"CLOUD_RSSD", IsBoot:"False"; RSSD system disk: DiskType:"CLOUD_RSSD", IsBoot:"True"; High-efficiency data disk: DiskType:"CLOUD_EFFICIENCY", IsBoot:"False"; High-efficiency system disk: DiskType:"CLOUD_EFFICIENCY", IsBoot:"True". When the ProtocolVersion field in the request is 0 or there is no such field, the cloud disk type is as follows: Ordinary data disk: DataDisk; Ordinary system disk: SystemDisk; SSD data disk: SSDDataDisk; SSD system disk: SSDSystemDisk; RSSD data disk: RSSDDataDisk; RSSD system disk: RSSDSystemDisk; High-efficiency data disk: EfficiencyDataDisk; High-efficiency system disk: EfficiencySystemDisk.No
CloneEnableintDoes it support cloning, 1 for support, 0 for no supportNo
SnapEnableintDoes it support snapshot, 1 for support, 0 for not supportedNo
ArkSwitchEnableintDoes it support enabling Ark, 1 for support, 0 for no supportNo
UKmsModestringIs it an encrypted disk, Yes: "Yes", No: "No".No
CmkIdstringThe cmk id of this diskNo
DataKeystringThe encrypted key of this diskNo
CmkIdStatusstringThe status of this disk's cmk, Enabled (Normal), Disabled (Invalid), Deleted (Deleted), NoCmkId (Unencrypted disk)No
CmkIdAliasstringcmk id aliasNo
IsBootstringIs it a system disk, Yes: "True", No: "False".No
BackupModestringThe backup method of this disk. Snapshot service: "SnapshotService"; Data Ark: "UDataArk"; No backup method: "".No
RdmaClusterIdstringRDMA cluster id, only RSSD returns this value; other types of cloud disks return "". When the value of this cloud disk is the same as the RdmaClusterId of the UHost, RSSD can be mounted to this UHost.No

Example

Request Example

https://api.ucloud-global.com/?Action=DescribeUDisk
&Region=cn-bj2-02
&UDiskId=bs-xxx
&Offset=0
&Limit=20
&ProtocolVersion=8
&IsBoot=irVoOnAn
&IgnoreUBillInfo=kcHclIeG
&UHostIdForAttachment=nMOZskoE
&HostProduct=FsHZvACv
&HostIdForAttachment=HdrfzmYJ
&HostIdForAttachment=gEfcFPyq
&HostProduct=pRsBGeKD
&HostProduct=bCAPVgsw
&IgnoreBackupMode=dfLRzlOw
&UDiskBasicInfo=vfZypiPf
&HostId=HKnuHzKP
&IgnoreBackupMode=UsDNysiR
&UDiskBasicInfo=dZHASGEc
&HostId=VplBwEPT
&IgnoreBackupMode=SUFDaFBS
&UDiskBasicInfo=XJaFNkfA
&HostId=bsRfMMHc
&Status=ZFCNKvKR
&Tag=YotklvEn

Response Example

{
  "Action": "DescribeUDiskResponse",
  "DataSet": [
    {
      "ChargeType": "Dynamic",
      "CreateTime": 1492529621,
      "DeviceName": "",
      "DiskType": "DataDisk",
      "ExpiredTime": 1509706800,
      "IsExpire": "No",
      "Name": "udisk_uda_1",
      "Size": 10,
      "SnapshotCount": 0,
      "SnapshotLimit": 3,
      "Status": "Cloning",
      "Tag": "Default",
      "UDataArkMode": "No",
      "UDiskId": "bs-xxx",
      "UHostIP": "",
      "UHostId": "",
      "UHostName": "",
      "Version": "2.0",
      "Zone": "cn-bj2-02"
    }
  ],
  "RetCode": 0,
  "TotalCount": 50
}