cloudmesh_client.cloud.iaas package¶
Subpackages¶
- cloudmesh_client.cloud.iaas.provider package
Submodules¶
cloudmesh_client.cloud.iaas.CloudProvider module¶
-
class
cloudmesh_client.cloud.iaas.CloudProvider.
CloudProvider
(cloudname, user=None, flat=True)[source]¶ Bases:
cloudmesh_client.cloud.iaas.CloudProviderBase.CloudProviderBase
cloudmesh_client.cloud.iaas.CloudProviderBase module¶
-
class
cloudmesh_client.cloud.iaas.CloudProviderBase.
CloudProviderBase
(cloudname, user=None, flat=False, source='db')[source]¶ Bases:
object
-
add_key_to_cloud
(name, public_key)[source]¶ Adds key to cloud for given public key. :param name: Name of the keypair to create :param public_key: Existing public key string. :return:
-
boot_vm
(cloud, user, name, image, flavor, key, secgroup, meta, nics, *kwargs)[source]¶ Boots a new vm instance on the target cloud. :param cloud: :param user: :param name: :param image: :param flavor: :param key: :param secgroup: :param meta: :return:
-
delete
(name, group=None, force=None)[source]¶ Deletes the vm indicated by name on target cloud. :param name: :param group: :param force: :return:
-
delete_key_from_cloud
(name)[source]¶ Deletes key from cloud for given name. :param name: Name of the keypair to create. :return:
-
get_ips
(name, group=None, force=None)[source]¶ Returns the ip addresses of the instance indicated by name :param name: :param group: :param force: :return:
-
get_vm
(cloudname, identifier, **kwargs)[source]¶ returns the objects in json format :param cloudname: :return:
-
kinds
()[source]¶ returns a list of supported list and detail kinds :return: list of kinds supported :rtype: list
-
list
(kind, cloudname, **kwargs)[source]¶ returns the objects in json format :param kind: the kind of list: vm, image, flavor, … :param cloudname: if cloudname = none all cloudes, or cloudname = “all” :return:
-
list_flavor
(cloudname, **kwargs)[source]¶ returns the objects in json format :param cloudname: :return:
-
list_image
(cloudname, **kwargs)[source]¶ returns the objects in json format :param cloudname: :return:
-
list_key
(cloudname, **kwargs)[source]¶ returns the objects in json format :param cloudname: :return:
-
rename_vm
(current_name, new_name)[source]¶ Renames a vm. :param current_name: :param new_name: :return:
-