调用DescribeDedicatedHostAttribute接口查询专属集群某个主机的参数信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 否 | cn-hangzhou | |
DedicatedHostId | string | 是 | 主机 ID。您可以登录云数据库专属集群控制台,在主机列表查看并获取主机 ID。 | ch-bp10a5id3boqi**** |
DedicatedHostGroupId | string | 是 | 主机所属集群的 ID。您可以登录云数据库专属集群控制台,在集群列表查看并获取专属集群 ID。 | dhg-34639v1jt4y4**** |
返回参数
示例
正常返回示例
JSON
格式
{
"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"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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. | 操作被禁止 |
403 | Permission.NotSupport | The user permission does not support the operation. | 权限不支持当前操作 |
404 | InvalidDedicatedHostGroup.NotFound | Specified DedicatedHostGroup does not exists. | - |
访问错误中心查看更多错误码。