All Products
Search
Document Center

ENS:RescaleApplication

Last Updated:Mar 12, 2024

Scales resources in an asynchronous manner and deploys or releases the container.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application. You can query the application ID by calling the ListApplications operation.

474bdef0-d149-4695-abfb-52912d9143f0
RescaleTypestringYes

The scaling operation. The value must be of the enumerated data type. Valid values:

  • Add: adds new resources.
  • Del: releases resources.
Add
RescaleLevelstringNo

The level of resource scaling. The value must be of the enumerated data type. Valid values:

  • AreaIspCode (default): scales resources based on the Internet service provider (ISP).
  • RegionId: scales resources based on the edge node.
  • InstanceId: scales resources based on the instance ID. Resource scale-out specifies resource hosting and scale-in specifies resource release.
RegionId
ResourceSelectorstringYes

The required resources. The value must be a JSON string.

[{\"regionCode\": \"cn-wuxi-telecom_unicom_cmcc-3\", \"ispCode\": \"telecom\", \"count\": 2 },{ \"regionCode\": \"cn-shanghai-cmcc\", \"count\": 4 }]
ToAppVersionstringNo

The version number of the application deployment package. By default, the stable version number is used. This parameter takes effect only when you perform resource scale-out.

v2
TimeoutintegerNo

The timeout period for asynchronous scaling. Unit: seconds. Default value: 300.

1800

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

AAE90880-4970-4D81-A534-A6C0F3631F74

Examples

Sample success responses

JSONformat

{
  "RequestId": "AAE90880-4970-4D81-A534-A6C0F3631F74"
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParameterThe input parameter that is mandatory for processing this request is not supplied.-
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400InvalidParameterThe errorMessage is %s. Please check it again.-
400ens.interface.errorAn error occurred while calling the API.-
400CallInterfaceCall Interface Happen Error.An error occurred when you call the operation.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-21API Description Update. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    Error Codes 400 change