Zerto APIs : Managing vCD APIs : vCD - Copy VPG Settings
  
vCD - Copy VPG Settings
Using the copyVPGSettings API, you can copy an existing VPG settings object to create a new VPG with the same settings. Once copied, new VMs must be added to the copied VPG. You can additonally edit all VPG settings, if required.
To copy VPG Settings:
1. Get a VPG Settings Identifier
2. Add Virtual Machines to the Copied VPG
3. Edit Additonal Settings
Get a VPG Settings Identifier
Run this API to get a 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
 
{
  "Protected":{
   "VCD":{
    "VCDVappIdentifier":"String content"
   }
  },
  "Vms":[
   {
    "VmIdentifier":"String content",
    "Recovery":{
     "VCD":{
     "StoragePolicyIdentifier":"String content"
     }
    }
   }
  ]
 
Parameter
Description
Protected
vCD
vCDVappIdentifier
The internal identifier of the vCD vApp.
Vms
VMIdentifier
The identifier of the virtual machine to add to the copied VPG.
Recovery
vCD
StoragePolicyIdentifier
The identifier of the storage policy.
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.