Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

vRA resource action inputs

$
0
0

Hi, I have created a custom resource action to increase CPU and Memory on a virtual machine. It has input parameters as 'newCpuCount' and 'newMemorySizeInMB'. I am trying to make this call from a REST application using below data but request is failing

 

"data": {

        "provider-__ASD_PRESENTATION_INSTANCE": null,

         "newCpuCount": 2,

         "newMemorySizeInMB":8192

}

 

One or more payload literals match workflow input parameter(s) by name, but mismatch it/them by type. com.vmware.vcac.platform.content.literals.StringLiteral cannot be cast to com.vmware.vcac.platform.content.literals.NumericLiteral

 

But if I make the same by appending 'provider-' to each field, it works fine. Can someone tell me if this is required or I am doing it wrong?

 

"data": {

        "provider-__ASD_PRESENTATION_INSTANCE": null,

        "provider-newCpuCount": 2,

        "provider-newMemorySizeInMB": 8192.

    }

 

Thanks,

Rajeev


Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>