Public/Set-ProtectionRule.ps1
<#
.DESCRIPTION Wrapper for Nutanix API version 0.3. .NOTES Author: Timothy Rasiah #> function Set-ProtectionRule { [CmdletBinding()] param ( $protection_rule ) $uuid = $protection_rule.metadata.uuid $data = $protection_rule $response = Send-Request -method "PUT" -endpoint "/protection_rules/$($uuid)" -data $data return $response } |