@classmethod
def all(cls, client):
    """Get all containers.

        Containers returned from this method will only have the name
        set, as that is the only property returned from LXD. If more
        information is needed, `Container.sync` is the method call
        that should be used.
        """
    response = client.api.containers.get()
    containers = []
    for url in response.json()['metadata']:
        name = url.split('/')[-1]
        containers.append(cls(client, name=name))
    return containers
