Hi all,
I'm new to vRA 8.1, and I'm pretty happy of lots of things improved !
But while trying to reproduce my Blueprint and its Custom Form from vRA 7.5 to vRA 8.1, I'm struggling with something that was not difficult previously.
I need to fill a dropdown list with a REST API call from an external vRO action.
The REST Host was successfully added in vRO (this is one of the inputs for this action and it's working fine).
I need two others inputs to filter the content of the list that I'll display on form:
- environment of blueprint (easy as I added it in the inputs section of the Blueprint, I just select it in Fields)
- the group that is granted to acces only some items in the original list and here is my problem...
This group should be different for each project as projects replace Business Groups.
So I set a custom property in my project with one of the possible values, but I'm struggling retrieving this property in the custom form designer or inside my vRO external action.
In vRA 7.5, I was passing the Business Group name to my vRO external action and then used the action System.getModule("com.vmware.library.vcaccafe.subtenant").getCustomPropertyNames(subtenant) to retrieve all properties of the BG and then retrieve my property value.
But now it's just becoming a nightmare on the vRO side...
- No vRA plugin...
- No action containing the word 'project'
- API explorer not organized to list vRA capabilities
I found this action that I could use: com.vmware.library.customProperties.getCustomProperty but its input is object type and I don't see any trace of method somewhere to get my project in the API so how can achieve that ????!!
I was curious enough to find something in API and did a test using Server.getObjectsWithCustomPropertyKey(myCustomProperty) and it return an empty object :smileyangry:
Please help me I'm getting very confused :smileyconfused:
Cheers,
Tim