libcloud.compute.types module

Base types used by other parts of libcloud

exception libcloud.compute.types.DeploymentError(node, original_exception=None, driver=None)[source]

Bases: LibcloudError

Exception used when a Deployment Task failed.

Variables:

nodeNode on which this exception happened, you might want to call Node.destroy()

libcloud.compute.types.DeploymentException

alias of DeploymentError

exception libcloud.compute.types.InvalidCredsError(value: str = 'Invalid credentials with the provider', driver: BaseDriver | None = None)[source]

Bases: ProviderError

Exception used when invalid credentials are used on a provider.

libcloud.compute.types.InvalidCredsException

alias of InvalidCredsError

exception libcloud.compute.types.LibcloudError(value: str, driver: BaseDriver | None = None)[source]

Bases: Exception

The base class for other libcloud exceptions

exception libcloud.compute.types.MalformedResponseError(value: str, body: str | None = None, driver: BaseDriver | None = None)[source]

Bases: LibcloudError

Exception for the cases when a provider returns a malformed response, e.g. you request JSON and provider returns ‘<h3>something</h3>’ due to some error on their side.

class libcloud.compute.types.NodeState(value)[source]

Bases: Type

Standard states for a node

Variables:
  • RUNNING – Node is running.

  • STARTING – Node is starting up.

  • REBOOTING – Node is rebooting.

  • TERMINATED – Node is terminated. This node can’t be started later on.

  • STOPPING – Node is currently trying to stop.

  • STOPPED – Node is stopped. This node can be started later on.

  • PENDING – Node is pending.

  • SUSPENDED – Node is suspended.

  • ERROR – Node is an error state. Usually no operations can be performed on the node once it ends up in the error state.

  • PAUSED – Node is paused.

  • RECONFIGURING – Node is being reconfigured.

  • UNKNOWN – Node state is unknown.

ERROR = 'error'
MIGRATING = 'migrating'
NORMAL = 'normal'
PAUSED = 'paused'
PENDING = 'pending'
REBOOTING = 'rebooting'
RECONFIGURING = 'reconfiguring'
RUNNING = 'running'
STARTING = 'starting'
STOPPED = 'stopped'
STOPPING = 'stopping'
SUSPENDED = 'suspended'
TERMINATED = 'terminated'
UNKNOWN = 'unknown'
UPDATING = 'updating'
class libcloud.compute.types.Provider(value)[source]

Bases: Type

Defines for each of the supported providers

Non-Dummy drivers are sorted in alphabetical order. Please preserve this ordering when adding new drivers.

Variables:
  • DUMMY – Example provider

  • ABIQUO – Abiquo driver

  • ALIYUN_ECS – Aliyun ECS driver.

  • AURORACOMPUTE – Aurora Compute driver.

  • AZURE – Azure (classic) driver.

  • AZURE_ARM – Azure Resource Manager (modern) driver.

  • CLOUDSIGMA – CloudSigma

  • CLOUDSCALE – cloudscale.ch

  • CLOUDSTACK – CloudStack

  • DIMENSIONDATA – Dimension Data Cloud

  • EC2 – Amazon AWS.

  • EXOSCALE – Exoscale driver.

  • GCE – Google Compute Engine

  • GRIDSCALE – gridscale

  • IBM – IBM Developer Cloud

  • IKOULA – Ikoula driver.

  • KAMATERA – Kamatera driver

  • KTUCLOUD – kt ucloud driver

  • KUBEVIRT – kubevirt driver

  • LIBVIRT – Libvirt driver

  • LINODE – Linode.com

  • NIMBUS – Nimbus

  • NINEFOLD – Ninefold

  • NTTC-CIS – NTT Communications CIS

  • OPENNEBULA – OpenNebula.org

  • OPSOURCE – Opsource Cloud

  • OUTSCALE_INC – Outscale INC driver.

  • OUTSCALE_SAS – Outscale SAS driver.

  • OUTSCALE_SDK – Outscale SDK driver.

  • RACKSPACE – Rackspace next-gen OpenStack based Cloud Servers

  • RACKSPACE_FIRST_GEN – Rackspace First Gen Cloud Servers

  • RIMUHOSTING – RimuHosting.com

  • TERREMARK – Terremark

  • UPCLOUD – UpCloud

  • VCL – VCL driver

  • VCLOUD – vmware vCloud

  • VPSNET – VPS.net

  • VSphere – VSphere driver.

  • VULTR – vultr driver.

ABIQUO = 'abiquo'
ALIYUN_ECS = 'aliyun_ecs'
AURORACOMPUTE = 'aurora_compute'
AZURE = 'azure'
AZURE_ARM = 'azure_arm'
BRIGHTBOX = 'brightbox'
CISCOCCS = 'ciscoccs'
CLOUDFRAMES = 'cloudframes'
CLOUDSCALE = 'cloudscale'
CLOUDSIGMA = 'cloudsigma'
CLOUDSIGMA_US = 'cloudsigma_us'
CLOUDSTACK = 'cloudstack'
DIGITAL_OCEAN = 'digitalocean'
DIMENSIONDATA = 'dimensiondata'
DUMMY = 'dummy'
EC2 = 'ec2'
EC2_AP_NORTHEAST = 'ec2_ap_northeast'
EC2_AP_NORTHEAST1 = 'ec2_ap_northeast_1'
EC2_AP_NORTHEAST2 = 'ec2_ap_northeast_2'
EC2_AP_SOUTHEAST = 'ec2_ap_southeast'
EC2_AP_SOUTHEAST2 = 'ec2_ap_southeast_2'
EC2_CA_CENTRAL1 = 'ec2_ca_central_1'
EC2_EU = 'ec2_eu_west'
EC2_EU_WEST = 'ec2_eu_west'
EC2_EU_WEST2 = 'ec2_eu_west_london'
EC2_SA_EAST = 'ec2_sa_east'
EC2_US_EAST = 'ec2_us_east'
EC2_US_EAST_OHIO = 'ec2_us_east_ohio'
EC2_US_WEST = 'ec2_us_west'
EC2_US_WEST_OREGON = 'ec2_us_west_oregon'
EQUINIXMETAL = 'equinixmetal'
EUCALYPTUS = 'eucalyptus'
EXOSCALE = 'exoscale'
GANDI = 'gandi'
GCE = 'gce'
GIG_G8 = 'gig_g8'
GRIDSCALE = 'gridscale'
HPCLOUD = 'hpcloud'
IBM = 'ibm'
IKOULA = 'ikoula'
INTERNETSOLUTIONS = 'internetsolutions'
KAMATERA = 'kamatera'
KTUCLOUD = 'ktucloud'
KUBEVIRT = 'kubevirt'
LIBVIRT = 'libvirt'
LINODE = 'linode'
MAXIHOST = 'maxihost'
NIMBUS = 'nimbus'
NINEFOLD = 'ninefold'
NTTA = 'ntta'
NTTCIS = 'nttcis'
ONAPP = 'onapp'
OPENNEBULA = 'opennebula'
OPENSTACK = 'openstack'
OPSOURCE = 'opsource'
OUTSCALE = 'outscale'
OUTSCALE_INC = 'outscale_inc'
OUTSCALE_SAS = 'outscale_sas'
OVH = 'ovh'
RACKSPACE = 'rackspace'
RACKSPACE_FIRST_GEN = 'rackspace_first_gen'
RACKSPACE_NOVA_BETA = 'rackspace_nova_beta'
RACKSPACE_NOVA_DFW = 'rackspace_nova_dfw'
RACKSPACE_NOVA_LON = 'rackspace_nova_lon'
RACKSPACE_NOVA_ORD = 'rackspace_nova_ord'
RACKSPACE_UK = 'rackspace_uk'
RIMUHOSTING = 'rimuhosting'
RUNABOVE = 'runabove'
SCALEWAY = 'scaleway'
TERREMARK = 'terremark'
UPCLOUD = 'upcloud'
VCL = 'vcl'
VCLOUD = 'vcloud'
VPSNET = 'vpsnet'
VSPHERE = 'vsphere'
VULTR = 'vultr'