Before you call Auto Scaling API in OpenAPI Explorer, read the usage notes described in this topic to make successful calls.
Prerequisites
Before you call Auto Scaling API in OpenAPI Explorer, you must activate Auto Scaling and make sure that Auto Scaling and Resource Access Management (RAM) users have the required permissions. The following requirements must be met:
You must grant Auto Scaling the permissions to access the associated cloud resources. For more information, see Manage the service-linked role for Auto Scaling.
If you are a RAM user, you must have the following permissions:
AliyunESSFullAccess
,AliyunECSFullAccess
, andAliyunECIFullAccess
. For more information, see Grant permissions to a RAM user.
Errors
Auto Scaling leverages RAM to obtain the permissions on ECS API and Elastic Container Instance API to scale ECS instances and elastic container instances. If Auto Scaling does not obtain the required permissions, the errors that are described in the following table are reported.
HTTP status code | Error code | Error message | Description |
403 | Forbidden.Unsubscribed | Do not have permission to access this API. | You have not activated Auto Scaling and are not authorized to call this API operation. |
403 | Forbidden.Unauthorized | A required authorization for the specified action is not supplied. | Auto Scaling is not authorized to call the operation. |