Queries the parameter settings of a host in a dedicated cluster.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cddc:DescribeDedicatedHostAttribute | get | *All Resources * |
| none |
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 parameters
Examples
Sample success responses
JSONformat
{
"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. | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
