Zerto APIs : VPG Management API : vSphere and Hyper-V - Copy VPG Settings
  
vSphere and Hyper-V - Copy VPG Settings
Using the copyVPGSettings API, you can copy an existing VPG settings object to create a new VPG with the same settings. New VMs must be added to the copied VPG. If needed, you can additonally edit all VPG settings.
To copy VPG Settings:
1. Get a VPG Settings Identifier
2. Add Virtual Machines to the Copied VPG
3. Edit Additonal Settings
See also:
VPG Settings: GET
VPG Settings: POST
VPG Settings: PUT
VPG Settings: DELETE
Get a VPG Settings Identifier
Run this API to copy a VPG and obtain a new VPG settings identifier.
 
method
url
POST
https://zvm_ip:port/v1/vpgSettings/copyVpgSettings
 
Where:
 
zvm_ip
The IP address of the Zerto Virtual Manager where the API is run.
port
The port to access the Zerto Virtual Manager. The default port is 9669.
 
Request Body Using Json Format
Response In Json Format
Request Body Using Json Format
 
{
  "VpgIdentifier":"String content"
}
 
Parameter
Description
VpgIdentifier
The identifier of the existing VPG with the settings to copy.
 
 
Response Body Using Json Format
 
"VpgIdentifier":"String content"
 
Parameter
Description
VpgIdentifier
The identifier of the copied VPG.
To view the settings of the copied VPG, run the following API:
method
url
GET
https://zvm_ip:port/v1/vpgSettings/{VpgSettingsIdentifier}
Add Virtual Machines to the Copied VPG
Run this API to add virtual machines to the copied VPG.
method
url
PUT
https://zvm_ip:port/v1/vpgSettings/{VpgSettingsIdentifier}/vms
 
 
Where:
 
zvm_ip
The IP address of the Zerto Virtual Manager where the API is run.
port
The port to access the Zerto Virtual Manager. The default port is 9669.
 
Request Body Using Json Format
Response In Json Format
 
Request Body Using Json Format
 
  {
    "VmIdentifier": "String content"
  }
 
Parameter
Description
VMIdentifier
The identifier of the virtual machine to add to the new VPG Settings object.
Note: Once all parameters are set, commit the changes using POST commit.
https://zvm_ip:port/v1/vpgSettings/{VpgSettingsIdentifier}/commit
Response Body Using Json Format
{
  "TaskIdentifier": "String content"
}
 
Parameter
Description
TaskIdentifier
The identifier of the task.
Edit Additonal Settings
To edit addtional settings, see VPG Settings: PUT.