Public/Set-NetworkSecurityRule.ps1

<#
    .DESCRIPTION
    Wrapper for Nutanix API version 0.3.
 
    .NOTES
    Author: Timothy Rasiah
#>


function Set-NetworkSecurityRule {
    [CmdletBinding()]
    param (
        $network_security_rule
    )
    
    $uuid = $network_security_rule.metadata.uuid
    $data = $network_security_rule

    $response = Send-Request -method "PUT" -endpoint "/network_security_rules/$($uuid)" -data $data
    return $response
}