Files
ZertoApiWrapper/docs/Export-ZertoVpg.md
T
2019-03-15 12:24:33 -04:00

2.7 KiB

external help file, Module Name, online version, schema
external help file Module Name online version schema
ZertoApiWrapper-help.xml ZertoApiWrapper https://github.com/wcarroll/ZertoApiWrapper/blob/Master/docs/Export-ZertoVpg.md 2.0.0

Export-ZertoVpg

SYNOPSIS

Exports a VPG Settings Object to a JSON file. This file can be used to re-import the VPG at a later time.

SYNTAX

namedVpgs

Export-ZertoVpg -outputFolder <String> [-vpgName <String[]>] [<CommonParameters>]

allVpgs

Export-ZertoVpg -outputFolder <String> [-allVpgs] [<CommonParameters>]

DESCRIPTION

Exports a VPG Settings Object to a JSON file. This file can be used to re-import the VPG at a later time.

EXAMPLES

Example 1

PS C:> Export-ZertoVpg -outputFolder "C:\ZertoVPGs" -vpgName "My Vpg", "My Other Vpg"

Exports VPG settings for VPGs "My Vpg" and "My Other Vpg". Each settings object will be placed inside a JSON file at C:\ZertoVPGs\ with the name of the file being the name of the VPG.

Example 2

PS C:> Export-ZertoVpg -outputFolder "C:\ZertoVPGs" -allVpgs

Exports VPG settings for all Vpgs replicated to or from this site. Each settings object will be placed inside a JSON file at C:\ZertoVPGs\ with the name of the file being the name of the VPG. If a VPG is in an un-editable state, it cannot be exported.

PARAMETERS

-allVpgs

Export all VPGs at this site

Type: SwitchParameter
Parameter Sets: allVpgs
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-outputFolder

Location where to dump the resulting JSON files containing the VPG Settings

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-vpgName

Name(s) of the VPG(s) to be exported

Type: String[]
Parameter Sets: namedVpgs
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.Management.Automation.SwitchParameter

OUTPUTS

System.Object

NOTES

Zerto REST API VPG Settings End Point Documentation