Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
workloadmgr / workloadmgr / api / v1 / schemas / migration-options.json.schema
Size: Mime:
{
    "$schema": "https://json-schema.org/draft/2019-09/schema",
    "$id": "http://example.com/example.json",
    "type": "object",
    "default": {},
    "title": "Root Schema",
    "required": [
        "name",
        "description",
        "migration_type",
        "target",
        "openstack"
    ],
    "properties": {
        "name": {
            "type": "string",
            "default": "",
            "title": "The name Schema",
            "examples": [
                "Plan"
            ]
        },
        "description": {
            "type": "string",
            "default": "",
            "title": "The description Schema",
            "examples": [
                "Description"
            ]
        },
        "migration_type": {
            "type": "string",
            "default": "cold",
            "title": "The migration_type Schema",
            "examples": [
                "cold"
            ]
        },
        "power_off_vm_post_migrate": {
            "type": "boolean",
            "default": false,
            "title": "The power_off_vm_post_migrate Schema",
            "examples": [
                false
            ]
        },
        "target": {
            "type": "string",
            "default": "",
            "title": "The target Schema",
            "examples": [
                "openstack"
            ]
        },
        "openstack": {
            "type": "object",
            "default": {},
            "title": "The openstack Schema",
            "required": [
                "vms",
                "networks_mapping",
                "storage_mapping"
            ],
            "properties": {
                "vms": {
                    "type": "array",
                    "default": [],
                    "title": "The vms Schema",
                    "items": {
                        "type": "object",
                        "title": "A Schema",
                        "properties": {
                            "id": {
                                "type": "string",
                                "title": "The id Schema",
                                "examples": [
                                    "5012ba1a-48f4-3915-5b22-b5ca55328090",
                                    "5012b7bd-24cd-f2d6-6ae0-ea3279a4e5af"
                                ]
                            },
                            "include": {
                                "type": "boolean",
                                "title": "The include Schema",
                                "examples": [
                                    true
                                ]
                            },
                            "name": {
                                "type": "string",
                                "title": "The name Schema",
                                "examples": [
                                    "ADP_CentOS8_BIOS",
                                    "ADP_CentOS8_UEFI"
                                ]
                            },
                            "flavor": {
                                "type": "object",
                                "title": "The flavor Schema",
                                "required": [
                                    "id",
                                    "vcpus",
                                    "ram",
                                    "disk",
                                    "ephemeral",
                                    "swap"
                                ],
                                "properties": {
                                    "id": {
                                        "type": "string",
                                        "title": "The id Schema",
                                        "examples": [
                                            "34c761c9-3811-48ac-a28f-bcac590712ff"
                                        ]
                                    },
                                    "vcpus": {
                                        "type": "integer",
                                        "title": "The vcpus Schema",
                                        "examples": [
                                            1
                                        ]
                                    },
                                    "ram": {
                                        "type": "integer",
                                        "title": "The ram Schema",
                                        "examples": [
                                            64
                                        ]
                                    },
                                    "disk": {
                                        "type": "integer",
                                        "title": "The disk Schema",
                                        "examples": [
                                            1
                                        ]
                                    },
                                    "ephemeral": {
                                        "type": "integer",
                                        "title": "The ephemeral Schema",
                                        "examples": [
                                            0
                                        ]
                                    },
                                    "swap": {
                                        "type": "string",
                                        "title": "The swap Schema",
                                        "examples": [
                                            ""
                                        ]
                                    }
                                },
                                "examples": [{
                                    "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                    "vcpus": 1,
                                    "ram": 64,
                                    "disk": 1,
                                    "ephemeral": 0,
                                    "swap": ""
                                },
                                {
                                    "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                    "vcpus": 1,
                                    "ram": 64,
                                    "disk": 1,
                                    "ephemeral": 0,
                                    "swap": ""
                                }]
                            },
                            "image_source": {
                                "type": "string",
                                "title": "The image_source Schema",
                                "examples": [
                                    "",
                                    "82d1fe80-3e8b-47f9-99fa-48fe6dd50c83"
                                ]
                            },
                            "availability_zone": {
                                "type": "string",
                                "title": "The availability_zone Schema",
                                "examples": [
                                    "nova"
                                ]
                            },
                            "nics": {
                                "type": "array",
                                "title": "The nics Schema",
                                "items": {},
                                "examples": [
                                    [],
                                    []
                                ]
                            },
                            "use_cinder_boot_volume": {
                                "type": "boolean",
                                "title": "The use_cinder_boot_volume Schema",
                                "examples": [
                                    true
                                ]
                            },
                            "glance_image_id": {
                                "type": "string",
                                "title": "The glance_image_id Schema",
                                "examples": [
                                    "72d37462-12f5-4b0d-a341-af0080c0182f"
                                ]
                            },
                            "vdisks": {
                                "type": "array",
                                "title": "The vdisks Schema",
                                "items": {
                                    "type": "object",
                                    "title": "A Schema",
                                    "required": [
                                        "id",
                                        "new_volume_type",
                                        "availability_zone"
                                    ],
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "title": "The id Schema",
                                            "examples": [
                                                "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                                                "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                                                "6000C299-49c9-a192-02d4-8345787587b1"
                                            ]
                                        },
                                        "new_volume_type": {
                                            "type": ["string", "null"],
                                            "title": "The new_volume_type Schema",
                                            "examples": [
                                                "ceph"
                                            ]
                                        },
                                        "availability_zone": {
                                            "type": "string",
                                            "title": "The availability_zone Schema",
                                            "examples": [
                                                "nova"
                                            ]
                                        }
                                    },
                                    "examples": [{
                                        "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    },
                                    {
                                        "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    },
                                    {
                                        "id": "6000C299-49c9-a192-02d4-8345787587b1",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    }]
                                },
                                "examples": [
                                    [{
                                        "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    }],
                                    [{
                                        "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    },
                                    {
                                        "id": "6000C299-49c9-a192-02d4-8345787587b1",
                                        "new_volume_type": "ceph",
                                        "availability_zone": "nova"
                                    }]
                                ]
                            }
                        },
                        "examples": [{
                            "id": "5012ba1a-48f4-3915-5b22-b5ca55328090",
                            "include": true,
                            "name": "ADP_CentOS8_BIOS",
                            "flavor": {
                                "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                "vcpus": 1,
                                "ram": 64,
                                "disk": 1,
                                "ephemeral": 0,
                                "swap": ""
                            },
                            "image_source": "",
                            "availability_zone": "nova",
                            "nics": [],
                            "use_cinder_boot_volume": true,
                            "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                            "vdisks": [{
                                "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            }]
                        },
                        {
                            "id": "5012b7bd-24cd-f2d6-6ae0-ea3279a4e5af",
                            "include": true,
                            "name": "ADP_CentOS8_UEFI",
                            "flavor": {
                                "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                "vcpus": 1,
                                "ram": 64,
                                "disk": 1,
                                "ephemeral": 0,
                                "swap": ""
                            },
                            "image_source": "82d1fe80-3e8b-47f9-99fa-48fe6dd50c83",
                            "availability_zone": "nova",
                            "nics": [],
                            "use_cinder_boot_volume": true,
                            "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                            "vdisks": [{
                                "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            },
                            {
                                "id": "6000C299-49c9-a192-02d4-8345787587b1",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            }]
                        }],
                        "if": {
                            "properties": { "include": { "const": true } }
                        },
                        "then": {
                            "required": [
                                "id",
                                "name",
                                "flavor",
                                "image_source",
                                "availability_zone",
                                "nics",
                                "use_cinder_boot_volume",
                                "glance_image_id",
                                "vdisks"
                                ]
                        },
                        "else": {
                            "required": ["id"]
                        }
                    },
                    "examples": [
                        [{
                            "id": "5012ba1a-48f4-3915-5b22-b5ca55328090",
                            "include": true,
                            "name": "ADP_CentOS8_BIOS",
                            "flavor": {
                                "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                "vcpus": 1,
                                "ram": 64,
                                "disk": 1,
                                "ephemeral": 0,
                                "swap": ""
                            },
                            "image_source": "",
                            "availability_zone": "nova",
                            "nics": [],
                            "use_cinder_boot_volume": true,
                            "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                            "vdisks": [{
                                "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            }]
                        },
                        {
                            "id": "5012b7bd-24cd-f2d6-6ae0-ea3279a4e5af",
                            "include": true,
                            "name": "ADP_CentOS8_UEFI",
                            "flavor": {
                                "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                                "vcpus": 1,
                                "ram": 64,
                                "disk": 1,
                                "ephemeral": 0,
                                "swap": ""
                            },
                            "image_source": "82d1fe80-3e8b-47f9-99fa-48fe6dd50c83",
                            "availability_zone": "nova",
                            "nics": [],
                            "use_cinder_boot_volume": true,
                            "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                            "vdisks": [{
                                "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            },
                            {
                                "id": "6000C299-49c9-a192-02d4-8345787587b1",
                                "new_volume_type": "ceph",
                                "availability_zone": "nova"
                            }]
                        }]
                    ]
                },
                "networks_mapping": {
                    "type": "object",
                    "default": {},
                    "title": "The networks_mapping Schema",
                    "required": [
                        "networks"
                    ],
                    "properties": {
                        "networks": {
                            "type": "array",
                            "default": [],
                            "title": "The networks Schema",
                            "items": {
                                "type": "object",
                                "default": {},
                                "title": "A Schema",
                                "required": [
                                    "vmware_network",
                                    "target_network"
                                ],
                                "properties": {
                                    "vmware_network": {
                                        "type": "object",
                                        "default": {},
                                        "title": "The vmware_network Schema",
                                        "required": [
                                            "id"
                                        ],
                                        "properties": {
                                            "id": {
                                                "type": "string",
                                                "default": "",
                                                "title": "The id Schema",
                                                "examples": [
                                                    "None"
                                                ]
                                            }
                                        },
                                        "examples": [{
                                            "id": "None"
                                        }]
                                    },
                                    "target_network": {
                                        "type": "object",
                                        "default": {},
                                        "title": "The target_network Schema",
                                        "required": [
                                            "id",
                                            "name",
                                            "subnet"
                                        ],
                                        "properties": {
                                            "id": {
                                                "type": "string",
                                                "default": "",
                                                "title": "The id Schema",
                                                "examples": [
                                                    "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b"
                                                ]
                                            },
                                            "name": {
                                                "type": "string",
                                                "default": "",
                                                "title": "The name Schema",
                                                "examples": [
                                                    "private"
                                                ]
                                            },
                                            "subnet": {
                                                "type": "object",
                                                "default": {},
                                                "title": "The subnet Schema",
                                                "required": [
                                                    "id"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "default": "",
                                                        "title": "The id Schema",
                                                        "examples": [
                                                            "11566605-1420-4057-a601-5bf39133b6c2"
                                                        ]
                                                    }
                                                },
                                                "examples": [{
                                                    "id": "11566605-1420-4057-a601-5bf39133b6c2"
                                                }]
                                            }
                                        },
                                        "examples": [{
                                            "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                                            "name": "private",
                                            "subnet": {
                                                "id": "11566605-1420-4057-a601-5bf39133b6c2"
                                            }
                                        }]
                                    }
                                },
                                "examples": [{
                                    "vmware_network": {
                                        "id": "None"
                                    },
                                    "target_network": {
                                        "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                                        "name": "private",
                                        "subnet": {
                                            "id": "11566605-1420-4057-a601-5bf39133b6c2"
                                        }
                                    }
                                }]
                            },
                            "examples": [
                                [{
                                    "vmware_network": {
                                        "id": "None"
                                    },
                                    "target_network": {
                                        "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                                        "name": "private",
                                        "subnet": {
                                            "id": "11566605-1420-4057-a601-5bf39133b6c2"
                                        }
                                    }
                                }]
                            ]
                        }
                    },
                    "examples": [{
                        "networks": [{
                            "vmware_network": {
                                "id": "None"
                            },
                            "target_network": {
                                "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                                "name": "private",
                                "subnet": {
                                    "id": "11566605-1420-4057-a601-5bf39133b6c2"
                                }
                            }
                        }]
                    }]
                },
                "storage_mapping": {
                    "type": "array",
                    "default": [],
                    "title": "The storage_mapping Schema",
                    "items": {
                        "type": "object",
                        "default": {},
                        "title": "A Schema",
                        "required": [
                            "vmware_datastore",
                            "storage_type"
                        ],
                        "properties": {
                            "vmware_datastore": {
                                "type": "string",
                                "default": "",
                                "title": "The vmware_datastore Schema",
                                "examples": [
                                    "datastore1_(8)"
                                ]
                            },
                            "storage_type": {
                                "type": "string",
                                "default": "",
                                "title": "The storage_type Schema",
                                "examples": [
                                    "ceph"
                                ]
                            }
                        },
                        "examples": [{
                            "vmware_datastore": "datastore1_(8)",
                            "storage_type": "ceph"
                        }]
                    },
                    "examples": [
                        [{
                            "vmware_datastore": "datastore1_(8)",
                            "storage_type": "ceph"
                        }]
                    ]
                }
            },
            "examples": [{
                "vms": [{
                    "id": "5012ba1a-48f4-3915-5b22-b5ca55328090",
                    "include": true,
                    "name": "ADP_CentOS8_BIOS",
                    "flavor": {
                        "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                        "vcpus": 1,
                        "ram": 64,
                        "disk": 1,
                        "ephemeral": 0,
                        "swap": ""
                    },
                    "image_source": "",
                    "availability_zone": "nova",
                    "nics": [],
                    "use_cinder_boot_volume": true,
                    "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                    "vdisks": [{
                        "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                        "new_volume_type": "ceph",
                        "availability_zone": "nova"
                    }]
                },
                {
                    "id": "5012b7bd-24cd-f2d6-6ae0-ea3279a4e5af",
                    "include": true,
                    "name": "ADP_CentOS8_UEFI",
                    "flavor": {
                        "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                        "vcpus": 1,
                        "ram": 64,
                        "disk": 1,
                        "ephemeral": 0,
                        "swap": ""
                    },
                    "image_source": "82d1fe80-3e8b-47f9-99fa-48fe6dd50c83",
                    "availability_zone": "nova",
                    "nics": [],
                    "use_cinder_boot_volume": true,
                    "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                    "vdisks": [{
                        "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                        "new_volume_type": "ceph",
                        "availability_zone": "nova"
                    },
                    {
                        "id": "6000C299-49c9-a192-02d4-8345787587b1",
                        "new_volume_type": "ceph",
                        "availability_zone": "nova"
                    }]
                }],
                "networks_mapping": {
                    "networks": [{
                        "vmware_network": {
                            "id": "None"
                        },
                        "target_network": {
                            "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                            "name": "private",
                            "subnet": {
                                "id": "11566605-1420-4057-a601-5bf39133b6c2"
                            }
                        }
                    }]
                },
                "storage_mapping": [{
                    "vmware_datastore": "datastore1_(8)",
                    "storage_type": "ceph"
                }]
            }]
        }
    },
    "examples": [{
        "name": "Plan",
        "description": "Description",
        "migration_type": "cold",
        "target": "openstack",
        "openstack": {
            "vms": [{
                "id": "5012ba1a-48f4-3915-5b22-b5ca55328090",
                "include": true,
                "name": "ADP_CentOS8_BIOS",
                "flavor": {
                    "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                    "vcpus": 1,
                    "ram": 64,
                    "disk": 1,
                    "ephemeral": 0,
                    "swap": ""
                },
                "image_source": "",
                "availability_zone": "nova",
                "nics": [],
                "use_cinder_boot_volume": true,
                "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                "vdisks": [{
                    "id": "6000C29f-129a-d213-1a3d-3dadb81c31a7",
                    "new_volume_type": "ceph",
                    "availability_zone": "nova"
                }]
            },
            {
                "id": "5012b7bd-24cd-f2d6-6ae0-ea3279a4e5af",
                "include": true,
                "name": "ADP_CentOS8_UEFI",
                "flavor": {
                    "id": "34c761c9-3811-48ac-a28f-bcac590712ff",
                    "vcpus": 1,
                    "ram": 64,
                    "disk": 1,
                    "ephemeral": 0,
                    "swap": ""
                },
                "image_source": "82d1fe80-3e8b-47f9-99fa-48fe6dd50c83",
                "availability_zone": "nova",
                "nics": [],
                "use_cinder_boot_volume": true,
                "glance_image_id": "72d37462-12f5-4b0d-a341-af0080c0182f",
                "vdisks": [{
                    "id": "6000C29e-c6a9-fd02-44b3-1a297cf5c705",
                    "new_volume_type": "ceph",
                    "availability_zone": "nova"
                },
                {
                    "id": "6000C299-49c9-a192-02d4-8345787587b1",
                    "new_volume_type": "ceph",
                    "availability_zone": "nova"
                }]
            }],
            "networks_mapping": {
                "networks": [{
                    "vmware_network": {
                        "id": "None"
                    },
                    "target_network": {
                        "id": "edf5caa7-4a2a-405d-9793-d32f1bdc0f9b",
                        "name": "private",
                        "subnet": {
                            "id": "11566605-1420-4057-a601-5bf39133b6c2"
                        }
                    }
                }]
            },
            "storage_mapping": [{
                "vmware_datastore": "datastore1_(8)",
                "storage_type": "ceph"
            }]
        }
    }]
}