Create Function and related files

Remove-ZertoVpgSettingsIdentifier
This commit is contained in:
Wes Carroll
2019-07-08 11:59:50 -04:00
parent b2c3548d01
commit 0a2e6974f0
3 changed files with 134 additions and 0 deletions
@@ -0,0 +1,26 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Remove-ZertoVpgSettingsIdentifier {
[CmdletBinding(SupportsShouldProcess = $true)]
param (
# Settings Identifier to Remove
[Parameter(HelpMessage = "VpgSettingsIdentifier to Delete", Mandatory)]
[ValidateNotNullOrEmpty()]
[string[]]
$vpgSettingsIdentifier
)
begin {
}
process {
foreach ($id in $vpgSettingsIdentifier) {
if ($PSCmdlet.ShouldProcess($id)) {
$uri = "vpgSettings/{0}" -f $id
Invoke-ZertoRestRequest -uri $uri -method "DELETE"
}
}
}
end {
}
}