cloudmesh_client.cloud.iaas.provider.azure package

Submodules

cloudmesh_client.cloud.iaas.provider.azure.AzureDict module

class cloudmesh_client.cloud.iaas.provider.azure.AzureDict.AzureDict[source]

Bases: object

classmethod convert_to_flavor_dict(flavor_obj)[source]
classmethod convert_to_image_dict(image_obj)[source]
classmethod convert_to_vm_dict(hosted_service_obj, deployment_obj)[source]

cloudmesh_client.cloud.iaas.provider.azure.CloudProviderAzureAPI module

class cloudmesh_client.cloud.iaas.provider.azure.CloudProviderAzureAPI.CloudProviderAzureAPI(cloud_name, cloud_details, user=None)[source]

Bases: cloudmesh_client.cloud.iaas.CloudProviderBase.CloudProviderBase

add_certificate(service_name, certificate_path)[source]
Parameters:
  • service_name – Hosted service name in Azure cloud to which the certificate needs to be added
  • certificate_path – PFX(PKCS encoded) certificate Path
Returns:

assign_ip(name)[source]
attributes(kind)[source]
boot_vm(name, group=None, image=None, flavor=None, cloud=None, cert_thumbprint=None, pub_key_path=None, cert_path=None, pfx_path=None, secgroup=None, meta=None, nics=None, **kwargs)[source]
Boots up a new VM Instance. Steps involved: creating a hosted(Cloud) Service, adding the PFX certificate file, get default storage name, creating a configuration set, adding an endpoint(SSH by default), and finally creating a VM deployment
Parameters:
  • name – Hosted Service Name and VM instance name
  • group
  • image
  • flavor
  • cloud
  • cert_thumbprint
  • pub_key_path
  • cert_path
  • pfx_path
  • secgroup
  • meta
  • nics
  • kwargs
Returns:

delete_vm(name, group=None, force=None)[source]
Delete a VM instance whose hosted service name and instance name is given by name
Parameters:
  • name
  • group
  • force
Returns:

get_ips(name, group=None, force=None)[source]

Returns the ip of the instance indicated by name :param name: :param group: :param force: :return: IP address of the instance

get_location()[source]
initialize(cloudname, user=None)[source]

reads the details for the initialization from the cloudname defined in the yaml file Azure cloud requires subscription_id and service management certificate to initialize the provider :param cloudname: :param user: :return:

list_flavor(cloudname, **kwargs)[source]
list_image(cloudname, **kwargs)[source]
list_secgroup(cloudname)[source]
list_secgroup_rules(cloudname)[source]
list_vm(cloudname, **kwargs)[source]
List the VMs or Deployments in Azure Cloud
Parameters:
  • cloudname
  • kwargs
Returns:

Module contents