hello,
i'm trying to call some vcloud api via executeRestQueriesVCloudHost. i'm using example workflow: Execute Rest Client.
for example, if i call api like this (fig1):
https://{api_host}/cloudapi/serviceItem/{id}
https://developer.vmware.com/apis/vmware-cloud-director/v37.0/cloudapi/serviceItem/id/get/
it works.
if i try (fig2):
https://{api_host}/cloudapi/serviceItem/{id}/tenants
https://developer.vmware.com/apis/vmware-cloud-director/v37.0/cloudapi/serviceItem/id/tenants/get/
it fails with error:
ERROR(com.vmware.library.vCloud.operation/executeRestQueriesVCloudHost) Error in (Dynamic Script Module name : executeRestQueriesVCloudHost#2) com.vmware.vmo.plugin.vcloud.VCloudPluginException: java.lang.ClassCastException: class org.json.simple.JSONArray cannot be cast to class org.json.simple.JSONObject (org.json.simple.JSONArray and org.json.simple.JSONObject are in unnamed module of loader ch.dunes.vso.sdk.classloader.PluginClassLoader @12e680b1)
it there something wrong with executeRestQueriesVCloudHost, or i'm doing something wrong?
m.