.. _manage-spaces: How to manage spaces ==================== > See also: :ref:`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: .. code:: python 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. .. code:: python await my_model.get_spaces() > See more: `get_spaces() `_, `Model (module) `_