VMware Cloud Community
DanielStastka
Enthusiast
Enthusiast

vRA 8.9: blueprint expression syntax for input/url_encode (Cloud Assembly)

I try to create a user-friendly dynamic Input inside Blueprint with vRO Action (Cloud Assembly). 

  • Properties are ok, but is Unsorted
  • Array from Propiertes are OK, is sorted, but failed validation by Submit (Value x is not in list of valid values...)
  • Array are OK, is Sorted, but Querystring have Spaces or Special characters and Request failed

Now my Question, how i can insert Function "url_encode" to request of vRO Action?

I try different way and i think the Input Secion of Blueprint it's little bit static.

usr_vm_tier:
    type: string
    title: Tier
    enum:
      - Frontend
      - Backend
  usr_vm_zone:
    type: string
    $dynamicEnum: /data/vro-actions/vcac/get_NetZoneFromTier?tier={{usr_vm_tier}}
    description: Zones
    title: Zones
  usr_vm_fabric:
    type: string
    $dynamicEnum: /data/vro-actions/vcac/get_FabricFromTierAndZone?tier={{usr_vm_tier}}&zone={{usr_vm_zone}}
    description: Fabric
    title: Fabric

 

Labels (4)
0 Kudos
1 Reply
xian_
Expert
Expert

You need to mix Properties and Array of Properties to get what you wanted. See https://kuklis.github.io/cma/post/vra8-external-inputs-and-input-property-groups/

0 Kudos