Feature Description
If there is an Error field in the response, it means that the API call failed. For example:
{
"Response": {
"Error": {
"Code": "AuthFailure.SignatureFailure",
"Message": "The provided credentials could not be validated. Please check your signature is correct."
},
"RequestId": "ed93f3cb-f35e-473f-b9f3-0d451b8b79c6"
}
}
Code in Error indicates the error code, and Message indicates the specific information of the error.
Error Code List
Common Error Codes
| Error codes | Description |
|---|---|
| AuthFailure.InvalidSecretId | Invalid key (not a Cloud API key type). |
| AuthFailure.MFAFailure | MFA failed. |
| AuthFailure.SecretIdNotFound | Key does not exist. Check if the key has been deleted or disabled in the console, and if not, check if the key is correctly entered. Note that whitespaces should not exist before or after the key. |
| AuthFailure.SignatureExpire | Signature expired. Timestamp and server time cannot differ by more than five minutes. Please ensure your current local time matches the standard time. |
| AuthFailure.SignatureFailure | Invalid signature. Signature calculation error. Please ensure you've followed the signature calculation process described in the Signature API documentation. |
| AuthFailure.TokenFailure | Token error. |
| AuthFailure.UnauthorizedOperation | The request does not have CAM authorization. |
| DryRunOperation | DryRun Operation. It means that the request would have succeeded, but the DryRun parameter was used. |
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidAction | The API does not exist. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameterValue | Invalid parameter value. |
| LimitExceeded | Quota limit exceeded. |
| MissingParameter | A parameter is missing. |
| NoSuchVersion | The API version does not exist. |
| RequestLimitExceeded | The number of requests exceeds the frequency limit. |
| ResourceInUse | Resource is in use. |
| ResourceInsufficient | Insufficient resource. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable | Resource is unavailable. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter. |
| UnsupportedOperation | Unsupported operation. |
| UnsupportedProtocol | HTTPS request method error. Only GET and POST requests are supported. |
| UnsupportedRegion | API does not support the requested region. |
Service Error Codes
| Error codes | Description |
|---|---|
| InternalServerError | Internal operation error. |
| InternalError | Internal error |
| InvalidParameter.CbsInUse | The provided CBS is in use. |
| InvalidInstanceId.Malformed | Invalid Instance ID. The format of the specified instance ID is incorrect, for example, an instance ID length error ins-1122. |
| InvalidParameter | Invalid parameter. The parameter does not meet the requirements, is not supported, or the like. |
| InvalidAddressId.NotFound | The specified EIP does not exist. |
| InvalidFilterValue.LimitExceeded | The number of Filter parameter values exceeds the limit. |
| InvalidInstanceName.TooLong | The string length of the specified InstanceName exceeds the limit. It should be less than or equal to 60 bytes. |
| SecGroupActionFailure | General error in security group service API calling. |
| InvalidFilter | Invalid filter. |
| FailedOperation.NoAvailableIpAddressCountInSubnet | The available IPs in the subnet are exhausted. |
| FailedOperation.DisasterRecoverGroupNotFound | The specified disaster recovery group was not found. |
| InvalidInstanceState | The specified instance's current status does not allow this operation. |
| InvalidImageId.InShared | The image is being shared. |
| InvalidAccount.UnpaidOrder | The account has unpaid orders. |
| InvalidAccountIs.YourSelf | You cannot share an image with yourself. |
| InvalidSecurityGroupId.NotFound | The specified security group ID does not exist. |
| InvalidClientToken.TooLong | The string length of the specified ClientToken exceeds the limit. It should be less than or equal to 64 bytes. |
| InvalidAccount.InsufficientBalance | Insufficient account balance |
| FailedOperation.NoAvailableSubnet | There are no available subnet resources. |
| UnsupportedOperation.InstanceStateRunning | The instance is running. |
| InvalidInstanceNotSupportedPrepaidInstance | The instance does not comply with the return rules for monthly subscription instances. |
| InvalidImageOsType.Unsupported | Unsupported operating system type. |
| ResourceInsufficient.SpecifiedInstanceType | The inventory of the specified instance type is insufficient. |
| FailedOperation.SnapshotSizeLargerThanDataSize | The snapshot capacity exceeds the disk size. Choose a larger disk space. |
| InvalidAddressIps.NotFound | Invalid IP Address |
| FailedOperation.InquiryPriceFailed | Failed to get the cost |
| FailedOperation.NoAvailableVpc | There are no available VPC resources. |
| InvalidParameter.ValueTooLarge | The parameter length exceeds the limit. |
| InvalidParameter.InvalidIpFormat | The specified VPC IP format is incorrect. |
| InvalidKeyPairId.Malformed | Invalid key pair ID. The format of the specified key pair ID is incorrect, for example, an ID length error skey-1122. |
| AccountQualificationRestrictions | The requesting account did not pass the qualification audit. |
| InvalidSearchWord.Valid | Invalid search keyword |
| FailedOperation.NoAvailableCbs | No available CBS resources. |
| InvalidImageOsVersion.Unsupported | Unsupported operating system version. |
| InvalidRegion.Unavailable | Currently, this zone does not support synchronizing an image. |
| InvalidParameterValue | Invalid parameter value. The format of the parameter value is incorrect or not supported, etc. |
| InvalidParameterValueOffset | Invalid parameter value. The specified offset is invalid. |
| InvalidKeyPairNameIncludeIllegalChar | The key name includes illegal characters. The key name only supports letters, digits, and underscores. |
| InvalidAccountId.NotFound | Invalid account ID |
| InvalidImageId.IncorrectState | The image status is illegal. |
| InstancesQuotaLimitExceeded | It indicates that the number of instances being created exceeds the remaining quota allowed for purchase by the account. |
| InvalidParameter.UrlError | The provided COS link cannot be accessed. |
| UnsupportedOperation.InvalidZone | The zone is invalid. |
| InvalidParameterValue.LaunchTemplateVersion | Version number of invalid instance launch template. |
| InvalidImageName.Duplicate | The image name is the same as the existing image. |
| ResourceNotFound.InvalidHostIpNotFound | Invalid host IP. The resource does not exist. |
| InvalidAddressState | The current status of the specified EIP does not support this operation. |
| InvalidParameterValue.InstanceIdMalformed | The instance ID does not meet the requirements. Provide a standard instance ID, such as ins-xxxxxxxx, where the letter x represents a lowercase character or number. |
| InvalidHostId.Malformed | Invalid CDH ID. The format of the specified CDH ID is incorrect, for example, an ID length error host-1122. |
| InvalidKeyPairName.Duplicate | The key pair names are duplicate. |
| InvalidParameterValue.TooLong | Invalid input: Excessive length of the parameter. |
| InvalidParameterValue.LaunchTemplateIdNotExisted | The instance launch template ID does not exist. |
| InvalidInstance.NotSupported | Unsupported instance. |
| ImageQuotaLimitExceeded | The image quota has exceeded the limit. |
| InvalidParameter.ContainsIllegalCharacter | The parameter contains illegal characters. |
| FailedOperation.NoCVMPermission | No instance operation permissions. |
| InvalidHost.NotSupported | The specified operation is not supported by this host instance. |
| AuthFailure.CamRoleNameAuthenticateFailed | Role name authentication failed. |
| VpcAddrNotInSubNet | The VPC IP is not within the subnet. |
| InvalidParameter.InvalidTaskIdFormat | TaskId format error. |
| InvalidParameterCombination | It indicates that the parameter combination is incorrect. |
| InvalidSgId.Malformed | The format of the specified security group ID is incorrect, for example, an instance ID length error sg-ide32. |
| InvalidKeyPair.LimitExceeded | The number of key pairs exceeds the limit. |
| InvalidParameter.InvalidFilter | Invalid filter |
| InvalidParameter.InvalidParameterCoexistImageIdsFilters | You should not specify both ImageIds and Filters at the same time. |
| UnauthorizedOperation.ProjectNotFound | This operation is not allowed. Please ensure this account is in the selected project. |
| InvalidParameterValue.LaunchTemplateIdVerNotExisted | The combination of the instance launch template and version ID does not exist. |
| InvalidParameterValue.InvalidParameterValueLimit | Parameter value error. |
| InvalidParameter.JobIdNotExist | Invalid task ID. The specified task ID does not exist. |
| InvalidImageId.NotFound | Image not found |
| ResourceInUse.HpcCluster | The high-performance computing cluster is in use. |
| FailedOperation.NoAvailablePublicImage | No available public images. |
| OverQuota | The maximum number of shared images allowed is reached |
| UnsupportedOperation.InstanceStateStopped | The request does not support instances that are shut down. |
| FailedOperation.NoAvailableSecurityGroup | No available security groups. |
| FailedOperation.NoAvailableIpAddressCount | The subnet has no available IP addresses. |
| InvalidPermission | The account does not support this operation. |
| InvalidParameterValue.InvalidImageId | The image ID is invalid. |
| InvalidProjectId.NotFound | Invalid project ID. The specified project ID does not exist. |
| FailedOperation.NoAvailableInstanceType | No available instance types. |
| InvalidImageId.Malformed | Invalid image ID |
| MissingParameter | Parameters are missing. The request did not include mandatory parameters. |
| InvalidKeyPairNameTooLong | The key name exceeds 25 characters. |
| MutexOperation.TaskRunning | The same task is already running. |
| InvalidParameterValue.InvalidTaskIdFormat | The taskid is invalid. |
| ResourceNotFound.InvalidPlacementSet | The specified placement group does not exist. |
| InvalidKeyPairNameEmpty | The key name is empty. |
| InvalidParameterValue.LimitExceeded | The parameter value is out of range |
| RegionAbilityLimit.UnsupportedToImportImage | This region does not support importing images. |
| InvalidPublicKey.Malformed | Invalid public key. The format of the specified public key format is incorrect and does not meet the OpenSSH RSA format requirements. |
| InvalidPassword | Invalid password. The specified password does not meet password complexity restrictions. For example, the password length does not meet restrictions. |
| InvalidKeyPairId.NotFound | Invalid key pair ID. The specified key pair ID does not exist. |
| InvalidHostId.NotFound | The specified HostId does not exist, or does not belong to the requesting account. |
| InvalidPeriod | Invalid duration. Currently, only the following durations are supported: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36], unit: months. |
| InvalidZone.MismatchRegion | The specified zone does not exist. |
| ResourceNotFound.SoldPoolNameNotFound | The sales pool name does not exist. |
| TradeUnknownError | Billing request error |
| FailedOperation.InstanceMustHaveOneSecurityGroup | An instance should have at least one security group. |
| FailedOperation.PlacementSetNotEmpty | The placement group is not empty. |
| InvalidParameterValue.InvalidHost | Invalid host |
| InvalidParameterValueLimit | The parameter value is out of range |
| InvalidParameterValue.LaunchTemplateNotFound | The instance launch template was not found. |
| InvalidParameterValue.OutOfRange | The parameter value is out of range. |
| InvalidRegion.NotFound | The specified zone was not found. |
| InvalidImageId.TooLarge | The image size exceeds the limit. |
| FailedOperation.NoQuotaForUserInstance | Insufficient quota to create an instance. |
| InvalidParameter.InvalidParameterUrlError | Incorrect URL address. |
| InvalidParameterValue.InvalidLaunchTemplateName | The format of the instance launch template name is incorrect. |
| InvalidInstanceType.Malformed | The parameter format of the specified InstanceType is invalid. |
| InvalidPublicKey.Duplicate | Invalid public key. The specified public key already exists. |
| InvalidParameterValue.KeyPairNotSupported | The key is not supported. |
| VpcIpIsUsed | The VPC IP has already been used. |
| InvalidParameterValue.Range | Invalid parameter value. The range of the parameter value is not legal. |
| InvalidInstanceId.NotFound | No corresponding instance was found. |
| ResourceInsufficient.ZoneSoldOutForSpecifiedInstance | Instances in the specified zone have been sold out. |
| InvalidCloudDisk.SoldOut | The cloud disk has been sold out. |
| InternalError.TradeUnknownError | An internal billing error occurred. |
| ResourceNotFound.HpcCluster | The high-performance computing cluster does not exist. |
| FailedOperation.NoAvailableInstanceFamily | No available instance families. |
| InvalidParameterValue.LaunchTemplateIdMalformed | The format of the instance launch template ID is incorrect. |