3 """Start a new, empty machine and optionally a container, or add a
4 container to a machine.
8 add_machines
= add_machine
10 def add_relation(self
):
11 """Add a relation between two services.
17 """Add a new network space.
22 def add_ssh_key(self
):
23 """Add a public SSH key to this model.
27 add_ssh_keys
= add_ssh_key
30 """Add an existing subnet to this model.
35 def get_backups(self
):
36 """Retrieve metadata for backups in this model.
42 """Add a new block to this model.
48 """List blocks for this model.
53 def get_cached_images(self
):
54 """Return a list of cached OS images.
59 def create_backup(self
):
60 """Create a backup of this model.
65 def create_storage_pool(self
):
66 """Create or define a storage pool.
72 """Get log messages for this model.
78 """Deploy a new service or bundle.
84 """Terminate all machines and resources for this model.
90 """Download a backup archive file.
96 """Ensure sufficient controllers exist to provide redundancy.
101 def get_config(self
):
102 """Return the configuration settings for this model.
107 def get_constraints(self
):
108 """Return the machine constraints for this model.
114 """Grant a user access to this model.
119 def import_ssh_key(self
):
120 """Add a public SSH key from a trusted indentity source to this model.
124 import_ssh_keys
= import_ssh_key
126 def get_machine(self
, machine_id
):
127 """Get a machine by id.
132 def get_machines(self
):
133 """Return list of machines in this model.
138 def get_shares(self
):
139 """Return list of all users with access to this model.
144 def get_spaces(self
):
145 """Return list of all known spaces, including associated subnets.
150 def get_ssh_key(self
):
151 """Return known SSH keys for this model.
155 get_ssh_keys
= get_ssh_key
157 def get_storage(self
):
158 """Return details of storage instances.
163 def get_storage_pools(self
):
164 """Return list of storage pools.
169 def get_subnets(self
):
170 """Return list of known subnets.
175 def remove_blocks(self
):
176 """Remove all blocks from this model.
181 def remove_backup(self
):
187 def remove_cached_images(self
):
188 """Remove cached OS images.
193 def remove_machine(self
):
194 """Remove a machine from this model.
198 remove_machines
= remove_machine
200 def remove_ssh_key(self
):
201 """Remove a public SSH key(s) from this model.
205 remove_ssh_keys
= remove_ssh_key
208 """Mark unit errors resolved.
213 def restore_backup(self
):
214 """Restore a backup archive to a new controller.
219 def retry_provisioning(self
):
220 """Retry provisioning for failed machines.
226 """Revoke a user's access to this model.
232 """Run command on all machines in this model.
237 def set_config(self
):
238 """Set configuration keys on this model.
243 def set_constraints(self
):
244 """Set machine constraints on this model.
249 def get_action_output(self
, action_uuid
):
250 """Get the results of an action by ID.
255 def get_action_status(self
, uuid_or_prefix
):
256 """Get the status of all actions, filtered by ID or prefix.
261 def get_budget(self
, budget_name
):
262 """Get budget by name.
267 def get_status(self
):
268 """Return the status of the model.
274 def sync_tools(self
):
275 """Copy Juju tools into this model.
280 def unblock(self
, operation
):
281 """Unblock an operation that would alter this model.
286 def unset_config(self
):
287 """Unset configuration on this model.
292 def upgrade_gui(self
):
293 """Upgrade the Juju GUI for this model.
298 def upload_backup(self
):
299 """Store a backup archive remotely in Juju.