{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-device-backup-schema.json",
  "title": "DeviceBackup",
  "description": "Generates the backup for provided device uuid.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-backup-api-openapi.yml#/components/schemas/DeviceBackup",
  "properties": {
    "description": {
      "type": "string"
    },
    "devices": {
      "items": {
        "$ref": "#/$defs/IReference",
        "type": "object"
      },
      "type": "array"
    },
    "id": {
      "type": "string"
    },
    "links": {
      "$ref": "#/$defs/ILinks",
      "type": "object"
    },
    "metadata": {
      "$ref": "#/$defs/BackupMetadata",
      "type": "object"
    },
    "name": {
      "type": "string"
    },
    "parentId": {
      "type": "string"
    },
    "retrieveToManagementCenter": {
      "description": "Boolean representing of a flag for transferring backup to manager.",
      "type": "boolean"
    },
    "type": {
      "description": "Define the type of backup.",
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "BackupMetadata": {
      "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"
    },
    "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"
    },
    "IReference": {
      "description": "Contains reference information.",
      "properties": {
        "id": {
          "description": "Unique identifier representing resource.",
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "description": "Object containing links to this resource.",
          "type": "object"
        },
        "name": {
          "description": "User chosen resource name.",
          "type": "string"
        },
        "type": {
          "description": "Response object associated with resource.",
          "type": "string"
        }
      },
      "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"
    },
    "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"
    }
  }
}