So looking at the documentation, the following is what vCNS 5.5 API guide says to do:
PUT https://<vsm manager>/api/2.1/app/excludelist/<memberID>
Where memberID is the vc‐moref‐id of a virtual machine.
I have gathered the moref-ids of multiple VMs in a variable but when I run a Invoke-RestMethod call to Put with the url with just one moref-id at the end, I get a "The remote server returned an error: (404) Not Found." from powershell. Using Postman with a Put with the same url, I get a 202 code which says "The requested object : vm-XXXX could not be found. Object identifiers are case sensitive." I have tried with multiple combinations but can't seem to get past this point.
Any help would be appreciated.
Thanks.