Updates the resource reservation configuration of an edge container.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Enable | boolean | No | Whether to enable resource reservation. | true |
| Forever | boolean | No | Whether to permanently enable the reservation. Once it is enabled, you are not allowed to set the reservation deadline. | true |
| DurationTime | string | No | The end time of the reservation. The input time is UTC. It takes +8 hours to enter Beijing time. For example, if the current time is 2006-01-02 06:04:05, you need to enter "2006-01-02T14:04:05Z". | 2006-01-02T15:04:05Z |
| ReserveSet | array<object> | No | Reserved resource list. | |
| object | No | The reserved region object. | ||
| Region | string | No | Information about the region. The Chinese mainland supports the input of regions and special administrative regions, and the regions outside the Chinese mainland support the input of countries. The following is the corresponding parameter mapping: Chinese mainland:
Special Administrative Regions and overseas:
| huazhong |
| Isp | string | No | The ISP. The following types are supported. You do not need to enter the ISP in regions outside the Chinese mainland:
| cmcc |
| Replicas | integer | No | The number of container replicas. | 1 |
| AppId | string | No | The application ID, which can be obtained by calling the ListEdgeContainerApps operation. | app-88068867578379**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "1AB799CF-562A-5CAF-A99E-4354053D814F",
"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 | InvalidParameter.Appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | The format of the application ID is invalid. You can call ListEdgeContainerApps 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. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
