Execute a transient RESTOperation for a transient RESTHost
Executes a REST operation (GET, POST, PUT, DELETE, etc.), without having the operation nor the host persist in the RESTHost Inventory. The major advantage of transient REST hosts and operations is that they do not have to be configured and maintained in each and every vRO instance--just execute REST calls as needed.
Returns the response string and status code as named key-value pairs "responseString" and "statusCode", respectively.
Sign in to be able to add comments.
Comments 1
5924311252 5 years ago
Hi When i use this Code as it is, it is giving this error "Unable to create object : RESTHost : com.vmware.o11n.plugin.rest.RESTHost", My inputs : url : https://myhost/api, user: urname pwd : pass1234