async def status(hub, ctx, name: str):
    """
    Get a container's status

    CLI Example:

    .. code-block:: bash

        idem exec lxd.containers.status container01
    """
    container = await hub.tool.lxd.api.request(ctx, "containers", "get", name=name)
    if "error" in container:
        return container
    return {"status": container.status}