Queries the parameter settings of a host in a dedicated cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
|
cn-hangzhou |
| DedicatedHostId |
string |
Yes |
The host ID. You can log on to the ApsaraDB for MyBase console and go to the Hosts page to view the host ID. |
ch-bp10a5id3boqi**** |
| DedicatedHostGroupId |
string |
Yes |
The ID of the dedicated cluster in which the host is created. You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID. |
dhg-34639v1jt4y4**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HostType |
string |
The storage type of the host. Valid values:
|
dhg_cloud_ssd |
| HostStorage |
integer |
The total storage of the host. Unit: GB. |
100 |
| InstanceNumberROSlave |
integer |
The number of secondary instances of the read-only instance deployed on the host. |
1 |
| AccountType |
string |
The account type of the host. Valid values:
|
Admin |
| MemoryUsed |
string |
The amount of memory used by the host. Unit: GB. |
24576 |
| DedicatedHostGroupId |
string |
The ID of the dedicated cluster in which the host is created. |
dhg-34639v1jt4y4**** |
| RequestId |
string |
The request ID. |
00A001D6-2630-5CBD-A23C-80BC1BAFDC31 |
| InstanceNumberROMaster |
integer |
The number of primary instances of the read-only instance deployed on the host. |
1 |
| AllocationStatus |
string |
Indicates whether instances can be deployed on the host. Valid values:
|
Suspended |
| StorageUsed |
string |
The storage usage of the host. Unit: GB. |
588800 |
| EcsClassCode |
string |
The instance type of the Elastic Compute Service (ECS) instance. |
ecs.r5.16xlarge |
| DedicatedHostId |
string |
The host ID. |
ch-bp10a5id3boqi**** |
| MemAllocationRatio |
string |
The memory usage of the host. Unit: %. |
90 |
| CreatedTime |
string |
The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2021-11-13T07:14:22Z |
| IPAddress |
string |
The IP address of the host. |
192.168.XX.XX |
| AutoRenew |
string |
Indicates whether auto-renewal is enabled on the host. Valid values:
|
false |
| HostStatus |
string |
The state of the host. Valid values:
Note
When a host fails, the host is disabled. Before the host is disabled, the data of the instances that run on the host is migrated to another host. This ensures data integrity. |
1 |
| HostName |
string |
The name of the host. |
ch-8vbj9x74z874o**** |
| HostCPU |
integer |
The number of CPU cores of the host. |
16 |
| OpenPermission |
string |
Indicates whether the host OS permissions are grated. Valid values:
|
1 |
| InstanceNumber |
integer |
The number of instances deployed on the host. |
3 |
| CpuUsed |
string |
The number of CPU cores used by the host. |
36 |
| VPCId |
string |
The virtual private cloud (VPC) ID. |
vpc-wz9vu1jb32wn3sdd6**** |
| HostClass |
string |
The instance type of the host. |
mssql.host.c2xlarge |
| RegionId |
string |
|
cn-hangzhou |
| InstanceNumberMaster |
integer |
The number of primary instances deployed on the host. |
4 |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1kaugqyrzb58oc1**** |
| InstanceNumberSlave |
integer |
The number of secondary instances deployed on the host. |
1 |
| ExpiredTime |
string |
The expiration time of the host. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2022-03-16T16:00:00Z |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| CPUAllocationRatio |
string |
The CPU overcommit ratio of the dedicated cluster. Unit: %. The value is accurate to the tens digit. |
200 |
| ImageCategory |
string |
The image of the host. This parameter is returned only when the database engine is SQL Server. Valid values:
|
WindowsWithMssqlStdLicense |
| DiskAllocationRatio |
string |
The storage overcommit ratio of the dedicated cluster. |
200 |
| HostMem |
integer |
The memory size of the host. Unit: MB. |
2048 |
| AccountName |
string |
The account name of the host.
|
cdp_system |
| DistributionTag |
string |
The distribution tag of the host. |
tag |
Examples
Success response
JSON format
{
"HostType": "dhg_cloud_ssd",
"HostStorage": 100,
"InstanceNumberROSlave": 1,
"AccountType": "Admin",
"MemoryUsed": "24576",
"DedicatedHostGroupId": "dhg-34639v1jt4y4****",
"RequestId": "00A001D6-2630-5CBD-A23C-80BC1BAFDC31",
"InstanceNumberROMaster": 1,
"AllocationStatus": "Suspended",
"StorageUsed": "588800",
"EcsClassCode": "ecs.r5.16xlarge",
"DedicatedHostId": "ch-bp10a5id3boqi****",
"MemAllocationRatio": "90",
"CreatedTime": "2021-11-13T07:14:22Z",
"IPAddress": "192.168.XX.XX",
"AutoRenew": "false",
"HostStatus": "1",
"HostName": "ch-8vbj9x74z874o****",
"HostCPU": 16,
"OpenPermission": "1",
"InstanceNumber": 3,
"CpuUsed": "36",
"VPCId": "vpc-wz9vu1jb32wn3sdd6****",
"HostClass": "mssql.host.c2xlarge",
"RegionId": "cn-hangzhou",
"InstanceNumberMaster": 4,
"VSwitchId": "vsw-bp1kaugqyrzb58oc1****",
"InstanceNumberSlave": 1,
"ExpiredTime": "2022-03-16T16:00:00Z",
"ZoneId": "cn-hangzhou-h",
"CPUAllocationRatio": "200",
"ImageCategory": "WindowsWithMssqlStdLicense",
"DiskAllocationRatio": "200",
"HostMem": 2048,
"AccountName": "cdp_system",
"DistributionTag": "tag"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.NotSupport | The userid have no permission. | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | The user is not authorized to operate on the specified resource. |
| 403 | Permission.NotSupport | The user permission does not support the operation. | The user does not have permission to perform the operation. |
| 404 | InvalidDedicatedHostGroup.NotFound | Specified DedicatedHostGroup does not exists. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.