Queries the price for an upgrade or downgrade.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bpstudio:QueryInstancePrice4Modify |
get |
*Application
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. |
002XWH7MXB8MJRU0 |
| InstanceId |
string |
Yes |
The ID of the resource to upgrade or downgrade. |
rm-uf66k9143r2ch***** |
| Configuration |
object |
No |
The list of target configurations. |
|
|
any |
No |
The target configuration parameters. Note
ecs
rds (You can change the instance type and capacity at the same time.)
kvstore
kvstore_prepaid_public_cn
tair
kafka
polardb
elasticsearch
hitsdb_lindormnext Note
slb Note
The billing method of the instance (`InstanceChargeType`): `PayBySpec` (pay-by-specification) or `PayByCLCU` (pay-by-usage).
hbase
dds
onspre hitsdb_lindorm
drds
clickhouse
Community Edition instance:
Vertical scaling:
drds_polarx
Enterprise Edition:
opensearch
|
orderType:UPGRADE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the application. |
9656C816-1E9A-58D2-86D5-710678D61AF1 |
| Success |
string |
Indicates whether the request was successful. |
true |
| Code |
string |
The return code. |
200 |
| Message |
string |
The error message. |
Success |
| Data |
string |
The task ID. You can use this ID to call the GetResult4QueryInstancePrice4Modify operation to query the price inquiry result. The task ID is valid for one hour. |
price4modify/19862074****/rm-uf69xr871l***fj39/WQ9ULO4SLD**PQY5/FL1IZLW**3H78OC |
| AccessDeniedDetail |
string |
The detailed reason why the access was denied. |
{ "PolicyType": "", "AuthPrincipalOwnerId": "", "EncodedDiagnosticMessage": "", "AuthPrincipalType": "", "AuthPrincipalDisplayName": "", "NoPermissionType": "", "AuthAction": "" } |
Examples
Success response
JSON format
{
"RequestId": "9656C816-1E9A-58D2-86D5-710678D61AF1",
"Success": "true",
"Code": "200",
"Message": "Success",
"Data": "price4modify/19862074****/rm-uf69xr871l***fj39/WQ9ULO4SLD**PQY5/FL1IZLW**3H78OC",
"AccessDeniedDetail": "{\n \"PolicyType\": \"\",\n \"AuthPrincipalOwnerId\": \"\",\n \"EncodedDiagnosticMessage\": \"\",\n \"AuthPrincipalType\": \"\",\n \"AuthPrincipalDisplayName\": \"\",\n \"NoPermissionType\": \"\",\n \"AuthAction\": \"\"\n }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.