errors

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains the error codes returned by Alicloud APIs

Package errors contains the error codes returned by Alicloud APIs

Index

Constants

View Source
const (
	// QuotaExceededDiskCapacity: The used capacity of disk type has exceeded the quota in the zone
	QuotaExceededDiskCapacity = "QuotaExceed.DiskCapacity"
	// QuotaExceededElasticQuota: The number of vCPUs assigned to the ECS instances has exceeded the quota in the zone. Please sign-on to Alibaba Cloud Console, and submit a quota increase application.
	QuotaExceededElasticQuota = "QuotaExceed.ElasticQuota"
	// OperationDeniedZoneSystemCategoryNotMatch: The specified Zone or cluster does not offer the specified disk category or the specified zone and cluster do not match.
	OperationDeniedZoneSystemCategoryNotMatch = "OperationDenied.ZoneSystemCategoryNotMatch"
	// OperationDeniedCloudSSDNotSupported: The specified available zone does not offer the cloud_ssd disk, use cloud_essd instead.
	OperationDeniedCloudSSDNotSupported = "OperationDenied.CloudSSDNotSupported"
	// OperationDeniedZoneNotAllowed: The creation of Instance to the specified Zone is not allowed.
	OperationDeniedZoneNotAllowed = "OperationDenied.ZoneNotAllowed"
	// OperationDeniedNoStock: The requested resource is sold out in the specified zone; try other types of resources or other regions and zones.
	OperationDeniedNoStock = "OperationDenied.NoStock"
	// ZoneNotOnSale: The resource in the specified zone is no longer available for sale. Please try other regions and zones.
	ZoneNotOnSale = "Zone.NotOnSale"
	// ZoneNotOpen: The specified zone is not granted to you to buy resources yet.
	ZoneNotOpen = "Zone.NotOpen"
	// InvalidVpcZone.NotSupported: The specified operation is not allowed in the zone to which your VPC belongs, please try in other zones.
	InvalidVpcZoneNotSupported = "InvalidVpcZone.NotSupported"
	// InvalidZoneIDNotSupportShareEncryptedImage: Creating instances by shared encrypted images is not supported in this zone.
	InvalidZoneIDNotSupportShareEncryptedImage = "InvalidZoneId.NotSupportShareEncryptedImage"
	// InvalidInstanceType.ZoneNotSupported: The specified zone does not support this instancetype.
	InvalidInstanceTypeZoneNotSupported = "InvalidInstanceType.ZoneNotSupported"
	// ResourceNotAvailable: Resource you requested is not available in this region or zone.
	ResourceNotAvailable = "ResourceNotAvailable"
)

constants for alicloud `RunInstances()` response error code which map to MCM `ResourceExhausted` code

Variables

This section is empty.

Functions

func GetMCMErrorCodeForCreateMachine

func GetMCMErrorCodeForCreateMachine(err error) codes.Code

GetMCMErrorCodeForCreateMachine takes the error returned from the EC2API during the CreateMachine call and returns the corresponding MCM error code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL