Public/Set-RecoveryPlan.ps1

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


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

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