Read the following usage notes before you call Auto Scaling API in OpenAPI Explorer to ensure successful calls.
Prerequisites
Before you call Auto Scaling API in OpenAPI Explorer, activate Auto Scaling and make sure that Auto Scaling and Resource Access Management (RAM) users have the required permissions:
-
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, make sure you have the following permissions:
AliyunESSFullAccess,AliyunECSFullAccess, andAliyunECIFullAccess. For more information, see Manage RAM user permissions.
Errors
Auto Scaling uses 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 have the required permissions, the following errors are returned.
|
HTTP status code |
Error code |
Error message |
Description |
|
403 |
Forbidden.Unsubscribed |
Do not have permission to access this API. |
Auto Scaling is not activated and you 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 this operation. |