Retrieves the resource reservation configuration of an edge container application.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The application ID. You can call the ListEdgeContainerApps operation to obtain the application ID. Important This parameter is required. If this parameter is not specified, the service returns InvalidParameter.Appid (400).
If no applications exist under your account, call CreateEdgeContainerApp to create an application first, and then call ListEdgeContainerApps to obtain the AppId.
|
app-88068867578379**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| Enable |
boolean |
Indicates whether resource reservation is enabled. |
true |
| Forever |
boolean |
Indicates whether the reservation is permanently enabled. |
true |
| DurationTime |
string |
The reservation expiration time. This parameter uses UTC time. To convert from UTC+8, add 8 hours. For example, if the current UTC+8 time is 2006-01-02 06:04:05, enter "2006-01-02T14:04:05Z". |
2006-01-02T15:04:05Z |
| ReserveSet |
array<object> |
The list of reserved resources. |
|
|
object |
The reserved region object. |
||
| Region |
string |
The Chinese mainland:
Special administrative regions and outside China:
|
huazhong |
| Isp |
string |
The following Internet service providers (ISPs) are supported. This parameter is not required for regions outside the Chinese mainland. Valid values:
|
cmcc |
| Replicas |
integer |
The number of container replicas. |
1 |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368\n",
"Enable": true,
"Forever": true,
"DurationTime": "2006-01-02T15:04:05Z",
"ReserveSet": [
{
"Region": "huazhong",
"Isp": "cmcc",
"Replicas": 1
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. Check the parameter configuration. | Invalid parameter. Check the parameter configuration. |
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
| 400 | InvalidParameter.Appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | The format of the input application ID is incorrect. You can use the ListEdgeContainerApps API to obtain the application ID. |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | The application does not exist. Check whether the application ID you specified is correct and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.