Files
ZertoApiWrapper/ZertoApiWrapper/Public/Save-ZertoVpgSetting.ps1
T
2019-04-16 22:46:21 -04:00

23 lines
732 B
PowerShell

<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Save-ZertoVpgSetting {
[cmdletbinding(
SupportsShouldProcess = $true
)]
param(
[Parameter(
HelpMessage = "VpgSettings Identifier to save",
Mandatory = $true,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true
)]
[ValidateNotNullOrEmpty()]
[Alias("vpgSettingsId")]
[string]$vpgSettingsIdentifier
)
$baseUri = "vpgsettings/{0}/commit" -f $vpgSettingsIdentifier
if ($PSCmdlet.ShouldProcess("Commiting VPG Settings with Settigns identifier $vpgSettingsIdentifier")) {
Invoke-ZertoRestRequest -uri $baseUri -method "POST"
}
}