def rule(event):
    if all(
        [
            event.deep_get("cs-method", default="") == "POST",
            any(
                [
                    "/json/setup-restore-local.action" in event.deep_get("cs-uri", default=""),
                    "/json/setup-restore-progress.action" in event.deep_get("cs-uri", default=""),
                    "/json/setup-restore.action" in event.deep_get("cs-uri", default=""),
                    "/server-info.action" in event.deep_get("cs-uri", default=""),
                    "/setup/setupadministrator.action" in event.deep_get("cs-uri", default=""),
                ]
            ),
            event.deep_get("sc-status", default="") in [200, 302, 405],
        ]
    ):
        return True
    return False
