{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-deployment-request-schema.json",
  "title": "DeploymentRequest",
  "description": "Represents the deployment request object which will be used for policy deployment 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/DeploymentRequest",
  "properties": {
    "deploymentNote": {
      "description": "User provided job note with max of 512 characters",
      "type": "string"
    },
    "description": {
      "description": "User provided description of the object.",
      "type": "string"
    },
    "deviceList": {
      "description": "List of device UUIDs for which the deployment has to triggered.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "failedDevicesList": {
      "items": {
        "$ref": "#/$defs/FailedDevices",
        "type": "object"
      },
      "type": "array"
    },
    "forceDeploy": {
      "description": "Boolean indicating the deployment is force deploy or not. Value set to `true` only if device is not out-of-date and user wants to force a deployment. This should not be used unless needed. Default is `false`.",
      "type": "boolean"
    },
    "id": {
      "description": "Id created as part of the deployment.",
      "type": "string"
    },
    "ignoreWarning": {
      "description": "Boolean indicating whether the warnings needs to be ignored during the prevalidation of deployment job. Default is `false`.",
      "type": "boolean"
    },
    "links": {
      "$ref": "#/$defs/ILinks",
      "description": "Link to the deployment request with the job id.",
      "type": "object"
    },
    "metadata": {
      "$ref": "#/$defs/DeploymentRequestMetadata",
      "type": "object"
    },
    "name": {
      "description": "String represents the name to the device.",
      "type": "string"
    },
    "recipients": {
      "type": "string"
    },
    "selectedPoliciesforDevices": {
      "description": "List of devices for Selective Policy Deployment. </br> The devices mentioned here should be part of the 'devicelist' attribute.",
      "items": {
        "$ref": "#/$defs/ISelectedPoliciesforDevices",
        "type": "object"
      },
      "type": "array"
    },
    "type": {
      "description": "Type of the Request object. This value is always DeploymentRequest.",
      "type": "string"
    },
    "version": {
      "description": "Integer indicating the version to which the deployment should be done.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "DeploymentRequestMetadata": {
      "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"
    },
    "FailedDevices": {
      "description": "Represents the devices which got failed during the deployment of a devices.",
      "properties": {
        "deviceUUID": {
          "description": "UUID of device.",
          "type": "string"
        },
        "failureReason": {
          "description": "The reason for which device got failed.",
          "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"
    },
    "ISelectedPoliciesforDevices": {
      "description": "Represents the object which is responsible for enabling the Selective Policy Deployment",
      "properties": {
        "deviceUUID": {
          "description": "Corresponding device UUID for which the selection is mentioned.",
          "type": "string"
        },
        "selectedPolicies": {
          "description": "List of Policy Types which have to be selectively deployed. Note: mandatoryDeployablePolicies should not be included in this list.",
          "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"
    },
    "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"
    }
  }
}