{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/scaleway.instance.v1.MigrationPlan", "title": "scaleway.instance.v1.MigrationPlan", "type": "object", "properties": { "volume": { "type": "object", "description": "A volume which will be migrated to SBS together with the snapshots, if present.", "properties": { "id": { "type": "string", "description": "Volume unique ID." }, "name": { "type": "string", "description": "Volume name." }, "export_uri": { "type": "string", "description": "Show the volume NBD export URI (deprecated, will always be empty).", "deprecated": true }, "size": { "type": "integer", "description": "Volume disk size. (in bytes)", "format": "uint64" }, "volume_type": { "type": "string", "description": "Volume type.", "enum": [ "l_ssd", "b_ssd", "unified", "scratch", "sbs_volume", "sbs_snapshot" ], "x-enum-descriptions": { "values": { "b_ssd": "Deprecated", "unified": "Deprecated" } }, "default": "l_ssd" }, "creation_date": { "type": "string", "description": "Volume creation date. (RFC 3339 format)", "format": "date-time", "example": "2022-03-22T12:34:56.123456Z", "nullable": true }, "modification_date": { "type": "string", "description": "Volume modification date. (RFC 3339 format)", "format": "date-time", "example": "2022-03-22T12:34:56.123456Z", "nullable": true }, "organization": { "type": "string", "description": "Volume Organization ID." }, "project": { "type": "string", "description": "Volume Project ID." }, "tags": { "type": "array", "description": "Volume tags.", "items": { "type": "string" } }, "server": { "type": "object", "description": "Instance attached to the volume.", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "x-properties-order": [ "id", "name" ] }, "state": { "type": "string", "description": "Volume state.", "enum": [ "available", "snapshotting", "fetching", "saving", "attaching", "resizing", "hotsyncing", "error" ], "default": "available" }, "zone": { "type": "string", "description": "Zone in which the volume is located." } }, "x-properties-order": [ "id", "name", "export_uri", "size", "volume_type", "creation_date", "modification_date", "organization", "project", "tags", "server", "state", "zone" ] }, "snapshots": { "type": "array", "description": "A list of snapshots which will be migrated to SBS together and with the volume, if present.", "items": { "$ref": "#/components/schemas/scaleway.instance.v1.Snapshot" } }, "validation_key": { "type": "string", "description": "A value to be passed to the call to the [Migrate a volume and/or snapshots to SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage) endpoint, to confirm that the execution of the plan is being requested." } }, "x-properties-order": [ "volume", "snapshots", "validation_key" ] }