All Products
Search
Document Center

Elastic High Performance Computing:DescribeImagePrice

Last Updated:Mar 03, 2024

Queries the price of an Alibaba Cloud Marketplace image.

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:DescribeImagePriceREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ImageIdstringYes

The ID of an image.

m-bp198jigq7l1ga11****
PriceUnitstringYes

The unit of the subscription duration. Valid values:

  • Day
  • Month
  • Year

Default value: Day.

Day
SkuCodestringYes

The stock keeping unit (SKU) of the image. Valid value: package.

package
PeriodintegerYes

The subscription duration of the read-only instance. Valid values:

  • If PriceUnit is set to Day, the valid values of the Period parameter are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30.
  • 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 Year, the valid values of the Period parameter are 1, 2, and 3.

Default value: 1.

1
AmountintegerYes

The number of images that you want to purchase. Valid values: 1 to 1000.

Default value: 1.

2
OrderTypestringNo

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

INSTANCE-BUY

Response parameters

ParameterTypeDescriptionExample
object
Amountinteger

The number of instances that are purchased.

1
RequestIdstring

The request ID.

47ca3ac4-2a03-48f1-8bf2-ba6de0f3****
DiscountPricefloat

The discount.

0
TradePricefloat

The final price of the image.

0.8
OriginalPricefloat

The original price of the image.

0.8
ImageIdstring

The ID of the custom image.

m-bp198jigq7l1ga11****

Examples

Sample success responses

JSONformat

{
  "Amount": 1,
  "RequestId": "47ca3ac4-2a03-48f1-8bf2-ba6de0f3****",
  "DiscountPrice": 0,
  "TradePrice": 0.8,
  "OriginalPrice": 0.8,
  "ImageId": "m-bp198jigq7l1ga11****"
}

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.
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.