All Products
Search
Document Center

Elastic High Performance Computing:DescribePrice

Last Updated:Apr 17, 2024

Queries the pricing information of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ehpc:DescribePriceREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PriceUnitstringYes

The billing cycle of the Elastic Compute Service (ECS) instances. This parameter takes effect only when the ChargeType parameter is set to PrePaid. Valid values:

  • Month: pay-by-month
  • Year: pay-by-year
  • Hour: pay-by-hour

Default value: Hour.

Hour
ChargeTypestringNo

The billing method of the ECS instances. Valid values:

  • PostPaid: pay-as-you-go
  • PrePaid: subscription

Default value: PostPaid.

PostPaid
OrderTypestringNo

The type of the order. The order can be set only as a purchase order. Valid value: INSTANCE-BUY.

INSTANCE-BUY
Commoditiesobject []Yes

The information about the service.

AmountintegerYes

The node quantity of the type. Valid values: 1 to 1000.

Default value: 1.

Valid values of N: 1 to 10

2
SystemDiskSizeintegerNo

The system disk size of the node. Unit: GB.

Valid values: 40 to 500.

Default value: 40.

Valid values of N: 1 to 10.

40
SystemDiskPerformanceLevelstringNo

The performance level of the ESSD used as the system disk. This parameter takes effect only when the Commodities.N.SystemDiskCategory parameter is set to cloud_essd. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
  • PL1: A single ESSD can deliver up to 50,000 IOPS of random read/write.
  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

Default value: PL1.

Valid values of N: 1 to 10

PL1
NodeTypestringYes

The type of the node. Valid values:

  • Compute: compute node
  • Manager: management node
  • Login: logon node

Valid values of N: 1 to 10.

Compute
SystemDiskCategorystringNo

The system disk type of the node. Valid values:

  • cloud_efficiency: ultra disk
  • cloud_ssd: standard SSD
  • cloud_essd: ESSD
  • cloud: basic disk

Default value: cloud_efficiency

Valid values of N: 1 to 10.

cloud_ssd
InternetChargeTypestringNo

The EIP billing method of the node. Valid values:

  • PayByBandwidth: pay-by-bandwidth
  • PayByTraffic: pay-by-traffic

Valid values of N: 1 to 10.

PayByBandwidth
NetworkTypestringNo

The network type of the node. Valid value: VPC.

Valid values of N: 1 to 10.

VPC
InstanceTypestringYes

The instance type of the node.

Valid values of N: 1 to 10.

ecs.n1.tiny
PeriodintegerYes

The subscription duration of the node. Valid values:

  • If PriceUnit is set to Year, the valid values of the Period parameter are 1, 2, and 3.
  • If PriceUnit is set to Month, the valid values of the Period parameter are 1, 2, 3, 4, 5, 6, 7, 8, and 9.
  • If PriceUnit is set to Hour, the valid value of the Period parameter is 1.

Default value: 1.

Valid values of N: 1 to 10.

1
InternetMaxBandWidthOutintegerNo

The maximum outbound public bandwidth of the node. Unit: Mbit/s.

Valid values: 0 to 100.

Default value: 0.

Valid values of N: 1 to 10.

100
DataDisksobject []No

The list of data disks.

sizeintegerNo

The size of the data disk. Unit: GB.

Valid values: 40 to 500.

Default value: 40.

Valid values of N: 0 to 4.

40
categorystringNo

The type of the data disk. Valid values:

  • cloud_efficiency: ultra disk
  • cloud_ssd: standard SSD
  • cloud_essd: ESSD
  • cloud: basic disk

Default value: cloud_efficiency.

Valid values of N: 0 to 4.

cloud_efficiency
deleteWithInstancebooleanNo

Specifies whether the data disk is released when the node is released. Valid values:

  • true
  • false

Default value: true.

Valid values of N: 0 to 4.

true
performanceLevelstringNo

The performance level of the ESSD used as the data disk. This parameter takes effect only when the Commodities.N.DataDisks.N.category parameter is set to cloud_essd. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
  • PL1: A single ESSD can deliver up to 50,000 IOPS of random read/write.
  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

Default value: PL1.

Valid values of N: 0 to 4.

PL1
encryptedbooleanNo

Specifies whether to encrypt the data disk. Valid values:

  • true: encrypts the data disk.
  • false: does not encrypt the data disk.

Default value: false.

Valid values of N: 0 to 4.

false

Response parameters

ParameterTypeDescriptionExample
object
TotalTradePricefloat

The total price.

Unit: USD.

1258
RequestIdstring

The request ID.

54FF9025-2C2F-42EB-870D-0DF5B0ACF24E
Pricesobject []

The array of cluster prices. If you query the prices of multiple nodes in the cluster, the sequence of the prices in the returned value of PriceInfo is the same as the sequence of the nodes in the request parameters. For example, the first price in the value of PriceInfo is the price of the first node specified in the request parameters.

OriginalPricefloat

The original price.

Unit: USD.

1258
NodeTypestring

The node type. Valid values:

  • Manager: management node
  • Login: logon node
  • Compute: compute node
Compute
Currencystring

The currency that is used to measure the price. Valid values:

USD

USD
TradePricefloat

The final price.

Unit: USD.

1258

Examples

Sample success responses

JSONformat

{
  "TotalTradePrice": 1258,
  "RequestId": "54FF9025-2C2F-42EB-870D-0DF5B0ACF24E",
  "Prices": {
    "PriceInfo": [
      {
        "OriginalPrice": 1258,
        "NodeType": "Compute",
        "Currency": "USD",
        "TradePrice": 1258
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
404ClusterNotFoundThe specified cluster does not exist.The specified instance does not exist.
406EcsErrorAn error occurred while calling the ECS API operation.An error occurred while calling the ECS API operation.
406DbErrorA database service error occurred.Database request failed.
406AliyunErrorAn Alibaba Cloud product error occurred.An Alibaba Cloud product error occurred.
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
407EntityNotExist.RoleThe role does not exist.The role does not exist.
500UnknownErrorAn unknown error occurred.An unknown error occurred.
503ServiceUnavailableThe request has failed due to a temporary failure of the serverThe request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-27The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 407 change
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 406
    delete Error Codes: 500
    delete Error Codes: 503
2021-12-23The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 406
    delete Error Codes: 407
    delete Error Codes: 500
    delete Error Codes: 503