cloudmesh_client.cloud.iaas 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

get_attributes(kind)[source]
cloudmesh_client.cloud.iaas.CloudProvider.main()[source]

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:

add_kind(name)[source]
attributes(kind)[source]
Parameters:kind
Returns:order and headers of the useful data
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:

check_kind(name)[source]

returns true if the kind given by name exists :param name: :return:

del_kind(name)[source]
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:

details(kind, category, id, format='table')[source]
get(kind, cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

get_flavor(**kwargs)[source]

finds the flavor based on a query TODO: details TBD

get_image(**kwargs)[source]

finds the image based on a query TODO: details TBD

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_key(**kwargs)[source]

finds the flavor based on a query TODO: details TBD

get_vm(cloudname, identifier, **kwargs)[source]

returns the objects in json format :param cloudname: :return:

is_kind(name)[source]

returns tru if the kind given by name exists :param name: :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:

list_secgroup_rules(cloudname)[source]
list_vm(cloudname, **kwargs)[source]

returns the objects in json format :param cloudname: :return:

refresh(kind, cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

refresh_flavor(cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

refresh_image(cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

refresh_key(cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

refresh_vm(cloudname, identifier, **kwargs)[source]

Listing of vm instances :return:

rename_vm(current_name, new_name)[source]

Renames a vm. :param current_name: :param new_name: :return:

resource(function, 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:

set_source(source)[source]

Sets the source for the information to be returned. “db” and “cloud”, “memory” :param source: the database can be queried in mode “db”, the database can be bypassed in mode “cloud”

Module contents