I tried to use the AddRESTHost action in com.vmware.library.http-rest.configuration module but I'm receiving this exception:
(com.vmware.library.http-rest.configuration/addRESTHost) Property or method 'uri' not found on object RESTHost
The script starts with
var host = new RESTHost(name);
host.uri = url;
That should be
host.url = url;
REST plugin version is 2.2.2.9866760 (embedded vRO).
Nice catch. I looked at the commit history of the action code and it seems this error has been there forever
I guess it wasn't detected so far just because this action is not actually used by the workflow 'Add a REST host' which is the primary way for users to register a new REST host.
Do you need an urgent fix? I can make a new build of the plug-in and upload it here later this week, or we can fix this error as part of regular bugfixing process and deliver a new plug-in build when more fixes are accumulated.
Nice catch. I looked at the commit history of the action code and it seems this error has been there forever
I guess it wasn't detected so far just because this action is not actually used by the workflow 'Add a REST host' which is the primary way for users to register a new REST host.
Do you need an urgent fix? I can make a new build of the plug-in and upload it here later this week, or we can fix this error as part of regular bugfixing process and deliver a new plug-in build when more fixes are accumulated.
No urgency thanks, I copied the script and fixed myself.
By using the action I just wanted to minimize the amount of JS in the workflow.