Before you call Auto Scaling API, you must activate Auto Scaling on the official Alibaba Cloud website and grant Auto Scaling the API permissions in the console.
- The permissions on related cloud resources granted to Auto Scaling. For more information, see Manage the Auto Scaling service linked role.
- The permissions on related cloud resources granted to RAM users, including
AliyunECSFullAccess. For more information, see Grant permissions to a RAM user.
|HTTP status code||Error code||Error message||Description|
|403||Forbidden.Unsubscribed||Do not have permission to access this API.||The error message returned because Auto Scaling is not activated and not granted the permissions to call the specified API operation.|
|403||Forbidden.Unauthorized||A required authorization for the specified action is not supplied.||The error message returned because Auto Scaling is not authorized to call the specified API operation.|