4 Replies Latest reply on Feb 12, 2020 10:53 PM by seplus

    Blueprint Input Array of Object

    pizzle85 Hot Shot

      How do you pass an input array of object as a property of a machine resource?

       

      inputs:
        disks:
            type: array
            title: Disks
            items:
              type: object
              properties:
                tier:
                  type: string
                  title: Tier
                  enum:
                    - Gold
                    - Silver
                    - Bronze
                size:
                  type: number
                  title: Size GB
                  minimum: 80
                  maximum: 1000
      resources:
        Cloud_vSphere_Machine_1:
          type: Cloud.vSphere.Machine
          properties:
            disks: '${input.disks}'
      

       

      Errors out with: Cannot deserialize instance of `String` out of START_ARRAY token at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.vmware.admiral.compute.content.TemplateComputeDescription["disks"])