Hi guys,
I am requesting a resource action by calling a workflow in vRO.
We call vRA library workflow: Library > vRealize Automation > Requests > Request a resource action
Input: operation (vCACCAFE:ConsumerResourceOperation), inputs (Poperties)
Our resource action takes several input fields, one of which is of type secureString (a password). We read all inputs from a JSON string and put them in a properties object to pass that in as input. After we call the above request worfklow, I can see in the logging that it breaks with a failure on casting from string to securestring.
Any help much appreciated.
Here is the logging:
[2017-03-16 08:32:12.825] [I] Accepted inputs:
[2017-03-16 08:32:12.828] [I] - description
[2017-03-16 08:32:12.830] [I] - provider-mosPassword
[2017-03-16 08:32:12.832] [I] - provider-mosUsername
[2017-03-16 08:32:12.834] [I] - provider-patchBundle
[2017-03-16 08:32:12.836] [I] - provider-toAddress
[2017-03-16 08:32:12.838] [I] - reasons
[2017-03-16 08:32:12.840] [I] Filling in resource action request...
[2017-03-16 08:32:12.843] [I] Sending resource action request...
[2017-03-16 08:32:13.793] [I] Resource action request '3216c5ac-0891-46fa-a7b8-6da780dd6c91' sent!
[2017-03-16 08:32:13.914] [I] Creating trigger for resource action request 'b9c706d0-13c2-4a6d-a0c9-5415343f255f/3216c5ac-0891-46fa-a7b8-6da780dd6c91'...
[2017-03-16 08:32:13.916] [I] Trigger created.
[2017-03-16 08:33:13.012] [I] Resource action request 'b9c706d0-13c2-4a6d-a0c9-5415343f255f/3216c5ac-0891-46fa-a7b8-6da780dd6c91' result 'PROVIDER_FAILED'.
[2017-03-16 08:33:13.047] [E] Request completion details: One or more payload literals match workflow input parameter(s) by name, but mismatch it/them by type. WorkflowRunState '4e56c753-6468-4b0f-adcc-fe64787af565', workflowId '17c0b9bf-4ba1-4f80-916c-888842022f8a'. Error 'com.vmware.vcac.platform.content.literals.StringLiteral cannot be cast to com.vmware.vcac.platform.content.literals.SecureStringLiteral'. Cause 'Cannot execute workflowId '17c0b9bf-4ba1-4f80-916c-888842022f8a' for Workflow run request '4e56c753-6468-4b0f-adcc-fe64787af565'. Error details: com.vmware.vcac.platform.content.literals.StringLiteral cannot be cast to com.vmware.vcac.platform.content.literals.SecureStringLiteral'.
[2017-03-16 08:33:13.090] [I] Error in Resource Action test
Thanks,
Ed