• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Glance
  5. Common Parameters
  6. Error Codes

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 code description

Status Code

Error Code

Description

Error Message

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 image name contains more than 1024 characters.

The description 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 ECS system disk cannot be used to create an image.

Check the ECS system disk status.

400

IMG.0007

The message body is empty.

The request body is empty.

Check whether the message body is valid.

400

IMG.0008

The ECS can be used to create images because it is not stopped.

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

Stop the ECS and then create an image.

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.

Create an image 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 not specified.

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 customer service.

400

IMG.0015

The number of private images has reached the quota.

The number of private images has reached the maximum allowed.

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 customer service.

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 customer service.

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 source type is unknown.

The resource type is unknown.

Select a correct source type.

400

IMG.0022

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

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

Check the disk status.

400

IMG.0023

An exception occurred during job query.

An exception occurred during task query.

Contact customer service.

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 operator does not have the rights to perform the operation.

The role is invalid,maybe need to apply for permission or real-name authentication.

Contact customer service.

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 customer service.

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.

Check whether the image ID is valid.

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 customer service.

400

IMG.0035

An attribute conflict occurred during the modification.

An attribute conflict occurred during the modification.

Contact customer service.

400

IMG.0036

An error occurred when the value of asumeToken was obtained.

An error occurred when the value of asumeToken was obtained.

Contact customer service.

400

IMG.0037

An error occurred in the AK/SK was obtained.

An error occurred in the AK/SK was obtained.

Contact customer service.

400

IMG.0038

An error occurred when the bucket was created.

An error occurred when the bucket was created.

Contact customer service.

400

IMG.0039

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

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

Contact customer service.

400

IMG.0040

An error occurred in the object storage address was obtained.

An error occurred in the object storage address was obtained.

Contact customer service.

400

IMG.0041

The authorized account is empty.

The authorized account is empty.

Use a valid account.

400

IMG.0042

The image is not a marketplace image.

The image is not a Marketplace image.

Check the operations that can be performed on the image.

400

IMG.0043

The image has already been published in the Marketplace by others.

The image has already been published in Marketplace by others.

Use a compliant image file.

400

IMG.0044

The image is not the one being published in the Marketplace.

The image is not the one being published to Marketplace.

Check whether the image has been published in the Marketplace.

400

IMG.0045

Failed to generate the image product code.

Failed to generate the image product code.

Contact customer service.

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.0048

The operation on the marketplace image is unknown.

The operation on the Marketplace image is unknown.

Perform a correct operation.

400

IMG.0049

The image has been published in the Marketplace or is being published to Marketplace.

The image has been published in Marketplace or is being published in Marketplace.

Do not release the image repeatedly.

400

IMG.0050

Image release to Marketplace cannot be set to Failed.

Failing to publish the image in Marketplace cannot be set.

Check the operations supported by the image.

400

IMG.0051

An image created using a CSBS backup cannot be published in the Marketplace.

The image created using a CSBS backup cannot be published in Marketplace.

Select an image that can be published.

400

IMG.0052

A shared image cannot be published in the Marketplace.

A shared image cannot be published in Marketplace.

Select an image that can be published.

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 customer service.

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. Space 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

The OS type is invalid.

The OS type is invalid.

Select Windows or Linux.

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 customer service.

400

IMG.0062

The image name is incorrect.

The image name is incorrect.

Check whether the image name is valid.

400

IMG.0063

The ECS type does not support image creation.

The VM type does not support image creation.

Select an ECS of a proper type.

400

IMG.0064

Failed to obtain tenant information from IAM.

Failed to obtain tenant information from IAM.

Contact customer service.

400

IMG.0065

Failed to obtain the tenant domain from IAM.

Failed to obtain the tenant domain from IAM.

Contact customer service.

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 customer service.

400

IMG.0070

The image file already exists.

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

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:

· Cannot start or end with space.

· Contains 1 to 128 characters.

· Contains the following types of characters:

- Uppercase letters

- Lowercase letters

- Digits

- Special characters, including hyphens (-), dots (.), 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.0078

A marketplace image or private image created from a marketplace image cannot be exported.

The Marketplace image or private image created from a Marketplace image cannot be exported.

Select another image.

400

IMG.0079

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

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

Select another image.

400

IMG.0080

The image created from a CSBS 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.0082

The image cannot be published in the Marketplace.

The image cannot be published in Marketplace.

Check whether the image can be published.

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 quota.

The number of shared images has reached the maximum allowed.

Increase the quota.

400

IMG.0089

A public image or marketplace image cannot be shared.

The public image or Marketplace image cannot be shared.

Check the constraints of image sharing.

400

IMG.0090

An image being created cannot be deleted.

The image being created cannot be deleted.

Delete the image after the image is created.

400

IMG.0091

A protected image cannot be deleted.

The protected image cannot be deleted.

Remove the image from Marketplace.

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.0093

A marketplace image cannot be deleted.

The Marketplace image cannot be deleted.

Do not delete marketplace images.

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 KMS 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.

Start the key.

400

IMG.0098

The encrypted image cannot be shared or published in the Marketplace.

The encrypted image cannot be shared or published in Marketplace.

Copy the image to a non-encrypted image and then share or release 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 of KMS.

You do not have OBT permission of KMS.

Check whether you have the OBT permission of 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.

Start 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.0105

The operation is not supported.

The operation is not supported.

Contact customer service.

400

IMG.0106

The image owner is another tenant.

The image owner is another tenant.

Confirm the image owner.

400

IMG.0107

A marketplace image cannot be shared.

The Marketplace image cannot be shared.

Check the constraints of image sharing.

400

IMG.0108

The tenant ID was not found in the current region.

The tenant ID was not found in the current region.

Contact customer service.

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 less than 1024 GB.

400

IMG.0112

Failed to add the tenant.

Failed to add the tenant.

Contact customer service.

400

IMG.0113

Failed to delete the tenant.

Failed to delete the tenant.

Contact customer service.

400

IMG.0114

Failed to query the tenant details.

Failed to query the tenant details.

Contact customer service.

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 type can only be BMS or ECS.

The image source can only be BMS or ECS.

Select a correct image type.

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 ECS does not have a system disk.

The VM does not have a system disk.

Attach a system disk to the current 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 Windows or Linux.

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.0124

The data disk image cannot be published in the Marketplace.

The data disk image cannot be published in Marketplace.

Select another image.

400

IMG.0126

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

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

Check whether the ECS is running or has been stopped.

400

IMG.0127

The CSBS backup does not exist.

The CSBS backup does not exist.

Check whether the CSBS backup exists.

400

IMG.0128

A full-ECS image cannot be exported.

The full-ECS image cannot be exported.

Check the constraints on image export.

400

IMG.0129

A full-ECS image cannot be published in the Marketplace.

The full-ECS image cannot be published in Marketplace.

Select another image.

400

IMG.0130

A full-ECS image cannot be exported or replicated.

The full-ECS image cannot be exported or replicated.

Check the constraints on full-ECS images.

400

IMG.0131

A full-ECS image cannot be published in the Marketplace.

The full-ECS image cannot be published in Marketplace.

Check the constraints on full-ECS images.

400

IMG.0132

The CSBS backup in the current state cannot be used to create a full-ECS image.

The CSBS backup in the current state cannot be used to create a full-ECS image.

Wait until the CSBS backup becomes available.

400

IMG.0133

You are not allowed to access the CSBS backup.

You are not allowed to access the CSBS backup.

Apply for the permissions.

400

IMG.0134

The CSBS backup has been used to create an image.

The CSBS backup has been registered as an image.

Select another backup.

400

IMG.0135

A full-ECS image cannot be shared.

The 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 the ECS is being backed up.

Wait until the CSBS backup becomes available.

400

IMG.0137

Failed to obtain the ECS information.

Failed to obtain the VM information.

Check whether the entered ECS ID is correct and 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 customer service.

400

IMG.0139

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

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

Contact customer service.

400

IMG.0140

The disks in the request are from different ECSs.

The disks in the request come from different ECSs.

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

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 EPS.

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

Contact customer service.

400

IMG.0155

Failed to check the enterprise project ID validity.

Failed to check the enterprise project ID validity.

Contact customer service.

400

IMG.0156

Failed to associate the image with the enterprise project ID.

Failed to associate the image with the enterprise project ID.

Contact customer service.

400

IMG.0160

Only images smaller than 128 GB can be exported.

Only images less than 128 GB can be exported.

Images larger than 128 GB cannot be exported.

400

IMG.0165

You do not have permission to access the CSBS backup.

You do not have permission to access the CSBS backup.

Contact technical support.

400

IMG.0166

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

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.

400

IMG.0167

The ISO image does not support this function.

This operation cannot be performed for ISO images.

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.0181

Failed to obtain ECSs that can be protected.

Failed to obtain ECSs that can be protected.

Contact technical support.

400

IMG.0186

The ECS is associated with the CSBS service.

The ECS is associated with the CSBS service.

Contact technical support.

400

IMG.0187

KMS access traffic has reached the upper limit.

KMS access traffic has reached the upper limit.

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.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 the OS version.

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

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 the backup does not exist.

Backup id is not match with backup type or not exist.

Check whether the backup ID and backup type match.