cloudmesh_client.api package¶
Subpackages¶
Module contents¶
This module defines the main API for operating with cloudmesh.
-
class
cloudmesh_client.api.Cluster[source]¶ Bases:
objectA Cluster is a collection of
Node’s that need to interact-
db= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶
-
-
class
cloudmesh_client.api.Layer[source]¶ Bases:
object-
db= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶
-
-
class
cloudmesh_client.api.Node[source]¶ Bases:
objectA Node is machine running on some
Provider-
db= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶
-
name¶ The name of this machine
-
private_ip¶ The private ip address of this node
-
public_ip¶ The public ip address of this node
-
ssh(cmd=None, user=None)[source]¶ ssh into and optionally run a command on this node
Parameters: - cmd (list(str)) – the command to run
- user (str) – the user to login as (defaults to self.name
-
username¶ The login username for this machine. None if unknown
-
-
class
cloudmesh_client.api.Provider(cloud)[source]¶ Bases:
objectA Provider is a collection of
Resources that may be operated upon.-
cfg= <cloudmesh_client.common.ConfigDict.ConfigDict object>¶
-
cloud¶
-
create_ip(node)[source]¶ Creates and associeates a public ip with given node
Parameters: node (Node) – Returns:
-
db= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶
-