{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-rollback-request-schema.json",
  "title": "RollbackRequest",
  "description": "Represents the rollback request object which will be used for config rollback of a device.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-deployment-api-openapi.yml#/components/schemas/RollbackRequest",
  "properties": {
    "metadata": {
      "$ref": "#/$defs/RollbackRequestMetadata",
      "description": "Object representing metadata attributes for the rollback request entry.",
      "type": "object"
    },
    "rollbackDeviceList": {
      "description": "A list containing job UUID and device UUIDs combination for the rollback.",
      "items": {
        "$ref": "#/$defs/IRollbackDeviceListEntry",
        "type": "object"
      },
      "type": "array"
    },
    "type": {
      "description": "Type must be RollbackRequest.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "Domain": {
      "description": "The details about the domain.",
      "properties": {
        "id": {
          "description": "Unique UUID of this domain",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "description": "Links to the domain resource URLs.",
          "type": "object"
        },
        "name": {
          "description": "Name of the domain.",
          "type": "string"
        },
        "type": {
          "description": "Domain type definition (fixed).",
          "type": "string"
        },
        "uuid": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IDomain": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ILinks": {
      "description": "This defines the self referencing links for the given resource.",
      "properties": {
        "parent": {
          "description": "Full resource URL path to reference the parent (if any) for this resource.",
          "type": "string"
        },
        "self": {
          "description": "Full resource URL path to reference this particular resource.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IMetadata": {
      "properties": {
        "domain": {
          "$ref": "#/$defs/IDomain",
          "type": "object"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/IMetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/IReadonly",
          "type": "object"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "IMetadataUser": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IReadonly": {
      "properties": {
        "reason": {
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "IRollbackDeviceListEntry": {
      "description": "Part of request body which contains deployment job ids and list of devices for config rollback.",
      "properties": {
        "deploymentJobId": {
          "description": "Deployment job UUID.",
          "type": "string"
        },
        "deviceList": {
          "description": "List of device UUIDs which are part of deployment job id.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "ISubTask": {
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "status": {
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/ITarget",
          "type": "object"
        }
      },
      "type": "object"
    },
    "ITarget": {
      "description": "This is the target device.",
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "description": "Unique ID of the device.",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "name": {
          "description": "Name of the device.",
          "type": "string"
        },
        "type": {
          "description": "Device",
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "MetadataUser": {
      "description": "This object defines details about the user.",
      "properties": {
        "id": {
          "description": "The unique UUID of the user",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "description": "Contains the self referencing links to this resource",
          "type": "object"
        },
        "name": {
          "description": "Name of the user.",
          "type": "string"
        },
        "type": {
          "description": "The user type (fixed).",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ReadOnly": {
      "description": "Defines the read only conditions if the referenced resource is read only.",
      "properties": {
        "reason": {
          "description": "Reason the resource is read only - SYSTEM (if it is system defined), RBAC (if user RBAC permissions make it read only) or DOMAIN (if resource is read only in current domain).",
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "description": "True if this resource us read only and false otherwise.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "RollbackRequestMetadata": {
      "properties": {
        "domain": {
          "$ref": "#/$defs/Domain",
          "type": "object"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/MetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/ReadOnly",
          "type": "object"
        },
        "task": {
          "$ref": "#/$defs/TaskStatus",
          "type": "object"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "TaskStatus": {
      "properties": {
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/IMetadata",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "showDetailedDeviceStatus": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "subTasks": {
          "items": {
            "$ref": "#/$defs/ISubTask",
            "type": "object"
          },
          "type": "array"
        },
        "taskType": {
          "enum": [
            "DEVICE_REGISTRATION",
            "SMART_LICENSE",
            "DEVICE_DEPLOYMENT",
            "DEVICE_ROLLBACK",
            "NGFWHA_OPERATIONS",
            "COPY_CONFIG_REQUEST",
            "HIT_COUNT_REFRESH",
            "FTD_CLUSTER_BOOTSTRAP",
            "FTD_CLUSTER_CREATE",
            "FTD_CLUSTER_BREAK",
            "FTD_CLUSTER_ADD_NODES",
            "FTD_CLUSTER_REMOVE_NODES",
            "DEVICE_BACKUP",
            "FTD_CLUSTER_UPDATE_BOOTSTRAP",
            "FTD_CLUSTER_COMMAND",
            "SSP_EPM_OIR",
            "SSP_EPM_BREAKOUT_DEPLOY",
            "DEVICE_EXPORT",
            "DEVICE_IMPORT",
            "POLICY_EXPORT",
            "CHASSIS_REGISTRATION",
            "CHANGE_MANAGER",
            "CONFIGURE_DEVICE_VALIDATE",
            "CONFIGURE_DEVICE",
            "CONFIGURE_MANAGER",
            "CONFIGURE_MANAGER_ADD",
            "CONFIGURE_MANAGER_DELETE",
            "INITIATE_MIGRATION",
            "DISCARD_MIGRATION",
            "SWITCH_TO_ANALYTICS",
            "DELETE_DEVICE",
            "GENERATE_REPORTS",
            "FLEXCONFIG_MIGRATION",
            "DEVICE_UNREGISTRATION",
            "PENDING_CHANGES_REQUEST",
            "DEVICE_TROUBLESHOOT",
            "DEVICE_MODEL_MIGRATION",
            "DEVICE_TEMPLATE_CREATION",
            "CHASSIS_CONVERSION_REQUEST",
            "SNORT_PROFILER",
            "CPU_PROFILER",
            "POLICY_REPORT_GENERATION",
            "DEVICE_TEMPLATE_APPLY",
            "LTP_ONBOARDING",
            "POLICY_CLONE_OPERATION",
            "DEVICE_CERTIFICATE_MANAGEMENT",
            "OOB_CHANGES_REQUEST",
            "UPLOAD_TROUBLESHOOT"
          ],
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}