Domain name for API request: cwp.intl.tencentcloudapi.com.
This API is used to query the information of the host overview.
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: DescribeMachineGeneral. |
| Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
| Region | No | String | Common Params. This parameter is not required. |
| Parameter Name | Type | Description |
|---|---|---|
| MachineCnt | Integer | Total number of assets |
| ProtectMachineCnt | Integer | Number of protected machines |
| BaseMachineCnt | Integer | Number of protected Basic Edition machines |
| SpecialtyMachineCnt | Integer | Number of protected Pro Edition machines |
| FlagshipMachineCnt | Integer | Number of protected Ultimate Edition machines |
| RiskMachineCnt | Integer | Number of risky machines |
| CompareYesterdayRiskMachineCnt | Integer | Change in the number of risky machines compared with yesterday |
| CompareYesterdayNotProtectMachineCnt | Integer | Change in the number of unprotected machines compared with yesterday |
| CompareYesterdayDeadlineMachineCnt | Integer | Change in the number of machines expiring soon compared with yesterday |
| DeadlineMachineCnt | Integer | Number of machines about to expire |
| NotProtectMachineCnt | Integer | Number of unprotected machines |
| LHGeneralDiscountCnt | Integer | Number of protected Lighthouse machines |
| CompareYesterdayMachineCnt | Integer | Change in the number of newly added hosts compared with yesterday |
| MachineDestroyAfterOfflineHours | Integer | Automatic cleanup time, maximum 720 hours, minimum 0, default 0, 0=disabled |
| CloudFrom | Array of CloudFromCnt | Cloud server type array |
| 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 the host asset overview.
POST / HTTP/1.1
Host: cwp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeMachineGeneral
<Common request parameters>
{}
{
"Response": {
"AliCloudMachineCnt": 0,
"BaiduCloudMachineCnt": 0,
"BaseMachineCnt": 34,
"CloudFrom": [
{
"CloudFrom": 0,
"MachineCnt": 124
},
{
"CloudFrom": 1,
"MachineCnt": 2
},
{
"CloudFrom": 2,
"MachineCnt": 6
}
],
"CompareYesterdayDeadlineMachineCnt": 2,
"CompareYesterdayMachineCnt": 132,
"CompareYesterdayNotProtectMachineCnt": 64,
"CompareYesterdayRiskMachineCnt": 35,
"DeadlineMachineCnt": 2,
"FlagshipMachineCnt": 34,
"IDCMachineCnt": 0,
"LHGeneralDiscountCnt": 0,
"MachineCnt": 132,
"MachineDestroyAfterOfflineHours": 1,
"NotProtectMachineCnt": 64,
"OtherCloudMachineCnt": 0,
"ProtectMachineCnt": 34,
"RequestId": "9f5fd122-589a-4faa-b004-efd7ef35e240",
"RiskMachineCnt": 35,
"SpecialtyMachineCnt": 0,
"TencentCloudMachineCnt": 0
}
}
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 |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan