Domain name for API request: cwp.intl.tencentcloudapi.com.
Querying the Machine Information Imported in Batches
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: DescribeImportMachineInfo. |
| Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
| Region | No | String | Common Params. This parameter is not required. |
| MachineList.N | Yes | Array of String | Array of the server's private IP (default) / server name / server ID (maximum: 1000 entries) |
| ImportType | Yes | String | Data type of batch import. Select one from Ip, Name, and Id. |
| IsQueryProMachine | No | Boolean | This parameter is discarded. |
| Filters.N | No | Array of Filters | Filter criteria. |
| Parameter Name | Type | Description |
|---|---|---|
| EffectiveMachineInfoList | Array of EffectiveMachineInfo | List of effective machine information: machine name, machine public/private ip, and machine tag. |
| InvalidMachineList | Array of String | List of machines that failed to be imported in batches (for example, the machine does not exist) |
| 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. |
POST / HTTP/1.1
Host: cwp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeImportMachineInfo
<Common request parameters>
{
"MachineList": [
"0.0.0.0"
],
"ImportType": "Ip",
"IsQueryProMachine": true
}
{
"Response": {
"EffectiveMachineInfoList": [
{
"MachineName": "tke-np-ol06goby-worker",
"MachinePublicIp": "10.0.1.92",
"MachinePrivateIp": "172.17.2.23",
"MachineTag": [
{
"Rid": 10,
"Name": "dev",
"TagId": 10021
}
],
"CloudTags": [
{
"TagKey": "cwp",
"TagValue": "dev"
}
],
"Quuid": "a9fe0359-04d9-417f-ab6d-4941891d6c4b",
"Uuid": "a9fe0359-04d9-417f-ab6d-4941891d6c4b",
"KernelVersion": "5.4.241-19-0017.1_plus",
"MachineStatus": "OFFLINE",
"LicenseOrder": {
"LicenseId": 136621,
"LicenseType": 2,
"SourceType": 1,
"ResourceId": "white_883011a2fb7a2ce8f032025ec0437f52",
"Status": 1
},
"VulNum": 0,
"InstanceID": "eks-h847trlg"
}
],
"InvalidMachineList": [
"a9fe0359-04d9-417f-ab6d-****"
],
"RequestId": "633204c8-383a-4dbb-940b-2e92d0674529"
}
}
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 | |
| InvalidParameter.MissingParameter | |
| InvalidParameter.ParsingError | |
| InvalidParameterValue | |
| OperationDenied |
文档反馈