Domain name for API request: emr.tencentcloudapi.com.
This API is used to query EMR instances.
A maximum of 20 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: emr.ap-shanghai-fsi.tencentcloudapi.com
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 parameter. The value used for this API: DescribeInstances. |
Version | Yes | String | Common parameter. The value used for this API: 2019-01-03. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
DisplayStrategy | Yes | String | Cluster filtering policy. Valid values:monitorManage . |
InstanceIds.N | No | Array of String | Queries by one or more instance IDs in the format of emr-xxxxxxxx . For the format of this parameter, please see the id.N section in API Overview. If no instance ID is entered, the list of all instances under this APPID will be returned. |
Offset | No | Integer | Page number. Default value: 0, indicating the first page. |
Limit | No | Integer | Number of returned results per page. Default value: 10. Maximum value: 100 |
ProjectId | No | Integer | ID of the project to which the instance belongs. This parameter can be obtained from the projectId field in the return value of the DescribeProject API. If this value is -1, the list of all instances will be returned. |
OrderField | No | String | Sorting field. Valid values: |
Asc | No | Integer | Sorts according to OrderField in ascending or descending order. Valid values: |
Parameter Name | Type | Description |
---|---|---|
TotalCnt | Integer | Number of eligible instances. |
ClusterList | Array of ClusterInstancesInfo | List of EMR instance details. Note: this field may return null, indicating that no valid values can be obtained. |
TagKeys | Array of String | List of tag keys associated to an instance. Note: this field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://emr.tencentcloudapi.com/?Action=DescribeInstances
&Offset=0
&Limit=10
&ProjectId=0
&OrderField=clusterid
&Asc=0
&DisplayStrategy=clusterList
&InstanceIds.0=emr-p9f700x8
&<Common request parameters>
{
"Response": {
"ClusterList": [
{
"AddTime": "2019-09-16 16:48:01",
"AlarmInfo": "",
"AppId": 251008830,
"ChargeType": 1,
"ClusterId": "emr-p9f700x8",
"ClusterName": "beckwu_monthly subscription_do not delete",
"Config": {
"ChargeType": 1,
"ComNodeSize": 0,
"ComResource": {
"Cpu": 0,
"DiskSize": 0,
"DiskType": "",
"MemSize": 0,
"RootSize": 0,
"Spec": "",
"SpecName": "",
"StorageType": 0
},
"CoreNodeSize": 2,
"CoreResource": {
"Cpu": 2,
"DiskSize": 100,
"DiskType": "CLOUD_BASIC",
"MemSize": 8192,
"RootSize": 0,
"Spec": "CVM.S2",
"SpecName": "EMR Standard S2",
"StorageType": 2
},
"MasterNodeSize": 1,
"MasterResource": {
"Cpu": 2,
"DiskSize": 100,
"DiskType": "CLOUD_BASIC",
"MemSize": 8192,
"RootSize": 0,
"Spec": "CVM.S2",
"SpecName": "EMR Standard S2",
"StorageType": 2
},
"OnCos": false,
"SoftInfo": [
"zookeeper-3.4.9",
"hadoop-3.1.2",
"knox-1.2.0",
"sys-1.0"
],
"TaskNodeSize": 1,
"TaskResource": {
"Cpu": 2,
"DiskSize": 100,
"DiskType": "CLOUD_BASIC",
"MemSize": 8192,
"RootSize": 0,
"Spec": "CVM.S2",
"SpecName": "EMR Standard S2",
"StorageType": 2
}
},
"EmrVersion": "EMR-V3.0.0",
"Ftitle": "Cluster is running",
"Id": 19541,
"IsTradeCluster": 0,
"MasterIp": "--",
"ProjectId": 0,
"RegionId": 1,
"ResourceOrderId": 0,
"RunTime": "0 days 2 hours 48 minutes 55 seconds",
"Status": 2,
"SubnetId": 1230738,
"TradeVersion": 1,
"Uin": "1875765535",
"VpcId": 78518,
"ZoneId": 100002
}
],
"RequestId": "4f337873-6fea-4338-9715-24f539b60949",
"TotalCnt": 1
}
}
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. |
InternalError.AccountCgwError | An error occurred while calling another service API. |
InternalError.CamCgwError | An error occurred while calling another service API. |
InternalError.CamError | An error occurred while calling another service API. |
InternalError.CbsCgwError | An error occurred while calling another service API. |
InternalError.CbsError | An error occurred while calling another service API. |
InternalError.CdbCgwError | An error occurred while calling another service API. |
InternalError.CdbError | An error occurred while calling another service API. |
InternalError.ConfigCgwError | An error occurred while calling another service API. |
InternalError.CvmError | An error occurred while calling another service API. |
InternalError.KmsError | An error occurred while calling another service API. |
InternalError.ProjectCgwError | An error occurred while calling another service API. |
InternalError.SgError | An error occurred when calling a security group API. |
InternalError.TagError | An error occurred while calling another service API. |
InternalError.TradeCgwError | An error occurred while calling another service API. |
InternalError.VpcCgwError | An error occurred while calling another service API. |
InternalError.VpcError | An error occurred while calling another service API. |
InternalError.WoodServerError | An error occurred when calling the Woodpecker server. |
InvalidParameter | Invalid parameter. |
InvalidParameter.DisplayStrategyNotMatch | Incorrect display policy. |
InvalidParameter.InvalidClusterId | Invalid parameter: ClusterId. |
InvalidParameter.OrderFieldNotMatch | Invalid sorting field. |
ResourceNotFound.ClusterNotFound | The instance was not found. |
ResourceNotFound.HardwareInfoNotFound | No hardware information found. |
ResourceNotFound.InstanceNotFound | The instance was not found. |
Was this page helpful?