So I tested this with the Suite-API and its working fine for me...
Here is an example with AdvancedRestClient where i put the object into maintained for 5 minutes...
This is how it shows up in the GUI...
This is how it shows up in the API..
if you dont want to specify minutes... but instead a date / time... use end instead of duration like this end=497960377000
497960377000 = EPOC time in milliseconds
If you want to put it into maintenance with no duration / date&time... this means you will have to manually take it out of maintenance.. example below.
I will be automating this process with Powershell when i get some time as I will soon need this myself.
My script will allow to specify the object name instead of the ResourceID + the resourceKind (incase we have objects with duplicate names but of different types). and will convert human readable datetime for the end or allow to specify in minutes... keep and eye out for this on my blog.
I hope the examples will allow you to test this on your own environment in the mean time.
I'm running vRops 6.5 and it works for me.
I copy/pasted the content of the ps1 script into a PowerCli console and then connected to vCenter and vRops.
get-vm loginsight | Enable-OMMaintenance -MaintenanceTime 20
Name Health ResourceKind Description
---- ------ ------------ -----------
LogInsight Grey VirtualMachine
If the above does not work? Which version of PowerCli are you using ? I'm on PowerCli 6.0 R3
I have finished the script... i will post it on my blog within the next 2 days... i need to write up a post but have some commitments tonight which will prevent me from doing it sooner.
vMan, Thanks for the script, that's amazing work.
This is my first post in these forums, and it feels like forums did when I started in IT some 20 years ago, really helpful.
Thanks for the feedback and your welcome
If you don't mind answering your original question as answered with my post it might give me some "street cred" on the forums.