Updates the resource reservation configuration of an edge container.
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 |
|---|---|---|---|---|
| esa:UpdateEdgeContainerAppResourceReserve | update | *All Resources * |
| none |
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.
