def METHOD_NAME(user, table):
    if user.is_not_super_admin():
        raise dci_exc.Unauthorized()
    query = flask.g.session.query(table).filter(table.state == "archived")
    archived_resources = [resource.serialize() for resource in query.all()]
    return flask.jsonify(
        {
            table.__tablename__: archived_resources,
            "_meta": {"count": len(archived_resources)},
        }
    )