openapi: 3.2.0 info: version: 3.1.0 description: 'Nerve Management System API to manage: -labels -nodes -workloads -notifications -capabilities' title: Nerve Management System WORKLOAD V2 API contact: name: Nerve support email: support@tttech-industrial.com servers: - url: https://trynerve1.nerve.cloud security: - sessionId: [] tags: - name: WORKLOAD_v2 description: The operations to manage workloads v2. paths: /nerve/v2/workloads: post: summary: Create workload operationId: create_workload_v2 tags: - WORKLOAD_v2 description: Used to create a new workload requestBody: description: Defines workload object required: true content: multipart/form-data: schema: type: object description: Request body for creating a workload additionalProperties: false properties: data: allOf: - type: string pattern: ^[\x20-\x7E\t\n\r]*$ minLength: 1 maxLength: 1000 description: Information about workload and version(stringify JSON object). For more details please refer to __v2_create_workload__ schema, globally defined at the end of this document. file: description: File containing workload version data type: string minLength: 1 maxLength: 1000 format: binary x-permissions: - WORKLOAD:CREATE responses: '200': description: Workload successfully created content: application/json: schema: description: workload basic info type: object required: - name - type - deleted - disabled - _id properties: name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string enum: - docker - vm - codesys - docker-compose changedBy: type: object description: Information about user who changed the workload required: - date properties: date: description: Changed date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who changed the workload anyOf: - type: - string - 'null' - type: - object - 'null' createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object deleted: description: Indicates if the workload marked as deleted:) type: boolean default: false disabled: description: Indicates if workload can be used in deployment or no type: boolean description: description: Workload description field type: string minLength: 0 maxLength: 300 pattern: ^[\s\S]*$ _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object tenant: description: Reference to 'Tenant' collection oneOf: - type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 20 maxLength: 40 - type: object path: description: The path to the tenant folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ __v: type: number description: Internal version key used by Mongoose for document versioning versions: type: array minItems: 0 maxItems: 1001 default: [] description: Workload version data items: description: Workload version data oneOf: - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - capabilities properties: workloadProperties: description: VM specific properties anyOf: - description: VM specific properties type: object required: - no_of_vCPUs - memory properties: no_of_vCPUs: type: integer description: Number of CPUs for VM format: int32 minimum: 1 maximum: 1000 memory: oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB data_disks: type: array description: List of data disks minItems: 0 maxItems: 1001 items: oneOf: - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in KB type: number minimum: 100000 maximum: 32000000 disk_unit: description: Data disk size unit enum: - KB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in MB type: number minimum: 100 maximum: 32000 disk_unit: description: Data disk size unit enum: - MB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in GB type: number minimum: 0.1 maximum: 32 disk_unit: description: Data disk size unit enum: - GB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in TB type: number minimum: 0.0001 maximum: 0.032 disk_unit: description: Data disk size unit enum: - TB libvirt_networks: type: array description: List of connected libvirt networks minItems: 0 maxItems: 1001 items: anyOf: - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - Bridged interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - NAT interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ port_forwards: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 PCI_passthrough: type: array minItems: 0 maxItems: 1001 description: List of PCI devices passed through to the VM items: type: string pattern: ^(pci_)[a-f0-9]{4}_[a-f0-9]{2}_[a-f0-9]{2}_[a-f0-9]{1}$ minLength: 1 maxLength: 1000 snapshot: type: object description: VM snapshot configuration required: - enabled properties: enabled: type: boolean description: Flag indicating whether snapshot is enabled unit: description: Unit of the snapshot value anyOf: - type: string enum: - KB - MB - GB - TB - type: string enum: - '' value: description: Snapshot value type: integer format: int32 minimum: 0 maximum: 1000000 - description: VM properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the VM property enum: - data_disks - memory - no_of_vCPUs - snapshot - libvirt_networks - PCI_passthrough value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array - type: object capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 2 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - Virtualization - Virtualization via XEN - Virtualization via KVM - Virtualization via ACRN _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - dockerFileOption - capabilities properties: workloadProperties: anyOf: - description: Docker specific properties type: object required: - container_name properties: container_name: type: string description: Docker container name minLength: 2 maxLength: 100 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]+$ restart_policy: description: Restart policy for docker container anyOf: - type: string description: Restart policy for docker container enum: - 'no' - on-failure - always - unless-stopped - type: string enum: - '' networks: type: array description: List of connected networks minItems: 0 maxItems: 1001 items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ docker_volumes: description: List of mapped volumes minItems: 0 maxItems: 1001 type: array items: type: object required: - volumeName - containerPath - configurationStorage properties: volumeName: description: Name of the volume minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ containerPath: description: Path inside the container where the volume is mapped minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ configurationStorage: type: boolean description: Flag indicating whether the volume is used for configuration storage environment_variables: minItems: 0 maxItems: 1001 type: array description: List of environment variables items: type: object required: - env_variable - container_value properties: env_variable: type: string description: Name of the environment variable pattern: ^[a-zA-Z_]+[a-zA-Z0-9_]*$ minLength: 1 maxLength: 1000 container_value: description: Value of the environment variable minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ limit_CPUs: description: CPU limit for the container anyOf: - type: integer format: int64 minimum: 1 maximum: 1000 - type: string enum: - '' limit_memory: description: Memory limit for the container anyOf: - oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB - type: object maxProperties: 0 port_mappings_protocol: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 auth_credentials: type: object description: Credentials for private docker registry - description: Docker specific properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the Docker property enum: - container_name - restart_policy - networks - docker_volumes_new - docker_volumes - environment_variables - limit_CPUs - limit_memory - port_mappings_protocol - port_mappings - auth-credentials value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array dockerFileOption: description: option indicating if file is uploaded or docker image from registry is used type: string enum: - file - path dockerFilePath: description: Name of the docker image. Exists if dockerFileOption is path minLength: 0 maxLength: 354 pattern: ^(?:(?=.{1,255}(?::|$))([a-z0-9.-]+(:[0-9]+)?\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?)?$ anyOf: - type: string minLength: 2 - type: - string - 'null' capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability minLength: 1 maxLength: 1000 enum: - Docker Container _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - capabilities properties: workloadProperties: description: Codesys specific properties anyOf: - type: array minItems: 0 maxItems: 0 - type: object minProperties: 0 maxProperties: 0 capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - CODESYS PLC _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ example: name: workload type: docker deleted: true disabled: true _id: 63289b62a66707202114986d '400': description: Invalid parameters content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000701' httpCode: '400' message: Workload object invalid '403': description: You are not authorized to perform this operation content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: not_authorized: value: errorCode: '00003' httpCode: '403' message: You are not authorized '404': description: Workload with specific ID does not exist in the db content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000700' httpCode: '404' message: Workload you are looking for does not exist '409': description: Workload with this name already exists content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000702' httpCode: '409' message: Workload with this name already exists '415': description: Unsupported media type content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '415' message: Route params validation error '422': description: Action is not supported for docker-compose workloads. content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: workload_invalid_object_data_err: value: errorCode: nerve_workload_208 httpCode: '400' message: Action is not supported for provided workload type. This route is not available for docker-compose workload type. Please use V3 routes for actions related to the docker-compose workloads. '500': description: Internal server error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: httpCode: '500' errorCode: nerve_dna_006 message: Operation failed for unknown reason. patch: summary: Update workload and version data operationId: update_workload_version_v2 tags: - WORKLOAD_v2 description: Used to update workload and version data requestBody: required: true content: multipart/form-data: schema: additionalProperties: false description: Request body for updating a workload type: object properties: data: type: string minLength: 1 maxLength: 1000 pattern: ^[\x20-\x7E\t\n\r]*$ description: Information about workload and version(stringify JSON object). For more details please refer to __v2_update_workload__ schema, globally defined at the end of this document. file: type: string description: File containing workload version data minLength: 1 maxLength: 1000 format: binary x-permissions: - WORKLOAD:EDIT responses: '200': description: Workload object from db content: application/json: schema: description: workload basic info type: object required: - name - type - deleted - disabled - _id properties: name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string enum: - docker - vm - codesys - docker-compose changedBy: type: object description: Information about user who changed the workload required: - date properties: date: description: Changed date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who changed the workload anyOf: - type: - string - 'null' - type: - object - 'null' createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object deleted: description: Indicates if the workload marked as deleted:) type: boolean default: false disabled: description: Indicates if workload can be used in deployment or no type: boolean description: description: Workload description field type: string minLength: 0 maxLength: 300 pattern: ^[\s\S]*$ _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object tenant: description: Reference to 'Tenant' collection oneOf: - type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 20 maxLength: 40 - type: object path: description: The path to the tenant folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ __v: type: number description: Internal version key used by Mongoose for document versioning versions: type: array minItems: 0 maxItems: 1001 default: [] description: Workload version data items: description: Workload version data oneOf: - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - capabilities properties: workloadProperties: description: VM specific properties anyOf: - description: VM specific properties type: object required: - no_of_vCPUs - memory properties: no_of_vCPUs: type: integer description: Number of CPUs for VM format: int32 minimum: 1 maximum: 1000 memory: oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB data_disks: type: array description: List of data disks minItems: 0 maxItems: 1001 items: oneOf: - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in KB type: number minimum: 100000 maximum: 32000000 disk_unit: description: Data disk size unit enum: - KB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in MB type: number minimum: 100 maximum: 32000 disk_unit: description: Data disk size unit enum: - MB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in GB type: number minimum: 0.1 maximum: 32 disk_unit: description: Data disk size unit enum: - GB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in TB type: number minimum: 0.0001 maximum: 0.032 disk_unit: description: Data disk size unit enum: - TB libvirt_networks: type: array description: List of connected libvirt networks minItems: 0 maxItems: 1001 items: anyOf: - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - Bridged interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - NAT interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ port_forwards: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 PCI_passthrough: type: array minItems: 0 maxItems: 1001 description: List of PCI devices passed through to the VM items: type: string pattern: ^(pci_)[a-f0-9]{4}_[a-f0-9]{2}_[a-f0-9]{2}_[a-f0-9]{1}$ minLength: 1 maxLength: 1000 snapshot: type: object description: VM snapshot configuration required: - enabled properties: enabled: type: boolean description: Flag indicating whether snapshot is enabled unit: description: Unit of the snapshot value anyOf: - type: string enum: - KB - MB - GB - TB - type: string enum: - '' value: description: Snapshot value type: integer format: int32 minimum: 0 maximum: 1000000 - description: VM properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the VM property enum: - data_disks - memory - no_of_vCPUs - snapshot - libvirt_networks - PCI_passthrough value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array - type: object capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 2 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - Virtualization - Virtualization via XEN - Virtualization via KVM - Virtualization via ACRN _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - dockerFileOption - capabilities properties: workloadProperties: anyOf: - description: Docker specific properties type: object required: - container_name properties: container_name: type: string description: Docker container name minLength: 2 maxLength: 100 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]+$ restart_policy: description: Restart policy for docker container anyOf: - type: string description: Restart policy for docker container enum: - 'no' - on-failure - always - unless-stopped - type: string enum: - '' networks: type: array description: List of connected networks minItems: 0 maxItems: 1001 items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ docker_volumes: description: List of mapped volumes minItems: 0 maxItems: 1001 type: array items: type: object required: - volumeName - containerPath - configurationStorage properties: volumeName: description: Name of the volume minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ containerPath: description: Path inside the container where the volume is mapped minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ configurationStorage: type: boolean description: Flag indicating whether the volume is used for configuration storage environment_variables: minItems: 0 maxItems: 1001 type: array description: List of environment variables items: type: object required: - env_variable - container_value properties: env_variable: type: string description: Name of the environment variable pattern: ^[a-zA-Z_]+[a-zA-Z0-9_]*$ minLength: 1 maxLength: 1000 container_value: description: Value of the environment variable minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ limit_CPUs: description: CPU limit for the container anyOf: - type: integer format: int64 minimum: 1 maximum: 1000 - type: string enum: - '' limit_memory: description: Memory limit for the container anyOf: - oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB - type: object maxProperties: 0 port_mappings_protocol: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 auth_credentials: type: object description: Credentials for private docker registry - description: Docker specific properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the Docker property enum: - container_name - restart_policy - networks - docker_volumes_new - docker_volumes - environment_variables - limit_CPUs - limit_memory - port_mappings_protocol - port_mappings - auth-credentials value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array dockerFileOption: description: option indicating if file is uploaded or docker image from registry is used type: string enum: - file - path dockerFilePath: description: Name of the docker image. Exists if dockerFileOption is path minLength: 0 maxLength: 354 pattern: ^(?:(?=.{1,255}(?::|$))([a-z0-9.-]+(:[0-9]+)?\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?)?$ anyOf: - type: string minLength: 2 - type: - string - 'null' capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability minLength: 1 maxLength: 1000 enum: - Docker Container _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - capabilities properties: workloadProperties: description: Codesys specific properties anyOf: - type: array minItems: 0 maxItems: 0 - type: object minProperties: 0 maxProperties: 0 capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - CODESYS PLC _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ example: name: workload type: docker deleted: true disabled: true _id: 63289b62a66707202114986d '400': description: Invalid parameters content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: workload_invalid_object_data_err: value: errorCode: '000701' httpCode: '400' message: Workload object invalid! '403': description: You are not authorized to perform this operation content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: not_authorized: value: errorCode: '00003' httpCode: '403' message: You are not authorized '404': description: Workload with specific ID does not exist in the db content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000700' httpCode: '404' message: Workload you are looking for does not exist '409': description: Workload with this name already exists content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000702' httpCode: '409' message: Workload with this name already exists '415': description: Unsupported media type content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '415' message: Route params validation error '422': description: Action is not supported for docker-compose workloads. content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: workload_invalid_object_data_err: value: errorCode: nerve_workload_208 httpCode: '400' message: Action is not supported for provided workload type. This route is not available for docker-compose workload type. Please use V3 routes for actions related to the docker-compose workloads. '500': description: Internal server error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: httpCode: '500' errorCode: nerve_dna_006 message: Operation failed for unknown reason. get: summary: Get list of all workloads operationId: get_workloads_filtered tags: - WORKLOAD_v2 description: This method is called to fetch all workloads from database parameters: - name: page in: query required: true description: A page of results to be returned. If not set, the default value is 0 and a first page will be returned. A number of items per page is defined by parameter limit. schema: description: Page (zero indexed) of results to get from backend type: integer format: int32 default: 0 minimum: 0 maximum: 1000 - name: filterBy in: query description: Defines the search criteria allowReserved: true schema: type: object properties: name: type: string pattern: ^[\x20-\x7E\t\n\r]*$ description: Filter the list by workload name minLength: 0 maxLength: 1000 disabled: type: boolean description: Filter the list by disabled property type: description: Filter the list by workload type anyOf: - description: Workload type type: string enum: - docker - vm - codesys - docker-compose - type: string enum: - '' examples: filter_by_name: summary: Filter a list of workloads by name value: name: workload disabled: false type: '' filter_by_disabled: summary: Show disabled workloads value: name: '' type: '' filter_by_type: summary: Filter a list of workloads by type value: name: '' disabled: false type: vm - name: limit in: query description: Number of items per page of the result. schema: description: Number of items in result set when paging is applied type: integer format: int32 default: 10 minimum: 1 maximum: 500 - name: order in: query description: Order by workload name or created time allowReserved: true schema: type: string description: Order by workload name or created time enum: - '{"created":"desc"}' - '{"created":"asc"}' - '{"name":"desc"}' - '{"name":"asc"}' x-permissions: - WORKLOAD:LIST responses: '200': description: List of workloads that match the criteria content: application/json: schema: description: Response of get workloads filtered list type: object required: - count - data properties: count: type: integer format: int32 minimum: 0 maximum: 1000000 description: Number of results data: description: List of workloads that match the search criteria type: array minItems: 0 maxItems: 1001 items: type: object description: Basic workload information without version data required: - createdBy - name - type - disabled - _id properties: createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string enum: - docker - vm - codesys - docker-compose disabled: type: boolean description: Indicates if workload can be used in deployment or no _id: description: Workload id oneOf: - type: object - type: string example: count: 1 data: - createdBy: date: '2025-11-14T16:11:34.219Z' name: workload type: docker disabled: true _id: 630320c1fc6ed10038ff8f21 '400': description: Route params validation error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '400' message: Route params validation error '403': description: You are not authorized to perform this operation content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: not_authorized: value: errorCode: '00003' httpCode: '403' message: You are not authorized '500': description: Internal server error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: httpCode: '500' errorCode: nerve_dna_006 message: Operation failed for unknown reason. /nerve/v2/workloads/{workloadId}: get: summary: Get workload selected by ID operationId: get_specific_workload tags: - WORKLOAD_v2 description: Method is used to retrieve one specific workload by id parameters: - name: workloadId in: path required: true description: Workload Id schema: description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 x-permissions: - WORKLOAD:VIEW responses: '200': description: successful operation content: application/json: schema: description: workload basic info type: object required: - name - type - deleted - disabled - _id properties: name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string enum: - docker - vm - codesys - docker-compose changedBy: type: object description: Information about user who changed the workload required: - date properties: date: description: Changed date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who changed the workload anyOf: - type: - string - 'null' - type: - object - 'null' createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object deleted: description: Indicates if the workload marked as deleted:) type: boolean default: false disabled: description: Indicates if workload can be used in deployment or no type: boolean description: description: Workload description field type: string minLength: 0 maxLength: 300 pattern: ^[\s\S]*$ _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object tenant: description: Reference to 'Tenant' collection oneOf: - type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 20 maxLength: 40 - type: object path: description: The path to the tenant folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ __v: type: number description: Internal version key used by Mongoose for document versioning versions: type: array minItems: 0 maxItems: 1001 default: [] description: Workload version data items: description: Workload version data oneOf: - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - capabilities properties: workloadProperties: description: VM specific properties anyOf: - description: VM specific properties type: object required: - no_of_vCPUs - memory properties: no_of_vCPUs: type: integer description: Number of CPUs for VM format: int32 minimum: 1 maximum: 1000 memory: oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB data_disks: type: array description: List of data disks minItems: 0 maxItems: 1001 items: oneOf: - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in KB type: number minimum: 100000 maximum: 32000000 disk_unit: description: Data disk size unit enum: - KB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in MB type: number minimum: 100 maximum: 32000 disk_unit: description: Data disk size unit enum: - MB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in GB type: number minimum: 0.1 maximum: 32 disk_unit: description: Data disk size unit enum: - GB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in TB type: number minimum: 0.0001 maximum: 0.032 disk_unit: description: Data disk size unit enum: - TB libvirt_networks: type: array description: List of connected libvirt networks minItems: 0 maxItems: 1001 items: anyOf: - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - Bridged interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - NAT interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ port_forwards: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 PCI_passthrough: type: array minItems: 0 maxItems: 1001 description: List of PCI devices passed through to the VM items: type: string pattern: ^(pci_)[a-f0-9]{4}_[a-f0-9]{2}_[a-f0-9]{2}_[a-f0-9]{1}$ minLength: 1 maxLength: 1000 snapshot: type: object description: VM snapshot configuration required: - enabled properties: enabled: type: boolean description: Flag indicating whether snapshot is enabled unit: description: Unit of the snapshot value anyOf: - type: string enum: - KB - MB - GB - TB - type: string enum: - '' value: description: Snapshot value type: integer format: int32 minimum: 0 maximum: 1000000 - description: VM properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the VM property enum: - data_disks - memory - no_of_vCPUs - snapshot - libvirt_networks - PCI_passthrough value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array - type: object capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 2 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - Virtualization - Virtualization via XEN - Virtualization via KVM - Virtualization via ACRN _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - dockerFileOption - capabilities properties: workloadProperties: anyOf: - description: Docker specific properties type: object required: - container_name properties: container_name: type: string description: Docker container name minLength: 2 maxLength: 100 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]+$ restart_policy: description: Restart policy for docker container anyOf: - type: string description: Restart policy for docker container enum: - 'no' - on-failure - always - unless-stopped - type: string enum: - '' networks: type: array description: List of connected networks minItems: 0 maxItems: 1001 items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ docker_volumes: description: List of mapped volumes minItems: 0 maxItems: 1001 type: array items: type: object required: - volumeName - containerPath - configurationStorage properties: volumeName: description: Name of the volume minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ containerPath: description: Path inside the container where the volume is mapped minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ configurationStorage: type: boolean description: Flag indicating whether the volume is used for configuration storage environment_variables: minItems: 0 maxItems: 1001 type: array description: List of environment variables items: type: object required: - env_variable - container_value properties: env_variable: type: string description: Name of the environment variable pattern: ^[a-zA-Z_]+[a-zA-Z0-9_]*$ minLength: 1 maxLength: 1000 container_value: description: Value of the environment variable minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ limit_CPUs: description: CPU limit for the container anyOf: - type: integer format: int64 minimum: 1 maximum: 1000 - type: string enum: - '' limit_memory: description: Memory limit for the container anyOf: - oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB - type: object maxProperties: 0 port_mappings_protocol: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 auth_credentials: type: object description: Credentials for private docker registry - description: Docker specific properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the Docker property enum: - container_name - restart_policy - networks - docker_volumes_new - docker_volumes - environment_variables - limit_CPUs - limit_memory - port_mappings_protocol - port_mappings - auth-credentials value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array dockerFileOption: description: option indicating if file is uploaded or docker image from registry is used type: string enum: - file - path dockerFilePath: description: Name of the docker image. Exists if dockerFileOption is path minLength: 0 maxLength: 354 pattern: ^(?:(?=.{1,255}(?::|$))([a-z0-9.-]+(:[0-9]+)?\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?)?$ anyOf: - type: string minLength: 2 - type: - string - 'null' capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability minLength: 1 maxLength: 1000 enum: - Docker Container _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - capabilities properties: workloadProperties: description: Codesys specific properties anyOf: - type: array minItems: 0 maxItems: 0 - type: object minProperties: 0 maxProperties: 0 capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - CODESYS PLC _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ example: name: workload type: docker deleted: true disabled: true _id: 63289b62a66707202114986d '400': description: Route params validation error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '400' message: Route params validation error '403': description: You are not authorized to perform this operation content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: not_authorized: value: errorCode: '00003' httpCode: '403' message: You are not authorized '404': description: Workload with specific ID does not exist in the db content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000700' httpCode: '404' message: Workload you are looking for does not exist '422': description: Action is not supported for docker-compose workloads. content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: workload_invalid_object_data_err: value: errorCode: nerve_workload_208 httpCode: '400' message: Action is not supported for provided workload type. This route is not available for docker-compose workload type. Please use V3 routes for actions related to the docker-compose workloads. '500': description: Internal server error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: httpCode: '500' errorCode: nerve_dna_006 message: Operation failed for unknown reason. patch: summary: Update workload data operationId: update_workload_general_data tags: - WORKLOAD_v2 description: This method is used to update general workload data (name, description) parameters: - name: workloadId in: path required: true description: Workload Id schema: description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 requestBody: required: true content: application/json: schema: description: workload basic info type: object required: - name - type - deleted - disabled - _id properties: name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string minLength: 1 maxLength: 1000 enum: - docker - vm - codesys changedBy: type: object description: Information about user who changed the workload required: - date properties: date: description: Changed date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who changed the workload anyOf: - type: - string - 'null' - type: - object - 'null' createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object deleted: description: Indicates if the workload marked as deleted:) type: boolean default: false disabled: description: Indicates if workload can be used in deployment or no type: boolean description: description: Workload description field type: string minLength: 0 maxLength: 300 pattern: ^[\s\S]*$ _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object tenant: description: Reference to 'Tenant' collection oneOf: - type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 20 maxLength: 40 - type: object path: type: string pattern: ^[\x20-\x7E\t\n\r]*$ description: The path to the tenant folder minLength: 0 maxLength: 1000 __v: description: Internal version key used by Mongoose for document versioning type: number versions: minItems: 0 maxItems: 1001 description: Workload version data type: array default: [] items: description: Workload version data oneOf: - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - capabilities properties: workloadProperties: description: VM specific properties anyOf: - description: VM specific properties type: object required: - no_of_vCPUs - memory properties: no_of_vCPUs: type: integer description: Number of CPUs for VM format: int32 minimum: 1 maximum: 1000 memory: oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB data_disks: type: array description: List of data disks minItems: 0 maxItems: 1001 items: oneOf: - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in KB type: number minimum: 100000 maximum: 32000000 disk_unit: description: Data disk size unit enum: - KB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in MB type: number minimum: 100 maximum: 32000 disk_unit: description: Data disk size unit enum: - MB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in GB type: number minimum: 0.1 maximum: 32 disk_unit: description: Data disk size unit enum: - GB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in TB type: number minimum: 0.0001 maximum: 0.032 disk_unit: description: Data disk size unit enum: - TB libvirt_networks: type: array description: List of connected libvirt networks minItems: 0 maxItems: 1001 items: anyOf: - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - Bridged interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - NAT interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ port_forwards: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 PCI_passthrough: type: array minItems: 0 maxItems: 1001 description: List of PCI devices passed through to the VM items: type: string pattern: ^(pci_)[a-f0-9]{4}_[a-f0-9]{2}_[a-f0-9]{2}_[a-f0-9]{1}$ minLength: 1 maxLength: 1000 snapshot: type: object description: VM snapshot configuration required: - enabled properties: enabled: type: boolean description: Flag indicating whether snapshot is enabled unit: description: Unit of the snapshot value anyOf: - type: string enum: - KB - MB - GB - TB - type: string enum: - '' value: description: Snapshot value type: integer format: int32 minimum: 0 maximum: 1000000 - description: VM properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the VM property enum: - data_disks - memory - no_of_vCPUs - snapshot - libvirt_networks - PCI_passthrough value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array - type: object capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 2 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - Virtualization - Virtualization via XEN - Virtualization via KVM - Virtualization via ACRN _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - dockerFileOption - capabilities properties: workloadProperties: anyOf: - description: Docker specific properties type: object required: - container_name properties: container_name: type: string description: Docker container name minLength: 2 maxLength: 100 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]+$ restart_policy: description: Restart policy for docker container anyOf: - type: string description: Restart policy for docker container enum: - 'no' - on-failure - always - unless-stopped - type: string enum: - '' networks: type: array description: List of connected networks minItems: 0 maxItems: 1001 items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ docker_volumes: description: List of mapped volumes minItems: 0 maxItems: 1001 type: array items: type: object required: - volumeName - containerPath - configurationStorage properties: volumeName: description: Name of the volume minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ containerPath: description: Path inside the container where the volume is mapped minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ configurationStorage: type: boolean description: Flag indicating whether the volume is used for configuration storage environment_variables: minItems: 0 maxItems: 1001 type: array description: List of environment variables items: type: object required: - env_variable - container_value properties: env_variable: type: string description: Name of the environment variable pattern: ^[a-zA-Z_]+[a-zA-Z0-9_]*$ minLength: 1 maxLength: 1000 container_value: description: Value of the environment variable minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ limit_CPUs: description: CPU limit for the container anyOf: - type: integer format: int64 minimum: 1 maximum: 1000 - type: string enum: - '' limit_memory: description: Memory limit for the container anyOf: - oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB - type: object maxProperties: 0 port_mappings_protocol: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 auth_credentials: type: object description: Credentials for private docker registry - description: Docker specific properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the Docker property enum: - container_name - restart_policy - networks - docker_volumes_new - docker_volumes - environment_variables - limit_CPUs - limit_memory - port_mappings_protocol - port_mappings - auth-credentials value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array dockerFileOption: description: option indicating if file is uploaded or docker image from registry is used type: string enum: - file - path dockerFilePath: description: Name of the docker image. Exists if dockerFileOption is path minLength: 0 maxLength: 354 pattern: ^(?:(?=.{1,255}(?::|$))([a-z0-9.-]+(:[0-9]+)?\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?)?$ anyOf: - type: string minLength: 2 - type: - string - 'null' capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability minLength: 1 maxLength: 1000 enum: - Docker Container _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - capabilities properties: workloadProperties: description: Codesys specific properties anyOf: - type: array minItems: 0 maxItems: 0 - type: object minProperties: 0 maxProperties: 0 capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - CODESYS PLC _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ x-permissions: - WORKLOAD:EDIT responses: '200': description: successful operation content: application/json: schema: description: workload basic info type: object required: - name - type - deleted - disabled - _id properties: name: type: string description: Workload name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) type: description: Workload type type: string enum: - docker - vm - codesys - docker-compose changedBy: type: object description: Information about user who changed the workload required: - date properties: date: description: Changed date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who changed the workload anyOf: - type: - string - 'null' - type: - object - 'null' createdBy: type: object description: Information about user who created the workload required: - date properties: date: description: Creation date anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object user: description: User who created the workload oneOf: - type: string - type: object deleted: description: Indicates if the workload marked as deleted:) type: boolean default: false disabled: description: Indicates if workload can be used in deployment or no type: boolean description: description: Workload description field type: string minLength: 0 maxLength: 300 pattern: ^[\s\S]*$ _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object tenant: description: Reference to 'Tenant' collection oneOf: - type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 20 maxLength: 40 - type: object path: description: The path to the tenant folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ __v: type: number description: Internal version key used by Mongoose for document versioning versions: type: array minItems: 0 maxItems: 1001 default: [] description: Workload version data items: description: Workload version data oneOf: - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - capabilities properties: workloadProperties: description: VM specific properties anyOf: - description: VM specific properties type: object required: - no_of_vCPUs - memory properties: no_of_vCPUs: type: integer description: Number of CPUs for VM format: int32 minimum: 1 maximum: 1000 memory: oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB data_disks: type: array description: List of data disks minItems: 0 maxItems: 1001 items: oneOf: - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in KB type: number minimum: 100000 maximum: 32000000 disk_unit: description: Data disk size unit enum: - KB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in MB type: number minimum: 100 maximum: 32000 disk_unit: description: Data disk size unit enum: - MB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in GB type: number minimum: 0.1 maximum: 32 disk_unit: description: Data disk size unit enum: - GB - type: object required: - data_disk - disk_size - disk_unit properties: data_disk: description: The name of data disk type: string pattern: ^[a-zA-Z0-9_]+$ minLength: 1 maxLength: 1000 disk_size: description: Data disk size in TB type: number minimum: 0.0001 maximum: 0.032 disk_unit: description: Data disk size unit enum: - TB libvirt_networks: type: array description: List of connected libvirt networks minItems: 0 maxItems: 1001 items: anyOf: - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - Bridged interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - type - interface properties: type: type: string description: Type of the network enum: - NAT interface: description: Name of the network interface minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ port_forwards: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 PCI_passthrough: type: array minItems: 0 maxItems: 1001 description: List of PCI devices passed through to the VM items: type: string pattern: ^(pci_)[a-f0-9]{4}_[a-f0-9]{2}_[a-f0-9]{2}_[a-f0-9]{1}$ minLength: 1 maxLength: 1000 snapshot: type: object description: VM snapshot configuration required: - enabled properties: enabled: type: boolean description: Flag indicating whether snapshot is enabled unit: description: Unit of the snapshot value anyOf: - type: string enum: - KB - MB - GB - TB - type: string enum: - '' value: description: Snapshot value type: integer format: int32 minimum: 0 maximum: 1000000 - description: VM properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the VM property enum: - data_disks - memory - no_of_vCPUs - snapshot - libvirt_networks - PCI_passthrough value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array - type: object capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 2 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - Virtualization - Virtualization via XEN - Virtualization via KVM - Virtualization via ACRN _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - workloadProperties - dockerFileOption - capabilities properties: workloadProperties: anyOf: - description: Docker specific properties type: object required: - container_name properties: container_name: type: string description: Docker container name minLength: 2 maxLength: 100 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]+$ restart_policy: description: Restart policy for docker container anyOf: - type: string description: Restart policy for docker container enum: - 'no' - on-failure - always - unless-stopped - type: string enum: - '' networks: type: array description: List of connected networks minItems: 0 maxItems: 1001 items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ docker_volumes: description: List of mapped volumes minItems: 0 maxItems: 1001 type: array items: type: object required: - volumeName - containerPath - configurationStorage properties: volumeName: description: Name of the volume minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ containerPath: description: Path inside the container where the volume is mapped minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ configurationStorage: type: boolean description: Flag indicating whether the volume is used for configuration storage environment_variables: minItems: 0 maxItems: 1001 type: array description: List of environment variables items: type: object required: - env_variable - container_value properties: env_variable: type: string description: Name of the environment variable pattern: ^[a-zA-Z_]+[a-zA-Z0-9_]*$ minLength: 1 maxLength: 1000 container_value: description: Value of the environment variable minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ limit_CPUs: description: CPU limit for the container anyOf: - type: integer format: int64 minimum: 1 maximum: 1000 - type: string enum: - '' limit_memory: description: Memory limit for the container anyOf: - oneOf: - type: object description: Memory limit in KB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in KB minimum: 100000 unit: description: Memory limit unit enum: - KB - type: object description: Memory limit in MB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: type: number description: Memory limit value in MB minimum: 100 unit: description: Memory limit unit enum: - MB - type: object description: Memory limit in GB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in GB type: number minimum: 0.1 unit: description: Memory limit unit enum: - GB - type: object description: Memory limit in TB minProperties: 2 maxProperties: 2 required: - value - unit properties: value: description: Memory limit value in TB type: number minimum: 9.999999999999999e-05 unit: description: Memory limit unit enum: - TB - type: object maxProperties: 0 port_mappings_protocol: type: array description: List of port mappings minItems: 0 maxItems: 20 items: type: object description: Port mapping object containing information about protocol, host port and container port required: - protocol - host_port - container_port properties: protocol: type: string description: Protocol used for port mapping enum: - TCP - UDP host_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 container_port: type: integer format: int32 description: Port number minimum: 0 maximum: 65535 auth_credentials: type: object description: Credentials for private docker registry - description: Docker specific properties as list of key/value pairs type: array minItems: 1 items: type: object properties: key: type: string description: Name of the Docker property enum: - container_name - restart_policy - networks - docker_volumes_new - docker_volumes - environment_variables - limit_CPUs - limit_memory - port_mappings_protocol - port_mappings - auth-credentials value: description: Value assigned to the property anyOf: - type: string - type: integer format: int32 minimum: 0 maximum: 1000000 - type: array dockerFileOption: description: option indicating if file is uploaded or docker image from registry is used type: string enum: - file - path dockerFilePath: description: Name of the docker image. Exists if dockerFileOption is path minLength: 0 maxLength: 354 pattern: ^(?:(?=.{1,255}(?::|$))([a-z0-9.-]+(:[0-9]+)?\/)?([a-z0-9]+(?:[._-][a-z0-9]+)*)(\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?)?$ anyOf: - type: string minLength: 2 - type: - string - 'null' capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability minLength: 1 maxLength: 1000 enum: - Docker Container _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - description: Array of different remote connection types. anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string minLength: 0 maxLength: 0 pattern: ^$ description: Target hostname or ip address to which connection is established port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen VNC allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection - password properties: connection: type: string description: Remote screen type enum: - VNC password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen SSH allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - SSH username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ privatekeyFlag: type: boolean default: false description: Option to choose authentication via private SSH key privateKey: description: The contents of the private key to use for authentication minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: Remote screen RDP allOf: - anyOf: - type: object required: - name - numberOfConnections - acknowledgment - hostname - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - name - numberOfConnections - acknowledgment - port - autoretry - type properties: type: type: string description: Remote connection type enum: - SCREEN name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 numberOfConnections: type: integer format: int32 description: The maximum number of simultaneous connections minimum: 1 maximum: 100 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ autoretry: type: integer format: int32 description: The number of times to retry connecting before giving up and returning an error minimum: 1 maximum: 3 cursor: type: string description: 'Defines if the cursor is rendered locally or remotely ' enum: - '' - local - remote readOnly: type: boolean description: Defines whether the connection should be read-only. swapRedBlue: description: Specifies whether the red and blue indicators for the remote connection should be swapped type: boolean oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: object required: - connection properties: connection: type: string description: Remote screen type enum: - RDP username: type: string description: Username to use for authentication minLength: 0 maxLength: 40 pattern: ^[^\u0000-\u001f\u007f-\u009f:]*$ password: description: Password to use when attempting authentication minLength: 0 maxLength: 40 type: string pattern: ^[\x20-\x7E\t\n\r]*$ ignoreServerCertificate: type: boolean default: false description: Defines if the server certificate should be ignored when connecting to the target securityMode: type: string description: Dictates how data will be encrypted and what type of authentication will be performed enum: - '' - any - nla - rdp - tls - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false - allOf: - description: Docker version info from db type: object required: - name - releaseName - deleted - released - files - isDeployable - isDownloading - hash properties: name: type: string description: Version name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) releaseName: type: string description: Release name minLength: 1 maxLength: 40 pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) deleted: description: Indicates if the version marked as deleted type: boolean released: description: Indicates if the version is released type: boolean isDeployable: description: Indicates if the version can be used in deployment type: boolean isDownloading: description: Indicates if the version is in downloading state type: boolean hash: description: Hash of the version structure that changes with every change in version files or properties default: '' minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: Version id oneOf: - type: object - type: string files: description: List of files attached to the version minItems: 0 maxItems: 1001 anyOf: - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: imageId: description: Id of the image if dockerFileOption is path minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 1 maxItems: 1 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: type: string description: Identifier of the file field enum: - file - type: array minItems: 2 maxItems: 2 items: allOf: - type: object required: - compressedSize - hash - name - originalName - path - size - type - _id properties: compressedSize: description: Size of compressed file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ hash: description: Calculated hash minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: description: Name of the archived file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ originalName: description: Name of the uploaded file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ path: description: File path within 'workload' folder minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ size: description: Size of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ type: description: Type of the file minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ _id: description: File id oneOf: - type: object - type: string - type: object required: - fieldName properties: fieldName: description: Name of the file type: string enum: - file1 - file2 containFileType: type: string description: File type contained in the ZIP archive enum: - .img - .raw - .qcow2 - .vhdx - '' virtualSize: description: Virtual size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ maxFileSize: description: Maximum size of the disk image minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - type: array items: minLength: 1 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ enum: - [] createdAt: description: Creation date oneOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object created: description: User who created the version minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ updatedAt: description: Date when version was updated anyOf: - type: string format: date-time minLength: 8 maxLength: 30 - type: object - type: object required: - capabilities properties: workloadProperties: description: Codesys specific properties anyOf: - type: array minItems: 0 maxItems: 0 - type: object minProperties: 0 maxProperties: 0 capabilities: type: array description: List of capabilities assigned to the workload version minItems: 1 maxItems: 1 items: type: object minProperties: 2 required: - name - _id properties: description: description: Description of the capability minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ name: type: string description: Name of the capability enum: - CODESYS PLC _id: description: ID (from Management System) of the entry. Can be a string or an object. oneOf: - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 - type: object remoteConnections: type: array minItems: 0 maxItems: 1001 description: List of defined remote connections items: anyOf: - type: object description: Remote tunnel required: - name - acknowledgment - hostname - port - localPort - type properties: type: type: string description: Remote connection type enum: - TUNNEL name: type: string description: Remote connection name pattern: (?=.*[^ ].*)(?=(^[^\u0000-\u001f\u007f-\u009f]*$)) minLength: 1 maxLength: 40 acknowledgment: type: string description: Defines if local acknowledgement is required to establish a connection. To confirm connection, it is necessary to have access to the LocalUI web application. enum: - 'Yes' - 'No' hostname: type: string description: Target hostname or ip address to which connection is established minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ port: description: Port on the target to which connection is established (port on the node for opening tunnel to chisel server) oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ localPort: description: Port on local PC to establish remote tunnel oneOf: - type: integer format: int32 minimum: 0 maximum: 65535 description: Port which is used to establish connection - type: string pattern: ^\d+$ oldName: description: Old remote connection name minLength: 0 maxLength: 1000 type: string pattern: ^[\x20-\x7E\t\n\r]*$ - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 selectors: type: array description: List of labels or ids assigned to the workload version minItems: 0 maxItems: 1001 items: anyOf: - type: object description: The key-value pair representing a label. properties: key: description: Definition of a label key property type: string minLength: 1 maxLength: 40 pattern: ^[a-zA-Z0-9_-]*$ value: description: Definition of a label value property type: string minLength: 1 maxLength: 40 pattern: ^[^\s]*$ required: - key - value - description: ID (from Management System) of the entry type: string pattern: ^[0-9a-fA-F]{24}$ minLength: 24 maxLength: 24 restartOnConfigurationUpdate: type: boolean description: Indicator if container will be restarted when applying configuration default: false firstVolumeAsConfigurationStorage: type: boolean description: Flag indicating whether the first mapped volume is used as configuration storage default: false dockerFileOption: description: Option indicating if file is uploaded or docker image from registry is used. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ dockerFilePath: description: Name of the docker image. Exists only for docker workloads. type: string minLength: 0 maxLength: 0 pattern: ^$ examples: workload_docker_db: value: createdBy: user: 62569e8b448cd10020407243 date: '2022-06-16T10:37:57.622Z' changedBy: user: 62569e8b448cd10020407243 date: '2022-08-01T08:44:28.652Z' deleted: false disabled: true _id: 62ab08059716b00bd6b59f1f name: nginx description: '' type: docker versions: - template: values: [] deleted: false released: false selectors: [] isDeployable: true hash: ac339daed7d77cf3baaaf0ba7f8ff897 remoteConnections: - 62ab09cc9716b00bd6b59f34 isDownloading: false restartOnConfigurationUpdate: false firstVolumeAsConfigurationStorage: false _id: 62ab09cc9716b00bd6b59f35 name: nginx port mapping releaseName: nginx port mapping workloadProperties: - _id: 62ab09cc9716b00bd6b59f36 key: container_name value: nginx - _id: 62ab09cc9716b00bd6b59f37 key: networks value: bridge - _id: 62ab09cc9716b00bd6b59f38 key: port_mappings_protocol value: 1111=80/tcp dockerFilePath: nginx dockerFileOption: path files: - containFileType: '' _id: 62ab08469716b00bd6b59f25 hash: fb88262f30f908e1e0c9328547b06460 path: 62ab08059716b00bd6b59f1f/85b77980-ed60-11ec-ae8b-eb874e63d5e8.tar.gz originalName: 85b77980-ed60-11ec-ae8b-eb874e63d5e8.tar name: 85b77980-ed60-11ec-ae8b-eb874e63d5e8.tar.gz size: '145951232' compressedSize: '54767226' type: .tar fieldName: file imageId: 0e901e68141fd02f237cf63eb842529f8a9500636a9419e3cf4fb986b8fe3d5d virtualSize: '' capabilities: - _id: 6257e3c1e87b04b86579a2f9 name: Docker Container description: '' createdAt: '2022-06-16T10:45:32.418Z' path: base_path_folder tenant: 5c01189c94beaff01a5f1e3c __v: 0 '400': description: Route params validation error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '400' message: Route params validation error '403': description: You are not authorized to perform this operation content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: not_authorized: value: errorCode: '00003' httpCode: '403' message: You are not authorized '404': description: Workload with specific ID does not exist in the db content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000700' httpCode: '404' message: Workload you are looking for does not exist '409': description: Workload with this name already exists content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '000702' httpCode: '409' message: Workload with this name already exists '415': description: Unsupported media type content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: errorCode: '00006' httpCode: '415' message: Route params validation error '422': description: Action is not supported for docker-compose workloads. content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ examples: workload_invalid_object_data_err: value: errorCode: nerve_workload_208 httpCode: '400' message: Action is not supported for provided workload type. This route is not available for docker-compose workload type. Please use V3 routes for actions related to the docker-compose workloads. '500': description: Internal server error content: application/json: schema: description: Generic error response returned from the server in case of a failed operation. properties: errorCode: description: String that is used as a key for appropriate translation on the front-end application. type: string minLength: 4 maxLength: 100 pattern: ^[a-zA-Z0-9_-]*$ httpCode: description: Http error code assigned to the error. type: string minLength: 3 maxLength: 3 pattern: ^[0-9]*$ message: description: Error message in English. minLength: 5 maxLength: 512 type: string pattern: ^[\x20-\x7E\t\n\r]*$ example: httpCode: '500' errorCode: nerve_dna_006 message: Operation failed for unknown reason. components: securitySchemes: sessionId: type: apiKey in: header name: sessionId basicAuth: type: http scheme: basic cookieAuth: type: apiKey in: header name: cookie bearerAuth: type: http scheme: bearer