Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to inquire the price for instance creation.
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: InquiryPriceCreateInstance. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| TimeUnit | Yes | String | Time unit for purchasing instances. Valid values: |
| TimeSpan | Yes | Integer | Instance purchase duration, which is used together with TimeUnit. |
| Currency | Yes | String | Currency type. Valid values: |
| PayMode | Yes | Integer | Instance billing mode. Valid values: |
| SupportHA | Yes | Integer | Whether to enable high availability for the node. Valid values: |
| Software.N | Yes | Array of String | List of deployed components. For different EMR product IDs, different required component lists need to be set (ProductId: For details about its meaning, see the ProductId parameter). Valid values: |
| ResourceSpec | No | NewResourceSpec | Node specifications for price inquiry. |
| Placement | No | Placement | Location of the instance. This parameter can be used to specify attributes such as the AZ and associated project of the instance. |
| VPCSettings | No | VPCSettings | VPC-related information configuration. This parameter can be used to specify the VPC ID, subnet ID, and so on. |
| MetaType | No | String | Hive shared metadata database type. Valid values: |
| UnifyMetaInstanceId | No | String | EMR-MetaDB instance. |
| MetaDBInfo | No | CustomMetaInfo | Custom MetaDB information. |
| ProductId | No | Integer | Product ID. Different product IDs indicate different EMR product versions. Valid values: |
| SceneName | No | String | Scenario-based values: Hadoop-Kudu, Hadoop-Zookeeper, Hadoop-Presto, and Hadoop-Hbase. |
| ExternalService.N | No | Array of ExternalService | Shared component information. |
| VersionID | No | Integer | Default value: 0. It is changed to 1 after the cross-AZ feature is supported. |
| MultiZoneSettings.N | No | Array of MultiZoneSetting | Specification information of the AZ. |
| DefaultMetaVersion | No | String | Database version. |
| NeedCdbAudit | No | Integer | Whether to enable audit. Valid values: 0 (no) and 1 (yes). |
| MetaDBGroupInfo.N | No | Array of CustomMetaDBInfo | Custom database data. |
| Parameter Name | Type | Description |
|---|---|---|
| OriginalCost | Float | Original price (CNY). |
| DiscountCost | Float | Discounted price (CNY). |
| TimeUnit | String | Time unit for purchasing instances. Valid values: |
| TimeSpan | Integer | Instance purchase duration. |
| PriceList | Array of ZoneDetailPriceResult | Price list. |
| 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: emr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: InquiryPriceCreateInstance
<Common request parameters>
{
"ProductId": 53,
"PayMode": 1,
"SupportHA": 1,
"Software": [
"hdfs-3.2.2",
"yarn-3.2.2",
"zookeeper-3.6.3",
"openldap-2.4.44",
"knox-1.6.1",
"hive-3.1.3"
],
"TimeUnit": "m",
"TimeSpan": 1,
"SceneName": "Hadoop-Default",
"VersionID": 1,
"MultiZoneSettings": [
{
"Placement": {
"ProjectId": "0",
"Zone": "100002"
},
"VPCSettings": {
"VpcId": "vpc-j5tovf55",
"SubnetId": ""
},
"ResourceSpec": {
"MasterResourceSpec": {
"InstanceType": "S2.2XLARGE16",
"Tags": [],
"Cpu": 4,
"MemSize": 1024,
"DiskSize": 14321,
"Spec": "SA5",
"StorageType": 1,
"DiskType": "CLOUD_SSD"
},
"MasterCount": 2,
"CoreResourceSpec": {
"InstanceType": "SA2.LARGE8",
"Tags": []
},
"CoreCount": 3,
"CommonResourceSpec": {
"InstanceType": "S2.MEDIUM4",
"Tags": []
},
"CommonCount": 3,
"TaskResourceSpec": {
"InstanceType": "SA2.LARGE8",
"Tags": []
},
"TaskCount": 0
}
}
],
"MetaType": "EMR_DEFAULT_META",
"DefaultMetaVersion": "mysql8",
"NeedCdbAudit": 0,
"ExternalService": [],
"Currency": "CNY"
}
{
"Response": {
"DiscountCost": 5680.2,
"OriginalCost": 5680.2,
"PriceList": [
{
"NodeDetailPrice": [
{
"NodeType": "Master",
"PartDetailPrice": [
{
"GoodsNum": 2,
"InstanceType": "Node",
"Policy": 10,
"Price": 828,
"RealCost": 828,
"RealTotalCost": 1656
},
{
"GoodsNum": 2,
"InstanceType": "System disk",
"Policy": 10,
"Price": 70,
"RealCost": 70,
"RealTotalCost": 140
},
{
"GoodsNum": 2,
"InstanceType": "Data disk",
"Policy": 10,
"Price": 200,
"RealCost": 200,
"RealTotalCost": 400
}
]
},
{
"NodeType": "Common",
"PartDetailPrice": [
{
"GoodsNum": 3,
"InstanceType": "Node",
"Policy": 10,
"Price": 207,
"RealCost": 207,
"RealTotalCost": 621
},
{
"GoodsNum": 3,
"InstanceType": "System disk",
"Policy": 10,
"Price": 50,
"RealCost": 50,
"RealTotalCost": 150
},
{
"GoodsNum": 3,
"InstanceType": "Data disk",
"Policy": 10,
"Price": 200,
"RealCost": 200,
"RealTotalCost": 600
}
]
},
{
"NodeType": "Core",
"PartDetailPrice": [
{
"GoodsNum": 3,
"InstanceType": "Node",
"Policy": 10,
"Price": 294.4,
"RealCost": 294.4,
"RealTotalCost": 883.2
},
{
"GoodsNum": 3,
"InstanceType": "System disk",
"Policy": 10,
"Price": 50,
"RealCost": 50,
"RealTotalCost": 150
},
{
"GoodsNum": 3,
"InstanceType": "Data disk",
"Policy": 10,
"Price": 200,
"RealCost": 200,
"RealTotalCost": 600
}
]
},
{
"NodeType": "MySQL",
"PartDetailPrice": [
{
"GoodsNum": 1,
"InstanceType": "MetaDB",
"Policy": 10,
"Price": 480,
"RealCost": 480,
"RealTotalCost": 480
}
]
}
],
"ZoneId": "100002"
}
],
"RequestId": "f70d3401-e7eb-403e-b769-4df8185e552b",
"TimeSpan": 1,
"TimeUnit": "m"
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.GetCamServerFailed | Failed to call the CAM service. |
| FailedOperation.GetTradeServerFailed | Failed to call the inquiry center service. |
| InternalError.AccountCgwError | Internal service call exception. |
| InternalError.CamCgwError | Internal service call exception. |
| InternalError.CamError | Internal service call exception. |
| InternalError.CbsCgwError | Internal service call exception. |
| InternalError.CbsError | Internal service call exception. |
| InternalError.CdbCgwError | Internal service call exception. |
| InternalError.CdbError | Internal service call exception. |
| InternalError.ConfigCgwError | Internal service call exception. |
| InternalError.CvmError | Internal service call exception. |
| InternalError.KmsError | Internal service call exception. |
| InternalError.ProjectCgwError | Internal service call exception. |
| InternalError.SgError | An exception occurred when the security group API is called. |
| InternalError.TagError | Internal service call exception. |
| InternalError.TradeCgwError | Internal service call exception. |
| InternalError.VpcCgwError | Internal service call exception. |
| InternalError.VpcError | Internal service call exception. |
| InvalidParameter | Parameter error. |
| InvalidParameter.HALessMasterCount | Parameter error. |
| InvalidParameter.IncorrectCommonCount | Invalid Common node quantity. |
| InvalidParameter.IncorrectMasterCount | Invalid Master node quantity. |
| InvalidParameter.InvalidCommonDiskType | Parameter error. |
| InvalidParameter.InvalidCoreCount | Invalid Core node quantity. |
| InvalidParameter.InvalidInstanceType | Invalid instance type. |
| InvalidParameter.InvalidMasterDiskType | Parameter error. |
| InvalidParameter.InvalidResourceSpec | Invalid resource specifications. |
| InvalidParameter.InvalidSoftWareName | Invalid software name. |
| InvalidParameter.InvalidTimeUnit | Invalid TimeUnit. |
| InvalidParameter.InvalidUnifyMeta | Invalid unified metadata database. |
| InvalidParameter.InvalidZone | Invalid AZ. |
| InvalidParameter.NotContainMustSelectSoftware | Invalid parameter. It does not contain required components. |
| InvalidParameter.SoftwareNotInProduct | Invalid product components exist. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Missing parameter error. |
| ResourceInsufficient.DiskInsufficient | The specifications of the hard disk do not meet the requirements. |
| ResourceInsufficient.InstanceInsufficient | The node specifications are not supported or have been sold out. |
| ResourceNotFound.SubnetNotFound | The corresponding subnet cannot be found. |
| ResourcesSoldOut | Resources have been sold out. |
| ResourcesSoldOut.CbsSoldOut | CBS resources have been sold out. |
| ResourcesSoldOut.CvmSoldOut | CVMs have been sold out. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários