Files
ZertoApiWrapper/ZertoApiWrapper/Public/Save-ZertoVpgSetting.ps1
T
2020-08-04 07:53:15 -04:00

31 lines
825 B
PowerShell

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