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