cloudmesh_client.cloud.iaas.provider.comet package¶
Submodules¶
cloudmesh_client.cloud.iaas.provider.comet.CloudProviderCometAPI module¶
-
class
cloudmesh_client.cloud.iaas.provider.comet.CloudProviderCometAPI.
CloudProviderCometAPI
(cloud_name, cloud_details, user=None, flat=True)[source]¶ Bases:
cloudmesh_client.cloud.iaas.CloudProviderBase.CloudProviderBase
-
boot_vm
(name, group=None, image=None, flavor=None, cloud=None, key=None, secgroup=None, meta=None, nics=None, **kwargs)[source]¶ Spawns a VM instance on the cloud. If image and flavor passed as none, it would consider the defaults specified in cloudmesh.yaml.
Parameters: - name – Name of the instance to be started
- image – Image id to be used for the instance
- flavor – Flavor to be used for the instance
- cloud – Cloud on which to spawn the machine. Defaults to ‘India’.
- key – Key to be used for the instance
- secgroup – Security group for the instance
- meta – A dict of arbitrary key/value metadata to store for this server
-
cloud_type
= 'openstack'¶
-
delete_vm
(name, group=None, force=None)[source]¶ Deletes a machine on the target cloud indicated by the id or name :param name: Name or ID of the instance to be deleted :param group: Security group of the instance to be deleted :param force: Force delete option :return:
-
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
-