Forum Discussion
Cole_McDonald
Professor
6 years agoThank you Joe, looks like the JSON was the part I had wrong! This worked for making the new property and populating it:
$resourcePath = "/device/devices/2332/properties/"
$url = $URLRoot + $resourcePath
$data = `
@"
{
`"type`" : `"custom`" ,
`"name`" : `"Failover.Cluster.GUID`" ,
`"value`" : `"$ClusterID`"
}]
}
"@
$response = Send-Request `
-accesskey $accessKey `
-accessid $accessId `
-URL $url `
-data $data `
-httpVerb "POST"
Related Content
- 2 months ago
- 11 months ago
- 5 months ago
- 3 days ago