Domain name for API request: tcss.intl.tencentcloudapi.com.
This example shows you how to query host details.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeAssetHostDetail. |
| Version | Yes | String | Common Params. The value used for this API: 2020-11-01. |
| Region | No | String | Common Params. This parameter is not required. |
| HostId | Yes | String | Host ID |
| Parameter Name | Type | Description |
|---|---|---|
| UUID | String | Container Security UUID |
| UpdateTime | String | Update time. |
| HostName | String | Host name |
| Group | String | Host grouping |
| HostIP | String | Host IP address |
| OsName | String | Operating system. |
| AgentVersion | String | Agent version |
| KernelVersion | String | Kernel version |
| DockerVersion | String | docker version |
| DockerAPIVersion | String | docker api version |
| DockerGoVersion | String | docker go version |
| DockerFileSystemDriver | String | docker file system type |
| DockerRootDir | String | docker root directory |
| ImageCnt | Integer | Image count |
| ContainerCnt | Integer | Number of containers |
| K8sMasterIP | String | k8s IP |
| K8sVersion | String | k8s version |
| KubeProxyVersion | String | kube proxy |
| Status | String | "UNINSTALL": Not Installed; "OFFLINE": Offline; "ONLINE": Protected |
| IsContainerd | Boolean | Is Containerd |
| MachineType | String | Host Source. "TENCENTCLOUD": "Tencent Cloud Servers"; "OTHERCLOUD": "Non-Tencent Cloud Servers" |
| PublicIp | String | Public IP address |
| InstanceID | String | Host instance ID |
| RegionID | Integer | Region ID. |
| Project | ProjectInfo | Associated project |
| Tags | Array of TagInfo | Tag. |
| ClusterID | String | Cluster ID |
| ClusterName | String | Cluster name. |
| ClusterAccessedStatus | String | Cluster Access Status |
| AssetSyncTime | String | Asset synchronization time. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query host details.
POST / HTTP/1.1
Host: tcss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAssetHostDetail
<Common request parameters>
{
"HostId": "dskaldjskld"
}
{
"Response": {
"AgentVersion": "5.2.1.105",
"ClusterAccessedStatus": "AccessedNone",
"ClusterID": "cls-dfw3e***",
"ClusterName": "clsfoo***",
"ContainerCnt": 1,
"DockerAPIVersion": "1.43",
"DockerFileSystemDriver": "overlay2",
"DockerGoVersion": "go1.20.7",
"DockerRootDir": "/var/lib/docker",
"DockerVersion": "24.0.6",
"Group": "root",
"HostIP": "1.1.1.1",
"HostName": "Machine name"
"ImageCnt": 10,
"InstanceID": "ins-8bc803fd",
"IsContainerd": false,
"K8sMasterIP": "10.0.1.92",
"K8sVersion": "1.0.1",
"KernelVersion": "3.10.0-1160.102.1.el7.x86_64",
"KubeProxyVersion": "1.0.1",
"MachineType": "CVM",
"OsName": "CentOS Linux release 7.9.2009 (Core)",
"Project": {
"ProjectID": 0,
"ProjectName": "Default Project"
},
"PublicIp": "1.1.1.1",
"RegionID": 1,
"RequestId": "342475fc-76eb-4199-998f-780f9921a5f2",
"Status": "ONLINE",
"Tags": [],
"UUID": "8bc803fd-d85d-47b8-9e2b-9644674be677",
"UpdateTime": "2024-10-30 10:26:52",
"AssetSyncTime": "2024-10-30 10:26:52"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameter.ParsingError | Incorrect parameter parsing. |
| ResourceNotFound |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback