curl -X GET\
-H "x-zerto-session: [[apiKey]]"\
-H "Accept: application/json,application/xml,text/xml"\
"https://localhost:9669//v1/vpgs?name=&status=&subStatus=&protectedSiteType=&recoverySiteType=&protectedSiteIdentifier=&recoverySiteIdentifier=&sourceSite=&targetSite=&sourceType=&targetType=&orgName=&zorgIdentifier=&priority=&serviceProfileIdentifier=&backupEnabled="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VPGsVirtualProtectionGroupsApi;
import java.io.File;
import java.util.*;
public class VPGsVirtualProtectionGroupsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
VPGsVirtualProtectionGroupsApi apiInstance = new VPGsVirtualProtectionGroupsApi();
String name = name_example; // String | VPG name
String status = status_example; // String | VPG status
String subStatus = subStatus_example; // String | The substatus of the VPG, for example the VPG is in a bitmap sync
String protectedSiteType = protectedSiteType_example; // String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV`
String recoverySiteType = recoverySiteType_example; // String | The type of the recovery site. This filter behaves in the same way as the targetType filter
String protectedSiteIdentifier = protectedSiteIdentifier_example; // String | The identifier of the protected site
String recoverySiteIdentifier = recoverySiteIdentifier_example; // String | The identifier of the recovery site
String sourceSite = sourceSite_example; // String | Deprecated. See protectedSiteIdentifier
String targetSite = targetSite_example; // String | Deprecated. See recoverySiteIdentifier
String sourceType = sourceType_example; // String | Deprecated. See protectedSiteType
String targetType = targetType_example; // String | Deprecated. See recoverySiteType
String orgName = orgName_example; // String | The ZORG for this VPG
String zorgIdentifier = zorgIdentifier_example; // String | The internal identifier for the ZORG
String priority = priority_example; // String | The VPG priority. Related endpoint: `/v1/vpgs/priorities`
String serviceProfileIdentifier = serviceProfileIdentifier_example; // String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used
Boolean backupEnabled = true; // Boolean | Deprecated
try {
array[VpgApi] result = apiInstance.getVpgAll(name, status, subStatus, protectedSiteType, recoverySiteType, protectedSiteIdentifier, recoverySiteIdentifier, sourceSite, targetSite, sourceType, targetType, orgName, zorgIdentifier, priority, serviceProfileIdentifier, backupEnabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VPGsVirtualProtectionGroupsApi#getVpgAll");
e.printStackTrace();
}
}
}
import io.swagger.client.api.VPGsVirtualProtectionGroupsApi;
public class VPGsVirtualProtectionGroupsApiExample {
public static void main(String[] args) {
VPGsVirtualProtectionGroupsApi apiInstance = new VPGsVirtualProtectionGroupsApi();
String name = name_example; // String | VPG name
String status = status_example; // String | VPG status
String subStatus = subStatus_example; // String | The substatus of the VPG, for example the VPG is in a bitmap sync
String protectedSiteType = protectedSiteType_example; // String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV`
String recoverySiteType = recoverySiteType_example; // String | The type of the recovery site. This filter behaves in the same way as the targetType filter
String protectedSiteIdentifier = protectedSiteIdentifier_example; // String | The identifier of the protected site
String recoverySiteIdentifier = recoverySiteIdentifier_example; // String | The identifier of the recovery site
String sourceSite = sourceSite_example; // String | Deprecated. See protectedSiteIdentifier
String targetSite = targetSite_example; // String | Deprecated. See recoverySiteIdentifier
String sourceType = sourceType_example; // String | Deprecated. See protectedSiteType
String targetType = targetType_example; // String | Deprecated. See recoverySiteType
String orgName = orgName_example; // String | The ZORG for this VPG
String zorgIdentifier = zorgIdentifier_example; // String | The internal identifier for the ZORG
String priority = priority_example; // String | The VPG priority. Related endpoint: `/v1/vpgs/priorities`
String serviceProfileIdentifier = serviceProfileIdentifier_example; // String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used
Boolean backupEnabled = true; // Boolean | Deprecated
try {
array[VpgApi] result = apiInstance.getVpgAll(name, status, subStatus, protectedSiteType, recoverySiteType, protectedSiteIdentifier, recoverySiteIdentifier, sourceSite, targetSite, sourceType, targetType, orgName, zorgIdentifier, priority, serviceProfileIdentifier, backupEnabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VPGsVirtualProtectionGroupsApi#getVpgAll");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-zerto-session"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-zerto-session"];
String *name = name_example; // VPG name (optional)
String *status = status_example; // VPG status (optional)
String *subStatus = subStatus_example; // The substatus of the VPG, for example the VPG is in a bitmap sync (optional)
String *protectedSiteType = protectedSiteType_example; // The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV` (optional)
String *recoverySiteType = recoverySiteType_example; // The type of the recovery site. This filter behaves in the same way as the targetType filter (optional)
String *protectedSiteIdentifier = protectedSiteIdentifier_example; // The identifier of the protected site (optional)
String *recoverySiteIdentifier = recoverySiteIdentifier_example; // The identifier of the recovery site (optional)
String *sourceSite = sourceSite_example; // Deprecated. See protectedSiteIdentifier (optional)
String *targetSite = targetSite_example; // Deprecated. See recoverySiteIdentifier (optional)
String *sourceType = sourceType_example; // Deprecated. See protectedSiteType (optional)
String *targetType = targetType_example; // Deprecated. See recoverySiteType (optional)
String *orgName = orgName_example; // The ZORG for this VPG (optional)
String *zorgIdentifier = zorgIdentifier_example; // The internal identifier for the ZORG (optional)
String *priority = priority_example; // The VPG priority. Related endpoint: `/v1/vpgs/priorities` (optional)
String *serviceProfileIdentifier = serviceProfileIdentifier_example; // The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used (optional)
Boolean *backupEnabled = true; // Deprecated (optional)
VPGsVirtualProtectionGroupsApi *apiInstance = [[VPGsVirtualProtectionGroupsApi alloc] init];
// Get information about all VPGs. (Auth)
[apiInstance getVpgAllWith:name
status:status
subStatus:subStatus
protectedSiteType:protectedSiteType
recoverySiteType:recoverySiteType
protectedSiteIdentifier:protectedSiteIdentifier
recoverySiteIdentifier:recoverySiteIdentifier
sourceSite:sourceSite
targetSite:targetSite
sourceType:sourceType
targetType:targetType
orgName:orgName
zorgIdentifier:zorgIdentifier
priority:priority
serviceProfileIdentifier:serviceProfileIdentifier
backupEnabled:backupEnabled
completionHandler: ^(array[VpgApi] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ZvmRestApi = require('zvm_rest_api');
var defaultClient = ZvmRestApi.ApiClient.instance;
// Configure API key authorization: ApiKey
var ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix['x-zerto-session'] = "Token"
var api = new ZvmRestApi.VPGsVirtualProtectionGroupsApi()
var opts = {
'name': name_example, // {{String}} VPG name
'status': status_example, // {{String}} VPG status
'subStatus': subStatus_example, // {{String}} The substatus of the VPG, for example the VPG is in a bitmap sync
'protectedSiteType': protectedSiteType_example, // {{String}} The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV`
'recoverySiteType': recoverySiteType_example, // {{String}} The type of the recovery site. This filter behaves in the same way as the targetType filter
'protectedSiteIdentifier': protectedSiteIdentifier_example, // {{String}} The identifier of the protected site
'recoverySiteIdentifier': recoverySiteIdentifier_example, // {{String}} The identifier of the recovery site
'sourceSite': sourceSite_example, // {{String}} Deprecated. See protectedSiteIdentifier
'targetSite': targetSite_example, // {{String}} Deprecated. See recoverySiteIdentifier
'sourceType': sourceType_example, // {{String}} Deprecated. See protectedSiteType
'targetType': targetType_example, // {{String}} Deprecated. See recoverySiteType
'orgName': orgName_example, // {{String}} The ZORG for this VPG
'zorgIdentifier': zorgIdentifier_example, // {{String}} The internal identifier for the ZORG
'priority': priority_example, // {{String}} The VPG priority. Related endpoint: `/v1/vpgs/priorities`
'serviceProfileIdentifier': serviceProfileIdentifier_example, // {{String}} The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used
'backupEnabled': true // {{Boolean}} Deprecated
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getVpgAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getVpgAllExample
{
public void main()
{
// Configure API key authorization: ApiKey
Configuration.Default.ApiKey.Add("x-zerto-session", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("x-zerto-session", "Bearer");
var apiInstance = new VPGsVirtualProtectionGroupsApi();
var name = name_example; // String | VPG name (optional)
var status = status_example; // String | VPG status (optional)
var subStatus = subStatus_example; // String | The substatus of the VPG, for example the VPG is in a bitmap sync (optional)
var protectedSiteType = protectedSiteType_example; // String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV` (optional)
var recoverySiteType = recoverySiteType_example; // String | The type of the recovery site. This filter behaves in the same way as the targetType filter (optional)
var protectedSiteIdentifier = protectedSiteIdentifier_example; // String | The identifier of the protected site (optional)
var recoverySiteIdentifier = recoverySiteIdentifier_example; // String | The identifier of the recovery site (optional)
var sourceSite = sourceSite_example; // String | Deprecated. See protectedSiteIdentifier (optional)
var targetSite = targetSite_example; // String | Deprecated. See recoverySiteIdentifier (optional)
var sourceType = sourceType_example; // String | Deprecated. See protectedSiteType (optional)
var targetType = targetType_example; // String | Deprecated. See recoverySiteType (optional)
var orgName = orgName_example; // String | The ZORG for this VPG (optional)
var zorgIdentifier = zorgIdentifier_example; // String | The internal identifier for the ZORG (optional)
var priority = priority_example; // String | The VPG priority. Related endpoint: `/v1/vpgs/priorities` (optional)
var serviceProfileIdentifier = serviceProfileIdentifier_example; // String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used (optional)
var backupEnabled = true; // Boolean | Deprecated (optional)
try
{
// Get information about all VPGs. (Auth)
array[VpgApi] result = apiInstance.getVpgAll(name, status, subStatus, protectedSiteType, recoverySiteType, protectedSiteIdentifier, recoverySiteIdentifier, sourceSite, targetSite, sourceType, targetType, orgName, zorgIdentifier, priority, serviceProfileIdentifier, backupEnabled);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling VPGsVirtualProtectionGroupsApi.getVpgAll: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-zerto-session', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-zerto-session', 'Bearer');
$api_instance = new Swagger\Client\ApiVPGsVirtualProtectionGroupsApi();
$name = name_example; // String | VPG name
$status = status_example; // String | VPG status
$subStatus = subStatus_example; // String | The substatus of the VPG, for example the VPG is in a bitmap sync
$protectedSiteType = protectedSiteType_example; // String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV`
$recoverySiteType = recoverySiteType_example; // String | The type of the recovery site. This filter behaves in the same way as the targetType filter
$protectedSiteIdentifier = protectedSiteIdentifier_example; // String | The identifier of the protected site
$recoverySiteIdentifier = recoverySiteIdentifier_example; // String | The identifier of the recovery site
$sourceSite = sourceSite_example; // String | Deprecated. See protectedSiteIdentifier
$targetSite = targetSite_example; // String | Deprecated. See recoverySiteIdentifier
$sourceType = sourceType_example; // String | Deprecated. See protectedSiteType
$targetType = targetType_example; // String | Deprecated. See recoverySiteType
$orgName = orgName_example; // String | The ZORG for this VPG
$zorgIdentifier = zorgIdentifier_example; // String | The internal identifier for the ZORG
$priority = priority_example; // String | The VPG priority. Related endpoint: `/v1/vpgs/priorities`
$serviceProfileIdentifier = serviceProfileIdentifier_example; // String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used
$backupEnabled = true; // Boolean | Deprecated
try {
$result = $api_instance->getVpgAll($name, $status, $subStatus, $protectedSiteType, $recoverySiteType, $protectedSiteIdentifier, $recoverySiteIdentifier, $sourceSite, $targetSite, $sourceType, $targetType, $orgName, $zorgIdentifier, $priority, $serviceProfileIdentifier, $backupEnabled);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VPGsVirtualProtectionGroupsApi->getVpgAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::VPGsVirtualProtectionGroupsApi;
# Configure API key authorization: ApiKey
$WWW::SwaggerClient::Configuration::api_key->{'x-zerto-session'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-zerto-session'} = "Bearer";
my $api_instance = WWW::SwaggerClient::VPGsVirtualProtectionGroupsApi->new();
my $name = name_example; # String | VPG name
my $status = status_example; # String | VPG status
my $subStatus = subStatus_example; # String | The substatus of the VPG, for example the VPG is in a bitmap sync
my $protectedSiteType = protectedSiteType_example; # String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV`
my $recoverySiteType = recoverySiteType_example; # String | The type of the recovery site. This filter behaves in the same way as the targetType filter
my $protectedSiteIdentifier = protectedSiteIdentifier_example; # String | The identifier of the protected site
my $recoverySiteIdentifier = recoverySiteIdentifier_example; # String | The identifier of the recovery site
my $sourceSite = sourceSite_example; # String | Deprecated. See protectedSiteIdentifier
my $targetSite = targetSite_example; # String | Deprecated. See recoverySiteIdentifier
my $sourceType = sourceType_example; # String | Deprecated. See protectedSiteType
my $targetType = targetType_example; # String | Deprecated. See recoverySiteType
my $orgName = orgName_example; # String | The ZORG for this VPG
my $zorgIdentifier = zorgIdentifier_example; # String | The internal identifier for the ZORG
my $priority = priority_example; # String | The VPG priority. Related endpoint: `/v1/vpgs/priorities`
my $serviceProfileIdentifier = serviceProfileIdentifier_example; # String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used
my $backupEnabled = true; # Boolean | Deprecated
eval {
my $result = $api_instance->getVpgAll(name => $name, status => $status, subStatus => $subStatus, protectedSiteType => $protectedSiteType, recoverySiteType => $recoverySiteType, protectedSiteIdentifier => $protectedSiteIdentifier, recoverySiteIdentifier => $recoverySiteIdentifier, sourceSite => $sourceSite, targetSite => $targetSite, sourceType => $sourceType, targetType => $targetType, orgName => $orgName, zorgIdentifier => $zorgIdentifier, priority => $priority, serviceProfileIdentifier => $serviceProfileIdentifier, backupEnabled => $backupEnabled);
print Dumper($result);
};
if ($@) {
warn "Exception when calling VPGsVirtualProtectionGroupsApi->getVpgAll: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
swagger_client.configuration.api_key['x-zerto-session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['x-zerto-session'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.VPGsVirtualProtectionGroupsApi()
name = name_example # String | VPG name (optional)
status = status_example # String | VPG status (optional)
subStatus = subStatus_example # String | The substatus of the VPG, for example the VPG is in a bitmap sync (optional)
protectedSiteType = protectedSiteType_example # String | The protected site type. This filter behaves in the same way as the sourceType filter. Possible values are: `0 or VCVpg` | `2 or VCDvApp | `4 or HyperV` (optional)
recoverySiteType = recoverySiteType_example # String | The type of the recovery site. This filter behaves in the same way as the targetType filter (optional)
protectedSiteIdentifier = protectedSiteIdentifier_example # String | The identifier of the protected site (optional)
recoverySiteIdentifier = recoverySiteIdentifier_example # String | The identifier of the recovery site (optional)
sourceSite = sourceSite_example # String | Deprecated. See protectedSiteIdentifier (optional)
targetSite = targetSite_example # String | Deprecated. See recoverySiteIdentifier (optional)
sourceType = sourceType_example # String | Deprecated. See protectedSiteType (optional)
targetType = targetType_example # String | Deprecated. See recoverySiteType (optional)
orgName = orgName_example # String | The ZORG for this VPG (optional)
zorgIdentifier = zorgIdentifier_example # String | The internal identifier for the ZORG (optional)
priority = priority_example # String | The VPG priority. Related endpoint: `/v1/vpgs/priorities` (optional)
serviceProfileIdentifier = serviceProfileIdentifier_example # String | The identifier of the service profile to use for the VPG when a Zerto Cloud Manager is used (optional)
backupEnabled = true # Boolean | Deprecated (optional)
try:
# Get information about all VPGs. (Auth)
api_response = api_instance.get_vpg_all(name=name, status=status, subStatus=subStatus, protectedSiteType=protectedSiteType, recoverySiteType=recoverySiteType, protectedSiteIdentifier=protectedSiteIdentifier, recoverySiteIdentifier=recoverySiteIdentifier, sourceSite=sourceSite, targetSite=targetSite, sourceType=sourceType, targetType=targetType, orgName=orgName, zorgIdentifier=zorgIdentifier, priority=priority, serviceProfileIdentifier=serviceProfileIdentifier, backupEnabled=backupEnabled)
pprint(api_response)
except ApiException as e:
print("Exception when calling VPGsVirtualProtectionGroupsApi->getVpgAll: %s\n" % e)