How to manage spaces

> See also: juju:space

Add a space

To create and add a new space, on a connected Model object, use the add_space() method, passing a name for the space and associated subnets. For example:

await my_model.add_space("db-space", ["172.31.0.0/20"])

> See more: add_space(), Model (module)

View available spaces

To view available spaces, on a connected Model, use the get_spaces() method.

await my_model.get_spaces()

> See more: get_spaces(), Model (module)