XML Request and Response Formats : VPGs API XML Request and Response Formats : VPGs API POST Method Request and Response Formats
  
VPGs API POST Method Request and Response Formats
The https://zvm_ip:port/v1/vpgs POST APIs have both request and response bodies.
Request Body Format
The following is an example request XML body for https://zvm_ip:port/v1/vpgs.
<VpgCreateDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <DatastoreIdentifier>String content</DatastoreIdentifier>
  <OrgVdcIdentifier>String content</OrgVdcIdentifier>
  <Priority>Low</Priority>
  <ResourcePoolIdentifier>String content</ResourcePoolIdentifier>
  <ServiceProfileIdentifier>String content</ServiceProfileIdentifier>
  <SourceSiteIdentifier>String content</SourceSiteIdentifier>
  <TargetSiteIdentifier>String content</TargetSiteIdentifier>
  <VcVappIdentifier>String content</VcVappIdentifier>
  <VcdVappIdentifier>String content</VcdVappIdentifier>
  <VmsIdentifiers>
    <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
    <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
  </VmsIdentifiers>~
  <VpgName>String content</VpgName>
  <ZorgIdentifier>String content</ZorgIdentifier>
</VpgCreateDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/checkpoints.
<CheckpointsDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <CheckpointName>String content</CheckpointName>
</CheckpointsDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/CloneStart.
<CloneStartDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <CheckpointIdentifier>String content</CheckpointIdentifier>
  <DatastoreIdentifier>String content</DatastoreIdentifier>
</CloneStartDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/Failover.
<FailoverDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <CheckpointIdentifier>String content</CheckpointIdentifier>
  <CommitPolicy>Commit</CommitPolicy>
  <ShutdownPolicy>None</ShutdownPolicy>
  <TimeToWaitBeforeShutdownInSec>2147483647</TimeToWaitBeforeShutdownInSec>
  <IsReverseProtection>true</IsReverseProtection>
</FailoverDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverTest.
<FailOverTestStartDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <CheckpointIdentifier>String content</CheckpointIdentifier>
</FailOverTestStartDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverTestStop.
<StopFailoverTestDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <FailoverTestSuccess>true</FailoverTestSuccess>
  <FailoverTestSummary>String content</FailoverTestSummary>
</StopFailoverTestDataApi>
The following is an example request XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverCommit.
<FailoverCommitDataApi xmlns="http://schemas.zerto.com/zvm/api">
  <IsReverseProtection>true</IsReverseProtection>
</FailoverCommitDataApi>
The request bodies for the other VPGs POST APIs, such as https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverRollback, is empty.
Response Body Format
The following is an example response XML body for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/vpgs, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/Checkpoints, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/CloneStart,
https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/Failover, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverCommit, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverRollback, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverTest, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/FailoverTestStop, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/forcesync, https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/pause, and for https://zvm_ip:port/v1/vpgs/{protectionGroupIdentifier}/resume.
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">String content</string>