Queries the prices of Elastic Desktop Service (EDS) resources.
Operation description
Usage notes
The request parameters vary based on the type of desktop resources whose price you want to query. Take note of the following items:
- If you set ResourceType to OfficeSite, you must specify InstanceType.
- If you set ResourceType to Bandwidth, the pay-by-data-transfer metering method is used for network billing.
- If you set ResourceType to Desktop, you must specify InstanceType, RootDiskSizeGib, and UserDiskSizeGib. You can specify OsType, PeriodUnit, Period, and Amount based on your business requirements.
Debugging
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:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ecd:DescribePrice | none | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the regions supported by EDS. | cn-hangzhou |
| ResourceType | string | No | The type of the resource. Valid values:
| Desktop |
| InstanceType | string | No | The specifications of the resource.
| eds.general.2c2g |
| RootDiskSizeGib | integer | No | The size of the system disk. Unit: GiB. If you set | 80 |
| UserDiskSizeGib | integer | No | The size of the data disk. Unit: GiB. | 100 |
| OsType | string | No | The OS type. Valid values:
| Windows |
| PeriodUnit | string | No | The billing cycle. Valid values:
| Hour |
| Period | integer | No | The subscription duration. The valid values of this parameter vary based on the value of
Default value: 1. | 1 |
| Amount | integer | No | The number of resources. Default value: 1. | 1 |
| PromotionId | string | No | The promotion ID. | 123456 |
| InternetChargeType | string | No | The metering method for network traffic. Valid values:
| PayByTraffic |
| Bandwidth | integer | No | The maximum public bandwidth. Unit: Mbit/s.
| 10 |
| GroupDesktopCount | integer | No | The number of cloud computer shares. Default value: 1. Note
This parameter takes effect only if you set ResourceType to DesktopGroup.
| 1 |
| Duration | integer | No | The type of hourly plan if you use the Monthly Subscription billing method. If you set Valid values:
| 120 |
| RootDiskCategory | string | No | The category of the system disk. Valid values:
| 40 |
| UserDiskCategory | string | No | The category of the data disk. Valid values:
| 80 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "B1175630-3C44-4389-A3C1-15639FFC8EBC",
"PriceInfo": {
"Rules": [
{
"Description": "Receive a 15% discount on a one-year subscription.\n",
"RuleId": 587
}
],
"Price": {
"OriginalPrice": 2.796,
"DiscountPrice": 0,
"Currency": "CNY",
"TradePrice": 2.796,
"Promotions": [
{
"PromotionDesc": "Get started with new services with a discount.\n",
"OptionCode": "test",
"Selected": false,
"PromotionId": 123456,
"PromotionName": "Special Offer\n"
}
],
"OrderLines": {
"key": "5376483****"
},
"SpPrice": 50
},
"FreeCdsQuota": true,
"FreeCdsSize": 100
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-04 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2024-11-09 | The request parameters of the API has changed | View Change Details |
| 2024-09-27 | The request parameters of the API has changed | View Change Details |
| 2024-07-25 | The request parameters of the API has changed | View Change Details |
| 2021-10-28 | The request parameters of the API has changed | View Change Details |
| 2021-10-28 | The request parameters of the API has changed | View Change Details |
