Error Codes

Function Description

If the returned status code is 400, a customized error message will be returned. This section describes the meaning of each status code.

Response Format

STATUS CODE 400
{
    "error": {
        "message": "The imagetype is invalid.",
        "code": "IMG.0024"
    }
}

Error Message Description

Table 1 Error codes

Status Code

Error Code

Message

Description

Handling Measure

400

IMG.0001

The request message format is invalid.

The request message format is invalid.

Use the correct format.

400

IMG.0002

The image name contains more than 128 characters.

The image name contains more than 128 characters.

Reduce the length of the image name.

400

IMG.0003

The image name format is invalid.

The image name format is invalid.

Check whether the image name is valid.

400

IMG.0004

The description contains more than 1024 characters.

The image name contains more than 1024 characters.

Reduce the length of the image description to within 1024 characters.

400

IMG.0005

The ECS does not exist.

The ECS does not exist.

Check whether the ECS exists.

400

IMG.0006

The ECS system disk cannot be used to create an image.

The system disk of the ECS cannot be used to create an image.

Check the system disk status of the ECS.

400

IMG.0007

The request body is empty.

The message body is empty.

Check whether the message body is valid.

400

IMG.0008

The ECS cannot be used to create images because it is not in stopped state.

The ECS cannot be used to create an image because it is not in the Stopped state.

Stop the ECS and try again.

400

IMG.0009

The image name already exists.

The image name already exists.

Change another image name.

400

IMG.0010

The ECS cannot be used to create an image because it has in-progress tasks.

The ECS cannot be used to create an image because it has in-progress tasks.

Try again after the tasks are complete.

400

IMG.0011

forceCreate must be set to true.

forceCreate must be set to true.

Set forceCreate to true.

400

IMG.0012

The ECS ID is not specified.

The ECS ID is invalid.

Enter a valid ECS ID.

400

IMG.0013

The image name is not specified.

The image name is not specified.

Enter a valid image name.

400

IMG.0014

An exception occurred when IaaS OpenStack was executing the task.

An exception occurred when IaaS OpenStack was executing the task.

Contact technical support.

400

IMG.0015

The number of private images has reached the maximum allowed.

The number of private images has reached the quota.

Increase the quota or delete existing images.

400

IMG.0016

An error occurred when the request body was deleted.

An error occurred when the request body was deleted.

Contact technical support.

400

IMG.0017

The URL format is incorrect.

The URL format is incorrect.

Check whether the URL format is valid.

400

IMG.0018

An error occurred when the job was submitted.

An error occurred when the job was submitted.

Contact technical support.

400

IMG.0019

The backup ID is not specified.

The backup ID is not specified.

Check whether the current backup ID is valid.

400

IMG.0020

The backup does not exist.

The backup does not exist.

Check whether the backup file exists.

400

IMG.0021

The resource type is unknown.

The source type is unknown.

Select a correct source type.

400

IMG.0022

The disk in the current state cannot be used to create images.

A disk in the current state cannot be used to create images.

Check the disk status.

400

IMG.0023

An exception occurred during task query.

An exception occurred during job query.

Contact technical support.

400

IMG.0024

The image type in the request is incorrect.

The image type in the request is incorrect.

Select either BMS or ECS.

400

IMG.0025

The user type in the request is incorrect.

The user type in the request is incorrect.

Check whether the user type is valid.

400

IMG.0026

The role is invalid. You need to apply for the required permissions or pass the real-name authentication.

You do not have the rights to perform the operation.

Contact technical support.

400

IMG.0027

The image ID in the request does not exist.

The image ID in the request does not exist.

Use a valid image ID.

400

IMG.0028

The image in the request is protected.

The image in the request is protected.

Contact technical support.

400

IMG.0029

The backup in the request has already been used to create an image.

The backup in the request has already been used to create an image.

Select another backup that has not been used.

400

IMG.0030

The project ID and token in the request are invalid.

The project ID and token in the request are invalid.

Enter a correct project ID and token.

400

IMG.0031

The resource ID in the request is incorrect.

The resource ID in the request is incorrect.

Use a valid image ID.

400

IMG.0032

The backup is unavailable.

The backup is unavailable.

Check whether the backup is available.

400

IMG.0033

The backup is not a system disk backup.

The backup is not a system disk backup.

Check whether the backup is a system disk backup.

400

IMG.0034

The number of images cannot be modified.

The number of images cannot be modified.

Contact technical support.

400

IMG.0035

An attribute conflict occurred during the modification.

An attribute conflict occurred during the modification.

Contact technical support.

400

IMG.0036

An error occurred when the value of asumeToken was obtained.

An error occurred when the value of asumeToken was obtained.

Contact technical support.

400

IMG.0037

An error occurred in the AK/SK was obtained.

An error occurred in the AK/SK was obtained.

Contact technical support.

400

IMG.0038

An error occurred when the bucket was created.

An error occurred when the bucket was created.

Contact technical support.

400

IMG.0039

An error occurred when read and write permissions of the bucket were granted to a specified user.

An error occurred when read and write permissions of the bucket were granted to a specified user.

Contact technical support.

400

IMG.0040

An error occurred in the object storage address was obtained.

An error occurred in the object storage address was obtained.

Contact technical support.

400

IMG.0041

The authorized account is empty.

The authorized account is empty.

Use a valid account.

400

IMG.0045

Failed to generate the image product code.

Failed to generate the image product code.

Contact technical support.

400

IMG.0046

The image is unavailable.

The image is unavailable.

Check the image status.

400

IMG.0047

This operation can be performed only by the image owner.

This operation can be performed only by the image owner.

Check whether you have the permission to operate the image.

400

IMG.0053

An error occurred when the domain information of the shadow account was obtained.

An error occurred when the domain information of the shadow account was obtained.

Contact technical support.

400

IMG.0054

The image description format is invalid.

The image description format is invalid.

Check the image description. It can contain no more than 1024 characters that consist of only letters and digits. Spaces and angle brackets (< >) are not allowed.

400

IMG.0055

The memory or disk size is invalid.

The memory or disk size is invalid.

Check the memory (MB) or disk size (GB) supported by the image.

400

IMG.0056

Invalid OS version.

The OS version is invalid.

Select a valid OS version.

400

IMG.0057

The image file does not exist, is empty, or in the incorrect format.

The image file does not exist, is empty, or in the incorrect format.

Select a valid image file.

400

IMG.0058

The region of the bucket where the image file is stored is inconsistent with that of the user.

The region of the bucket where the image file is stored is inconsistent with that of the user.

Ensure that the bucket where the image is stored is in region as the user.

400

IMG.0059

The size of the image file exceeds the maximum allowed.

The size of the image file exceeds the maximum allowed.

Check whether the size of the image file is less than or equal to 128 GB.

400

IMG.0060

The number of tasks exceeds the flow control limit.

The number of tasks exceeds the flow control limit.

Wait for a while and then try again.

400

IMG.0061

Unknown system error.

Unknown system error.

Contact technical support.

400

IMG.0062

The image name is incorrect.

The image name is incorrect.

Check whether the image name is valid.

400

IMG.0063

The VM type does not support image creation.

The ECS type does not support image creation.

Select an ECS that supports image creation.

400

IMG.0064

Failed to obtain tenant information from IAM.

Failed to obtain tenant information from IAM.

Contact technical support.

400

IMG.0065

Failed to obtain the tenant domain from IAM.

Failed to obtain the tenant domain from IAM.

Contact technical support.

400

IMG.0066

The image ID is incorrect.

The image ID is incorrect.

Enter a correct image ID.

400

IMG.0067

The project ID is incorrect.

The project ID is incorrect.

Enter a correct project ID.

400

IMG.0068

The specified bucket name is empty.

The specified bucket name is empty.

Check whether the specified bucket name is empty and enter a correct bucket name.

400

IMG.0069

The specified bucket cannot be accessed.

The specified bucket cannot be accessed.

Contact technical support.

400

IMG.0070

The image file already exists. Confirm the file in the corresponding directory of the OBS bucket or in the OBS bucket.

The image file already exists.

Check whether the file exists in the corresponding directory of the OBS bucket or in the OBS bucket.

400

IMG.0071

The image cannot be exported.

The image cannot be exported.

Select another image.

400

IMG.0072

The specified image format is not supported.

The specified image format is not supported.

Check the image format. Only VHD, RAW, ZVHD, and QCOW2 are supported. The default format is VHD.

400

IMG.0073

The name of the exported file is empty.

The name of the exported file is empty.

Enter a correct file name.

400

IMG.0074

The file name length exceeds the limit.

The file name length exceeds the limit.

Reduce the length of the file name.

400

IMG.0075

The file name contains invalid characters.

The file name contains invalid characters.

Ensure that the image file name meets the following requirements:

  • The name cannot start or end with space.

  • The name contains 1 to 128 characters.

  • The name contains the following four types of characters:

  • Uppercase letters

  • Lowercase letters

  • Digits

  • Special characters, including hyphens (-), periods (.), underscores (_), and space

400

IMG.0076

You cannot share an image with yourself.

You cannot share an image with yourself.

Do not share images with yourself.

400

IMG.0077

The public image cannot be exported.

The public image cannot be exported.

Select another image.

400

IMG.0079

The system disk image created from a charged image cannot be exported.

A system disk image created from a charged image cannot be exported.

Select another image.

400

IMG.0080

The image created from a CBR backup cannot be exported.

The image created from a CSBS backup cannot be exported.

Export the image after the backup is created.

400

IMG.0081

The image cannot be exported because it is created from an image file.

The image cannot be exported because it is created from an image file.

Select another image.

400

IMG.0083

The image is a public image.

The image is a public image.

-

400

IMG.0084

The image is a private image.

The image is a private image.

-

400

IMG.0085

The publishing mode is incorrect.

The publishing mode is incorrect.

-

400

IMG.0086

No image was found.

No image was found.

Check whether the image exists.

400

IMG.0087

The token is incorrect.

The token is incorrect.

Enter a correct token.

400

IMG.0088

The number of shared images has reached the maximum allowed.

The number of shared images has reached the quota.

Increase the quota.

400

IMG.0089

The public image cannot be shared.

A public image cannot be shared.

Check the constraints of image sharing.

400

IMG.0090

The image being created cannot be deleted.

An image being created cannot be deleted.

Delete the image after the image is created.

400

IMG.0092

The image can only be deleted by the owner.

The image can only be deleted by the owner.

Ask the image owner to delete the image.

400

IMG.0094

The public image cannot be deleted.

The public image cannot be deleted.

Do not delete public images.

400

IMG.0095

The KMS key does not exist.

The key does not exist.

Check whether the key exists.

400

IMG.0096

The specified KMS key ID must be different from the image key ID.

The specified KMS key ID must be different from the image key ID.

Check whether the specified KMS key ID is the same as the image key ID.

400

IMG.0097

The key is not enabled.

The key is not enabled.

Enable the key.

400

IMG.0098

The encrypted image cannot be shared.

An encrypted image cannot be shared.

Copy the image to a non-encrypted image and then share the non-encrypted image.

400

IMG.0099

You do not have the permission to access the key.

You do not have the permission to access the key.

Check whether you have the permission to access the key.

400

IMG.0100

You do not have OBT permission for KMS.

You do not have OBT permission for KMS.

Check whether you have the OBT permission for KMS.

400

IMG.0101

The original key does not exist.

The original key does not exist.

Check whether the key is valid.

400

IMG.0102

The original key is not enabled.

The original key is not enabled.

Enable the original key.

400

IMG.0103

You do not have the permission to access the original key.

You do not have the permission to access the original key.

Check whether you have the permission to access the key.

400

IMG.0104

Enter the project name if there are multiple projects in the same region.

Enter the project name if there are multiple projects in the same region.

Enter the project name.

400

IMG.0105

The operation is not supported.

The operation is not supported.

Contact technical support.

400

IMG.0106

The image owner is another tenant.

The image owner is another tenant.

Confirm the image owner.

400

IMG.0108

The tenant ID was not found in the current region.

The tenant ID was not found in the current region.

Contact technical support.

400

IMG.0109

The bucket name contains invalid characters.

The bucket name contains invalid characters.

Check whether the bucket name is valid.

400

IMG.0110

The system disk is unavailable and cannot be used to create images.

The system disk is unavailable and cannot be used to create images.

Create an image when the system disk is available.

400

IMG.0111

The size of the system disk exceeds the maximum allowed.

The size of the system disk exceeds the maximum allowed.

Ensure that the ECS system disk size is greater than or equal to the system disk size of the image and smaller than 1024 GB.

400

IMG.0112

Failed to add the tenant.

Failed to add the tenant.

Contact technical support.

400

IMG.0113

Failed to delete the tenant.

Failed to delete the tenant.

Contact technical support.

400

IMG.0114

Failed to query the tenant details.

Failed to query the tenant details.

Contact technical support.

400

IMG.0115

The image tag is invalid.

The image tag is invalid.

Check the validity of the image tag.

400

IMG.0116

The number of image tags exceeds the quota.

The number of image tags exceeds the quota.

Delete tags that are unnecessary or not in use.

400

IMG.0117

The image source can only be BMS or ECS.

The image type can only be BMS or ECS.

Select a BMS or ECS as the image source.

400

IMG.0118

The BMS image does not support KMS encryption.

The BMS image does not support KMS encryption.

Modify the BMS image configuration.

400

IMG.0119

The VM does not have a system disk.

The ECS does not have a system disk.

Attach a system disk to the ECS.

400

IMG.0120

The specified data disk ID is unavailable.

The specified data disk ID is unavailable.

Check whether the current data disk ID is valid.

400

IMG.0121

The object cannot be found.

The object cannot be found.

Check whether the object exists.

400

IMG.0122

The OS type is invalid.

The OS type is invalid.

Select an OS supported by IMS.

400

IMG.0123

The image file address in the request is duplicate.

The image file address in the request is duplicate.

Delete the duplicate image file address.

400

IMG.0125

The data disk image cannot be converted to a public image.

The data disk image cannot be published as a public image.

Check the constraints on data disk images.

400

IMG.0126

The VM in the current stage cannot be used to create a full-ECS image.

The ECS in the current status cannot be used to create a full-ECS image.

Check the ECS status. Ensure that the ECS is in the Running or Stopped state.

400

IMG.0128

The full-ECS image cannot be exported.

A full-ECS image cannot be exported.

Check the constraints on image export.

400

IMG.0130

The full-ECS image cannot be exported or replicated.

A full-ECS image cannot be exported or replicated.

Check the constraints on full-ECS images.

400

IMG.0135

The full-ECS image cannot be shared.

A full-ECS image cannot be shared.

Check the constraints of image sharing.

400

IMG.0136

Failed to create a full-ECS image because the ECS is being backed up.

Failed to create a full-ECS image because a backup is being created for the ECS.

Wait until the CBR backup becomes available.

400

IMG.0137

Failed to obtain the VM information.

Failed to obtain the ECS information.

Check whether the ECS ID is correct and whether you have the permission to perform operations on the ECS.

400

IMG.0138

Failed to obtain the OS type information.

Failed to obtain the OS type information.

Contact technical support.

400

IMG.0139

Other disks on the VM are being used to created VMs.

Other disks on the ECS are being used to create ECSs.

Contact technical support.

400

IMG.0140

The disks in the request come from different ECSs.

The disks in the request are from different ECSs.

Ensure that the ECS to which the disks are attached is the same.

400

IMG.0141

The value of hw_firmware_type is not uefi or bios.

The value of hw_firmware_type is not uefi or bios.

Set hw_firmware_type to uefi or bios.

400

IMG.0144

The image does not exist.

The image does not exist.

Check whether the image exists.

400

IMG.0145

The project name is incorrect.

The project name is incorrect.

Enter a correct project name.

400

IMG.0148

The image is being exported.

The image is being exported.

Wait until the image is exported.

400

IMG.0153

DESS or DSS disks cannot be used to create images.

DESS or DSS disks cannot be used to create images.

Select another ECS.

400

IMG.0154

Failed to communicate with Enterprise Project Management Service (EPS).

Failed to communicate with EPS.

Contact technical support.

400

IMG.0160

Only images less than 128 GB can be exported.

Only images smaller than 128 GB can be exported.

Images larger than 128 GB cannot be exported.

400

IMG.0161

You do not have permission.

No OBT permissions for displaying the vendor name.

Contact technical support.

400

IMG.0162

The value contains a maximum of 12 characters that consist of letters and spaces, and cannot start or end with a space

The value contains a maximum of 12 characters that consist of letters and spaces, and cannot start or end with a space.

Check whether the vendor name is valid.

400

IMG.0163

This image cannot be titled by vendors. Only images running a Windows OS booted in BIOS mode can be titled by vendors.

This image cannot be titled by vendors.

Contact technical support.

400

IMG.0164

Failed to create an image because the spot ECS is being reclaimed.

Failed to create an image because the spot ECS is being reclaimed.

Failed to create an image because the spot ECS is being reclaimed.

400

IMG.0166

OS information must be contained in the ISO files used to create images.

OS version information must be contained when an ISO file is used to create an image.

OS version information must be contained when an ISO file is used to create an image.

400

IMG.0167

This operation cannot be performed for ISO images.

The ISO image does not support this function.

Contact technical support.

400

IMG.0168

Data disk images cannot be updated.

Data disk images cannot be updated.

Contact technical support.

400

IMG.0169

Failed to update the image because the OS versions are different.

Failed to update the image because the OS versions are different.

Contact technical support.

400

IMG.0170

Failed to update the image because the image formats are different.

Failed to update the image because the image formats are different.

Contact technical support.

400

IMG.0171

Failed to update the image because the minimum disk space is less than that of the source image.

Failed to update the image because the minimum disk space is less than that of the source image.

Contact technical support.

400

IMG.0172

Failed to update the image because the minimum memory is less than that of the source image.

Failed to update the image because the minimum memory is less than that of the source image.

Contact technical support.

400

IMG.0173

Failed to update the image because the image environment types are different.

Failed to update the image because the image environment types are different.

Contact technical support.

400

IMG.0174

Failed to update the image because the name of the source image is different from that of the target image.

Failed to update the image because the name of the source image is different from that of the target image.

Contact technical support.

400

IMG.0175

The folder name and image file name cannot contain spaces.

The folder name and image file name cannot contain spaces.

Check whether the file name is valid.

400

IMG.0176

Failed to delete the full-ECS backup.

Failed to delete the full-ECS backup.

Contact technical support.

400

IMG.0177

The source and target tenants reside in different regions.

The source and target tenants reside in different regions.

Check whether the source and target tenants reside in the same region.

400

IMG.0178

The target tenant is the same as the source tenant.

The target tenant is the same as the source tenant.

The target tenant cannot be the same as the source tenant. Please check.

400

IMG.0179

The token of the source image agency is invalid.

The token of the source image agency is invalid.

Contact technical support.

400

IMG.0180

CBR does not support full-ECS image creation.

CBR does not support full-ECS image creation.

Contact technical support.

400

IMG.0181

Failed to obtain ECSs that can be protected.

Failed to obtain ECSs that can be protected.

Contact technical support.

400

IMG.0182

Insufficient vault capacity. Please expand the capacity.

Insufficient vault capacity. Please expand the capacity.

Check whether the vault capacity is sufficient.

400

IMG.0183

The ECS can only be associated with one vault.

The ECS can only be associated with one vault.

Ensure that the resource is not associated with any other vault.

400

IMG.0184

Failed to obtain the vault.

Failed to obtain the vault.

Check whether the vault exists.

400

IMG.0185

The number of ECSs associated with the vault has reached the upper limit.

The number of ECSs associated with the vault has reached the upper limit.

Create another vault or delete unused resources.

400

IMG.0187

KMS access traffic has reached the upper limit.

KMS access traffic has reached the upper limit.

Contact technical support.

400

IMG.0188

Vault is unavailable.

Vault is unavailable.

Contact technical support.

400

IMG.0189

The target CBR vault does not support image replication.

The target CSBS vault does not support image replication.

Contact technical support.

400

IMG.0190

Full-ECS images can be created only from CBR backups.

Full-ECS images can be created only from CBR backups.

Contact technical support.

400

IMG.0191

Failed to query ECS flavors.

Failed to query ECS flavors.

Contact technical support.

400

IMG.0192

The flavor used to query images is invalid.

The flavor used to query images is invalid.

Contact technical support.

400

IMG.0193

The vault is not a cloud server backup vault.

The vault is not a CBR backup vault.

Check that the vault is a CBR backup vault.

400

IMG.0194

The maximum number of images that can be imported at one time has been reached.

The maximum number of images that can be imported at one time has been reached.

Contact technical support.

400

IMG.0195

Full-ECS images created from CBR backups must contain an OS.

Full-ECS images created from CBR backups must contain the OS version.

Specify the OS version.

400

IMG.0196

The image cannot be replicated because it is not accepted by the recipient.

The image cannot be replicated because it is not accepted by the recipient.

Accept the shared image.

400

IMG.0197

Failed to replicate the shared image because it is encrypted using KMS.

Failed to replicate the shared image because it is encrypted using KMS.

Shared encrypted images cannot be replicated.

400

IMG.0198

Backup ID does not match the backup type or does not exist.

Backup ID does not match the backup type or the backup does not exist.

Check whether the backup ID matches the backup type.

400

IMG.0212

The value of Architecture must be x86 or Arm.

The value of Architecture must be x86 or Arm.

Set Architecture to x86 or arm.

400

IMG.0238

Not real-name authentication.

Real-name authentication is not performed.

Perform real-name authentication.

400

IMG.0239

Insufficient balance.

The account balance is insufficient.

Check the balance and top up the account if needed.

400

IMG.0241

Incomplete payment information.

The payment information is incomplete.

Complete the payment information.

400

IMG.0242

Insufficient budget of enterprise department.

The department budget is insufficient.

Increase the budget.

400

IMG.1075

Failed to register the image file.

Failed to register the image file.

Contact technical support.