{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-ip-ip-task-schema.json",
  "title": "ip.IpTask",
  "description": "IP tasks",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-ip-openapi.yml#/components/schemas/ip.IpTask",
  "type": "object",
  "properties": {
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Details of this task",
      "readOnly": true
    },
    "destination": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.RoutedTo"
        }
      ],
      "description": "Destination for moveFloatingIp tasks",
      "nullable": true,
      "readOnly": true
    },
    "doneDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Completion date",
      "format": "date-time",
      "readOnly": true
    },
    "function": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.TaskFunctionEnum"
        }
      ],
      "description": "Function name",
      "readOnly": true
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ],
      "description": "last update",
      "format": "date-time",
      "readOnly": true
    },
    "startDate": {
      "type": "string",
      "description": "Task Creation date",
      "format": "date-time",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/ip.TaskStatusEnum"
        }
      ],
      "description": "Task status",
      "readOnly": true
    },
    "taskId": {
      "type": "integer",
      "description": "the id of the task",
      "readOnly": true
    }
  },
  "$defs": {
    "ip.RoutedTo": {
      "type": "object",
      "description": "Information about routing",
      "properties": {
        "serviceName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Service where ip is routed to"
        }
      }
    },
    "ip.TaskFunctionEnum": {
      "type": "string",
      "description": "different task operation",
      "enum": [
        "arinBlockReassign",
        "changeRipeOrg",
        "checkAndReleaseIp",
        "genericMoveFloatingIp",
        "supernetByoipFailoverPartitioning"
      ]
    },
    "ip.TaskStatusEnum": {
      "type": "string",
      "description": "different task status",
      "enum": [
        "cancelled",
        "customerError",
        "doing",
        "done",
        "init",
        "ovhError",
        "todo"
      ]
    }
  }
}