cloudmesh_client.cloud.iaas.provider.azure package¶
Submodules¶
cloudmesh_client.cloud.iaas.provider.azure.AzureDict module¶
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:
-
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
-