{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dedicated-server-task-schema.json",
  "title": "dedicated.server.Task",
  "description": "Server tasks",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dedicated-housing-openapi.yml#/components/schemas/dedicated.server.Task",
  "type": "object",
  "properties": {
    "changeUuid": {
      "type": [
        "string",
        "null"
      ],
      "description": "UUID of the change linked to this task",
      "readOnly": true
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Details of this task",
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Completion date",
      "format": "date-time",
      "readOnly": true
    },
    "function": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.TaskFunctionEnum"
        }
      ],
      "description": "Function name",
      "readOnly": true
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "last update",
      "format": "date-time",
      "readOnly": true
    },
    "needSchedule": {
      "type": "boolean",
      "description": "Whether this task need to be scheduled or not",
      "readOnly": true
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Extra information about this task",
      "readOnly": true
    },
    "plannedInterventionId": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ID of the planned intervention for this task",
      "readOnly": true
    },
    "startDate": {
      "type": "string",
      "description": "Task Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.TaskStatusEnum"
        }
      ],
      "description": "Task status",
      "readOnly": true
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "description": "Task result tags output",
      "items": {
        "$ref": "#/$defs/complexType.SafeKeyValueCanBeNull_string"
      },
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "the id of the task",
      "readOnly": true
    },
    "ticketReference": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reference of the thread on the support tool",
      "readOnly": true
    }
  },
  "$defs": {
    "complexType.SafeKeyValueCanBeNull_string": {
      "type": "object",
      "description": "Key and value, with proper key strings",
      "properties": {
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "type": "string"
        }
      }
    },
    "dedicated.TaskFunctionEnum": {
      "type": "string",
      "description": "different task operation",
      "enum": [
        "INFRA_002_VirtualNetworkInterface",
        "INFRA_002_VirtualNetworkInterface_group",
        "INFRA_002_VirtualNetworkInterface_ungroup",
        "INFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_group",
        "INFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_ungroup",
        "INFRA_ONE_NETWORK_VirtualNetworkInterface_group",
        "INFRA_ONE_NETWORK_VirtualNetworkInterface_ungroup",
        "addVirtualMac",
        "addWindowSplaFromExistingSerial",
        "applyBackupFtpAcls",
        "applyBackupFtpQuota",
        "bypassAntiDDosGame",
        "changePasswordBackupFTP",
        "changeRipeOrg",
        "checkAndReleaseIp",
        "createBackupFTP",
        "createOrUpdateRipeOrg",
        "createPrivateNetwork",
        "disableFirewall",
        "enableFirewall",
        "genericMoveFloatingIp",
        "hardReboot",
        "hardware_update",
        "ipmi/configureSGX",
        "migrateBackupFTP",
        "moveFloatingIp",
        "moveVirtualMac",
        "reagregateBlock",
        "rebootPower8To",
        "reinstallServer",
        "releaseIp",
        "removeBackupFTP",
        "removeVirtualMac",
        "requestAccessIPMI",
        "resetIPMI",
        "resetIPMISession",
        "testIPMIhttp",
        "testIPMIpassword",
        "testIPMIping",
        "virtualMacAdd",
        "virtualMacDelete"
      ]
    },
    "dedicated.TaskStatusEnum": {
      "type": "string",
      "description": "different task status",
      "enum": [
        "cancelled",
        "customerError",
        "doing",
        "done",
        "init",
        "ovhError",
        "todo"
      ]
    }
  }
}