Queries the information about disks on a host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cddc:DescribeDedicatedHostDisks |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DedicatedHostId |
string |
Yes |
The ID of the host. You can log on to the ApsaraDB dedicated cluster console and view and obtain the host ID on the Hosts page. |
ch-bp183v72jr033**** |
| RegionId |
string |
No |
The region ID of the host. You can log on to the ApsaraDB dedicated cluster console to view the region information of the host. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DedicatedHostId |
string |
The ID of the host. |
ch-bp183v72jr033**** |
| RequestId |
string |
The ID of the request. |
C6C6CF41-F284-4F63-AB4D-44FACE3BASQW |
| Disks |
array<object> |
The disk information. |
|
|
object |
|||
| Type |
string |
The type of the cloud disk or local disk. Valid values:
|
data |
| Status |
string |
The status of the cloud disk. Valid values:
|
In_use |
| PerformanceLevel |
string |
The performance level of the disk. Note
MyBase provides three performance levels for cloud disks: ESSD, PL2 ESSD, and PL3 ESSD. A higher performance level (PL) indicates better cloud disk performance. |
PL1 |
| DiskId |
string |
The ID of the cloud disk or local disk. |
d-bp1dffpog8r2eowd**** |
| MaxThroughput |
integer |
The maximum throughput of the disk. Unit: MB/s. |
284 |
| MaxIOPS |
integer |
The maximum IOPS of the disk. Unit: 10,000. |
18250 |
| HasDBInstance |
boolean |
Indicates whether an instance is running on the disk. Valid values:
|
true |
| Device |
string |
The device name of the instance to which the cloud disk or local disk is mounted. |
/dev/xvdb |
| Size |
integer |
The size of the cloud disk or local disk. Unit: GB. |
329 |
| ZoneId |
string |
The zone ID of the cloud disk or local disk. |
cn-hangzhou-h |
| Category |
string |
The storage type of the host. Valid values:
|
cloud_essd |
| DBInstanceId |
string |
The ID of the instance running on the disk. |
rm-bp121zcqr5h8m**** |
Examples
Success response
JSON format
{
"DedicatedHostId": "ch-bp183v72jr033****",
"RequestId": "C6C6CF41-F284-4F63-AB4D-44FACE3BASQW",
"Disks": [
{
"Type": "data",
"Status": "In_use",
"PerformanceLevel": "PL1",
"DiskId": "d-bp1dffpog8r2eowd****",
"MaxThroughput": 284,
"MaxIOPS": 18250,
"HasDBInstance": true,
"Device": "/dev/xvdb",
"Size": 329,
"ZoneId": "cn-hangzhou-h",
"Category": "cloud_essd",
"DBInstanceId": "rm-bp121zcqr5h8m****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.NotSupport | The user ID has no permission. | You are not authorized to perform this operation. |
| 404 | HostInfo.NotFound | The specified host info is not found. | The specified host information is not found. |
| 404 | InvalidDedicatedHostGroup.NotFound | The specified DedicatedHostGroup does not exist. | The specified cluster does not exist. |
| 404 | InvalidParameter | The parameter is invalid. | The parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.