ConvertVmFromForeignHypervisor
ConvertVmFromForeignHypervisor
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
urlStringRequiredThe source VM instance URL.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
conversionHostUuidStringOptional. The V2V conversion host UUID.
cpuNumIntegerRequiredThe CPU count.
memorySizeLongRequiredThe memory size.
zoneUuidStringOptional. The zone UUID.
clusterUuidStringOptional. The cluster UUID.
hostUuidStringOptional. The host UUID.
primaryStorageUuidStringRequiredThe primary storage UUID.
l3NetworkUuidsListRequiredThe L3 network UUID list.
defaultL3NetworkUuidStringOptional. The UUID of the default L3 network.
platformStringOptional. The platform.
typeStringOptional. The VM instance type.
strategyStringOptional. The V2V migration strategy, which determines whether the target VM instance will be started immediately after migration.
longJobNameStringOptional. The migration job name.
longJobDescriptionStringOptional. The migration job description.
resourceUuidStringOptional. The resource UUID of the V2V migration job.
convertStrategyStringOptional.
sshPrivKeyStringOptional. The private key that is used to verify SSH login.
pauseVmbooleanOptional. Whether to pause the VM instance before migration.
volumeFiltersListOptional. The volume filter information.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/v2vs
/zstack/v1/v2vs
Request Example
curl -X POST 'http://{host}/zstack/v1/v2vs' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"url":"<url>","name":"<name>","description":"<description>","conversionHostUuid":"<conversionHostUuid>","cpuNum":1,"memorySize":1,"zoneUuid":"<zoneUuid>","clusterUuid":"<clusterUuid>","hostUuid":"<hostUuid>","primaryStorageUuid":"<primaryStorageUuid>","l3NetworkUuids":["<l3NetworkUuids>"],"defaultL3NetworkUuid":"<defaultL3NetworkUuid>","platform":"<platform>","type":"<type>","strategy":"<strategy>","longJobName":"<longJobName>","longJobDescription":"<longJobDescription>","resourceUuid":"<resourceUuid>","convertStrategy":"<convertStrategy>","sshPrivKey":"<sshPrivKey>","pauseVm":true,"volumeFilters":["<volumeFilters>"],"tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "58c143053914375e94529a5590c64f95" } }Change History
This API has no change history records yet.
