<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JSON code to select Groups and Clouds from a list in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248398#M1572</link>
    <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; &lt;A class="mention" href="https://community.hpe.com/u/spotts"&gt;@spotts&lt;/A&gt;  I’ve validated this JSON below using &lt;A href="http://jsonlint.com" rel="noopener nofollow ugc"&gt;jsonlint.com&lt;/A&gt; and it still doesn’t work as intended. I see no cost estimate and item doesn’t get added to cart or get executed&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150036iF1EA964BE03954A8/image-size/large?v=v2&amp;amp;px=2000" role="button" title="5667a5f6a1a202af3a50455789bab337bea9d4db.png" alt="5667a5f6a1a202af3a50455789bab337bea9d4db.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;{
  "group": {
    "id": "&amp;lt;%= customOptions.VMCGroup.tokenize('|')[0] %&amp;gt;"
  },
  "cloud": {
    "id": "&amp;lt;%= customOptions.VMCCloud.tokenize('|')[0] %&amp;gt;"
  },
  "type": "VMCWindowsServer",
  "config": {
    "createUser": true,
    "isEC2": false,
    "isVpcSelectable": true,
    "noAgent": false,
    "smbiosAssetTag": null,
    "nestedVirtualization": null,
    "hostId": null,
    "vmwareFolderId": "group-v2508",
    "resourcePoolId": 365,
    "poolProviderType": null,
    "customOptions": {
      "Application": "&amp;lt;%= customOptions.VMCApplication %&amp;gt;"
    }
  },
  "environment": "2",
  "name": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "volumes": [
    {
      "id": 8709,
      "name": "root",
      "controllerId": 162,
      "controllerMountPoint": "162:0:5:0",
      "resizeable": true,
      "rootVolume": true,
      "unitNumber": "0",
      "typeId": 1,
      "configurableIOPS": false,
      "maxStorage": 75161927680,
      "displayOrder": 0,
      "maxIOPS": null,
      "uuid": "810019ef-7afa-4fee-8224-b5abdbdfaff1",
      "virtualImageId": 22900,
      "size": 80,
      "minStorage": 75161927680,
      "vId": 22900,
      "volumeCustomizable": true,
      "readonlyName": false,
      "storageType": 1,
      "datastoreId": 95
    }
  ],
  "instance": {
    "userGroup": {
      "id": ""
    }
  },
  "hostName": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "layout": {
    "id": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[0] %&amp;gt;",
    "code": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[1] %&amp;gt;"
  },
  "plan": {
    "id": 358,
    "code": "vm-8192"
  },
  "version": "1",
  "networkInterfaces": [
    {
      "primaryInterface": true,
      "network": {
        "id": "network-33",
        "idName": "NCLH VMWare",
        "hasPool": false
      },
      "showNetworkPoolLabel": false,
      "showNetworkDhcpLabel": true
    }
  ],
  "templateParameter": null,
  "provisionType": {
    "id": 6,
    "name": "VMware",
    "description": null,
    "code": "vmware",
    "aclEnabled": false,
    "multiTenant": false,
    "managed": true,
    "hostNetwork": true,
    "customSupported": true,
    "mapPorts": false,
    "exportServer": true,
    "viewSet": null,
    "serverType": "vm",
    "hostType": "vm",
    "addVolumes": true,
    "hasVolumes": true,
    "hasDatastore": true,
    "hasNetworks": true,
    "maxNetworks": 0,
    "customizeVolume": true,
    "rootDiskCustomizable": true,
    "rootDiskSizeKnown": true,
    "rootDiskResizable": true,
    "lvmSupported": true,
    "hostDiskMode": "lvm",
    "minDisk": 1,
    "maxDisk": null,
    "resizeCopiesVolumes": false,
    "supportsAutoDatastore": true,
    "hasZonePools": true,
    "hasSecurityGroups": false,
    "hasParameters": false,
    "canEnforceTags": true,
    "disableRootDatastore": false,
    "hasSnapshots": true,
    "hasSpecTemplates": false,
    "hasPreview": false,
    "hasState": false,
    "hasRefresh": false,
    "zonePoolRequired": true,
    "planRequiresPool": false,
    "hasFolders": true,
    "optionTypes": [
      {
        "id": 155,
        "name": "skip agent install",
        "description": null,
        "code": "provisionType.general.noAgent",
        "fieldName": "noAgent",
        "fieldLabel": "Skip Agent Install",
        "fieldCode": "gomorpheus.optiontype.SkipAgentInstall",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Skipping Agent installation will result in a lack of logging and guest operating system statistics. Automation scripts may also be adversely affected.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 288,
        "name": "asset tag",
        "description": null,
        "code": "provisionType.vmware.smbiosAssetTag",
        "fieldName": "smbiosAssetTag",
        "fieldLabel": "Asset Tag",
        "fieldCode": "gomorpheus.optiontype.AssetTag",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Sets the asset tag on the SMBIOS for use by the guest operating system. If left blank, the virtual machine name will be used.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 287,
        "name": "enable nested virtualization",
        "description": null,
        "code": "provisionType.vmware.custom.nestedVirtualization",
        "fieldName": "nestedVirtualization",
        "fieldLabel": "Enable Nested Virtualization",
        "fieldCode": "gomorpheus.optiontype.EnableNestedVirtualization",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": true,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 277,
        "name": "network domain",
        "description": null,
        "code": "provisionType.vmware.networkDomain",
        "fieldName": "id",
        "fieldLabel": "Network Domain",
        "fieldCode": "gomorpheus.optiontype.NetworkDomain",
        "fieldContext": "instance.networkDomain",
        "fieldGroup": "Advanced",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "networkDomains",
        "optionSourceType": null,
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 268,
        "name": "host",
        "description": null,
        "code": "provisionType.vmware.host",
        "fieldName": "hostId",
        "fieldLabel": "Host",
        "fieldCode": "gomorpheus.optiontype.Host",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareHost",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 102,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 272,
        "name": "vmwareFolderId",
        "description": null,
        "code": "provisionType.vmware.folder",
        "fieldName": "vmwareFolderId",
        "fieldLabel": "Folder",
        "fieldCode": "gomorpheus.optiontype.Folder",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareFolders",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 106,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": true,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "customOptionTypes": [
      {
        "id": 285,
        "name": "server type",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.serverType",
        "fieldName": "serverType",
        "fieldLabel": "Server Type",
        "fieldCode": "gomorpheus.optiontype.ServerType",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vm",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 8,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 278,
        "name": "virtual image",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.virtualImageId",
        "fieldName": "virtualImageId",
        "fieldLabel": "Virtual Image",
        "fieldCode": "gomorpheus.optiontype.VirtualImage",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareVirtualImages",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": true,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 1,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 281,
        "name": "mount data",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountData",
        "fieldName": "mountData",
        "fieldLabel": "Deploy Folder",
        "fieldCode": "gomorpheus.optiontype.DeployFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "(Optional) If using deployment services, this mount point will be replaced with the contents of said deployments.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 283,
        "name": "stat type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.statTypeCode",
        "fieldName": "statTypeCode",
        "fieldLabel": "Stat Type Code",
        "fieldCode": "gomorpheus.optiontype.StatTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 279,
        "name": "mount logs",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountLogs",
        "fieldName": "mountLogs",
        "fieldLabel": "Log Folder",
        "fieldCode": "gomorpheus.optiontype.LogFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 2,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 282,
        "name": "backup type",
        "description": null,
        "code": "provisionType.vmware.custom.instanceType.backupType",
        "fieldName": "backupType",
        "fieldLabel": "Backup Type",
        "fieldCode": "gomorpheus.optiontype.BackupType",
        "fieldContext": "instanceType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmwareSnapshot",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 5,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 280,
        "name": "mount config",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountConfig",
        "fieldName": "mountConfig",
        "fieldLabel": "Config Folder",
        "fieldCode": "gomorpheus.optiontype.ConfigFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 3,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 284,
        "name": "log type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.logTypeCode",
        "fieldName": "logTypeCode",
        "fieldLabel": "Log Type Code",
        "fieldCode": "gomorpheus.optiontype.LogTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 7,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 286,
        "name": "layout description",
        "description": null,
        "code": "provisionType.vmware.custom.instanceTypeLayout.description",
        "fieldName": "description",
        "fieldLabel": "Layout Description",
        "fieldCode": "gomorpheus.optiontype.LayoutDescription",
        "fieldContext": "instanceTypeLayout",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "This will provision a single vm container",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "networkTypes": [
      {
        "id": 3,
        "name": "VMXNET 2",
        "displayOrder": 2,
        "enabled": true,
        "defaultType": false,
        "externalId": "vmxNet2",
        "code": "vmxNet2"
      },
      {
        "id": 4,
        "name": "VMXNET 3",
        "displayOrder": 1,
        "enabled": true,
        "defaultType": true,
        "externalId": "vmxNet3",
        "code": "vmxNet3"
      },
      {
        "id": 2,
        "name": "E1000",
        "displayOrder": 3,
        "enabled": true,
        "defaultType": false,
        "externalId": "e1000",
        "code": "e1000"
      }
    ],
    "storageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "rootStorageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "controllerTypes": [
      {
        "id": 5,
        "name": "SCSI LSI Logic SAS",
        "displayOrder": 4,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 3,
        "name": "SCSI BusLogic Parallel",
        "displayOrder": 2,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 6,
        "name": "SCSI VMware Paravirtual",
        "displayOrder": 5,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 4,
        "name": "SCSI LSI Logic Parallel",
        "displayOrder": 3,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 2,
        "name": "IDE",
        "displayOrder": 1,
        "category": "ide",
        "enabled": true,
        "creatable": false,
        "maxDevices": 2
      }
    ]
  },
  "executionId": "6be0c2b3-66ac-461f-bb5b-700f8658cf36",
  "backup": {
    "createBackup": false,
    "jobAction": "new",
    "jobRetentionCount": 3,
    "veeamManagedServer": ""
  },
  "loadBalancer": [],
  "hideLock": true,
  "workflow": {
    "taskSetId": ""
  },
  "hasNetworks": true,
  "displayNetworks": [
    {
      "name": "NCLH VMWare",
      "ipMode": "Default",
      "usePool": false,
      "dhcpServer": true
    }
  ],
  "copies": 1,
  "showScale": false,
  "hasPreview": false,
  "volumesDisplay": [
    {
      "storage": "",
      "name": "root",
      "controller": "SCSI",
      "datastore": "WorkloadDatastore",
      "displayOrder": 0,
      "size": 80,
      "mountPoint": "0"
    }
  ]
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Jul 2022 04:58:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-07-27T04:58:50Z</dc:date>
    <item>
      <title>JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248396#M1570</link>
      <description>&lt;P&gt;The JSON code we’re using for our Self-Service catalog item isn’t working as intended. We’d like to get to a point where the Catalog would display a listing of Groups and Clouds to have the end-user choose their options so they can get a Windows/Linux machine created. We get a message saying ‘Incomplete Configuration’ using this code below. Could one of you please check what we have wrong here. Thank you.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;{
  "group": {
    "id": "&amp;lt;%= customOptions.VMCGroup.tokenize('|')[0] %&amp;gt;",
  },
  "cloud": {
    "id": "&amp;lt;%= customOptions.VMCCloud.tokenize('|')[0] %&amp;gt;",
  },
  "type": "VMCWindowsServer",
  "config": {
    "createUser": true,
    "isEC2": false,
    "isVpcSelectable": true,
    "noAgent": false,
    "smbiosAssetTag": null,
    "nestedVirtualization": null,
    "hostId": null,
    "vmwareFolderId": "group-v2508",
    "resourcePoolId": 365,
    "poolProviderType": null,
    "customOptions": {
      "Application": "&amp;lt;%= {customOptions.VMCApplication} %&amp;gt;"
  }
  },
  "environment": "2",
  "name": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "volumes": [
    {
      "id": 8709,
      "name": "root",
      "controllerId": 162,
      "controllerMountPoint": "162:0:5:0",
      "resizeable": true,
      "rootVolume": true,
      "unitNumber": "0",
      "typeId": 1,
      "configurableIOPS": false,
      "maxStorage": 75161927680,
      "displayOrder": 0,
      "maxIOPS": null,
      "uuid": "810019ef-7afa-4fee-8224-b5abdbdfaff1",
      "virtualImageId": 22900,
      "size": 80,
      "minStorage": 75161927680,
      "vId": 22900,
      "volumeCustomizable": true,
      "readonlyName": false,
      "storageType": 1,
      "datastoreId": 95
    }
  ],
  "instance": {
    "userGroup": {
      "id": ""
    }
  },
  "hostName": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "layout": {
      "id": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[0] %&amp;gt;",
      "code": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[1] %&amp;gt;"
  },
  "plan": {
    "id": 358,
    "code": "vm-8192"
  },
  "version": "1",
  "networkInterfaces": [
    {
      "primaryInterface": true,
      "network": {
        "id": "network-33",
        "idName": "NCLH VMWare",
        "hasPool": false
      },
      "showNetworkPoolLabel": false,
      "showNetworkDhcpLabel": true
    }
  ],
  "templateParameter": null,
  "provisionType": {
    "id": 6,
    "name": "VMware",
    "description": null,
    "code": "vmware",
    "aclEnabled": false,
    "multiTenant": false,
    "managed": true,
    "hostNetwork": true,
    "customSupported": true,
    "mapPorts": false,
    "exportServer": true,
    "viewSet": null,
    "serverType": "vm",
    "hostType": "vm",
    "addVolumes": true,
    "hasVolumes": true,
    "hasDatastore": true,
    "hasNetworks": true,
    "maxNetworks": 0,
    "customizeVolume": true,
    "rootDiskCustomizable": true,
    "rootDiskSizeKnown": true,
    "rootDiskResizable": true,
    "lvmSupported": true,
    "hostDiskMode": "lvm",
    "minDisk": 1,
    "maxDisk": null,
    "resizeCopiesVolumes": false,
    "supportsAutoDatastore": true,
    "hasZonePools": true,
    "hasSecurityGroups": false,
    "hasParameters": false,
    "canEnforceTags": true,
    "disableRootDatastore": false,
    "hasSnapshots": true,
    "hasSpecTemplates": false,
    "hasPreview": false,
    "hasState": false,
    "hasRefresh": false,
    "zonePoolRequired": true,
    "planRequiresPool": false,
    "hasFolders": true,
    "optionTypes": [
      {
        "id": 155,
        "name": "skip agent install",
        "description": null,
        "code": "provisionType.general.noAgent",
        "fieldName": "noAgent",
        "fieldLabel": "Skip Agent Install",
        "fieldCode": "gomorpheus.optiontype.SkipAgentInstall",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Skipping Agent installation will result in a lack of logging and guest operating system statistics. Automation scripts may also be adversely affected.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 288,
        "name": "asset tag",
        "description": null,
        "code": "provisionType.vmware.smbiosAssetTag",
        "fieldName": "smbiosAssetTag",
        "fieldLabel": "Asset Tag",
        "fieldCode": "gomorpheus.optiontype.AssetTag",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Sets the asset tag on the SMBIOS for use by the guest operating system. If left blank, the virtual machine name will be used.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 287,
        "name": "enable nested virtualization",
        "description": null,
        "code": "provisionType.vmware.custom.nestedVirtualization",
        "fieldName": "nestedVirtualization",
        "fieldLabel": "Enable Nested Virtualization",
        "fieldCode": "gomorpheus.optiontype.EnableNestedVirtualization",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": true,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 277,
        "name": "network domain",
        "description": null,
        "code": "provisionType.vmware.networkDomain",
        "fieldName": "id",
        "fieldLabel": "Network Domain",
        "fieldCode": "gomorpheus.optiontype.NetworkDomain",
        "fieldContext": "instance.networkDomain",
        "fieldGroup": "Advanced",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "networkDomains",
        "optionSourceType": null,
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 268,
        "name": "host",
        "description": null,
        "code": "provisionType.vmware.host",
        "fieldName": "hostId",
        "fieldLabel": "Host",
        "fieldCode": "gomorpheus.optiontype.Host",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareHost",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 102,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 272,
        "name": "vmwareFolderId",
        "description": null,
        "code": "provisionType.vmware.folder",
        "fieldName": "vmwareFolderId",
        "fieldLabel": "Folder",
        "fieldCode": "gomorpheus.optiontype.Folder",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareFolders",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 106,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": true,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "customOptionTypes": [
      {
        "id": 285,
        "name": "server type",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.serverType",
        "fieldName": "serverType",
        "fieldLabel": "Server Type",
        "fieldCode": "gomorpheus.optiontype.ServerType",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vm",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 8,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 278,
        "name": "virtual image",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.virtualImageId",
        "fieldName": "virtualImageId",
        "fieldLabel": "Virtual Image",
        "fieldCode": "gomorpheus.optiontype.VirtualImage",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareVirtualImages",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": true,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 1,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 281,
        "name": "mount data",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountData",
        "fieldName": "mountData",
        "fieldLabel": "Deploy Folder",
        "fieldCode": "gomorpheus.optiontype.DeployFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "(Optional) If using deployment services, this mount point will be replaced with the contents of said deployments.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 283,
        "name": "stat type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.statTypeCode",
        "fieldName": "statTypeCode",
        "fieldLabel": "Stat Type Code",
        "fieldCode": "gomorpheus.optiontype.StatTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 279,
        "name": "mount logs",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountLogs",
        "fieldName": "mountLogs",
        "fieldLabel": "Log Folder",
        "fieldCode": "gomorpheus.optiontype.LogFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 2,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 282,
        "name": "backup type",
        "description": null,
        "code": "provisionType.vmware.custom.instanceType.backupType",
        "fieldName": "backupType",
        "fieldLabel": "Backup Type",
        "fieldCode": "gomorpheus.optiontype.BackupType",
        "fieldContext": "instanceType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmwareSnapshot",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 5,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 280,
        "name": "mount config",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountConfig",
        "fieldName": "mountConfig",
        "fieldLabel": "Config Folder",
        "fieldCode": "gomorpheus.optiontype.ConfigFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 3,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 284,
        "name": "log type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.logTypeCode",
        "fieldName": "logTypeCode",
        "fieldLabel": "Log Type Code",
        "fieldCode": "gomorpheus.optiontype.LogTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 7,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 286,
        "name": "layout description",
        "description": null,
        "code": "provisionType.vmware.custom.instanceTypeLayout.description",
        "fieldName": "description",
        "fieldLabel": "Layout Description",
        "fieldCode": "gomorpheus.optiontype.LayoutDescription",
        "fieldContext": "instanceTypeLayout",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "This will provision a single vm container",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "networkTypes": [
      {
        "id": 3,
        "name": "VMXNET 2",
        "displayOrder": 2,
        "enabled": true,
        "defaultType": false,
        "externalId": "vmxNet2",
        "code": "vmxNet2"
      },
      {
        "id": 4,
        "name": "VMXNET 3",
        "displayOrder": 1,
        "enabled": true,
        "defaultType": true,
        "externalId": "vmxNet3",
        "code": "vmxNet3"
      },
      {
        "id": 2,
        "name": "E1000",
        "displayOrder": 3,
        "enabled": true,
        "defaultType": false,
        "externalId": "e1000",
        "code": "e1000"
      }
    ],
    "storageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "rootStorageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "controllerTypes": [
      {
        "id": 5,
        "name": "SCSI LSI Logic SAS",
        "displayOrder": 4,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 3,
        "name": "SCSI BusLogic Parallel",
        "displayOrder": 2,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 6,
        "name": "SCSI VMware Paravirtual",
        "displayOrder": 5,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 4,
        "name": "SCSI LSI Logic Parallel",
        "displayOrder": 3,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 2,
        "name": "IDE",
        "displayOrder": 1,
        "category": "ide",
        "enabled": true,
        "creatable": false,
        "maxDevices": 2
      }
      
    ]
  },
  "executionId": "6be0c2b3-66ac-461f-bb5b-700f8658cf36",
  "backup": {
    "createBackup": false,
    "jobAction": "new",
    "jobRetentionCount": 3,
    "veeamManagedServer": ""
  },
  "loadBalancer": [],
  "hideLock": true,
  "workflow": {
    "taskSetId": ""
  },
  "hasNetworks": true,
  "displayNetworks": [
    {
      "name": "NCLH VMWare",
      "ipMode": "Default",
      "usePool": false,
      "dhcpServer": true
    }
  ],
  "copies": 1,
  "showScale": false,
  "hasPreview": false,
  "volumesDisplay": [
    {
      "storage": "",
      "name": "root",
      "controller": "SCSI",
      "datastore": "WorkloadDatastore",
      "displayOrder": 0,
      "size": 80,
      "mountPoint": "0"
    }
  ]
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 17:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248396#M1570</guid>
      <dc:creator />
      <dc:date>2022-07-18T17:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248397#M1571</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/vgu"&gt;@vgu&lt;/A&gt;  you still have bad json.  If you look at group and cloud you end both lines with a comma:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149845iE5BA27DD216E484E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="8906f288638a7ed6e5c7f6bd693570bf31f48e8f.png" alt="8906f288638a7ed6e5c7f6bd693570bf31f48e8f.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it may be helpful running it through a json verification site.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 20:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248397#M1571</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2022-07-19T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248398#M1572</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; &lt;A class="mention" href="https://community.hpe.com/u/spotts"&gt;@spotts&lt;/A&gt;  I’ve validated this JSON below using &lt;A href="http://jsonlint.com" rel="noopener nofollow ugc"&gt;jsonlint.com&lt;/A&gt; and it still doesn’t work as intended. I see no cost estimate and item doesn’t get added to cart or get executed&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150036iF1EA964BE03954A8/image-size/large?v=v2&amp;amp;px=2000" role="button" title="5667a5f6a1a202af3a50455789bab337bea9d4db.png" alt="5667a5f6a1a202af3a50455789bab337bea9d4db.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;{
  "group": {
    "id": "&amp;lt;%= customOptions.VMCGroup.tokenize('|')[0] %&amp;gt;"
  },
  "cloud": {
    "id": "&amp;lt;%= customOptions.VMCCloud.tokenize('|')[0] %&amp;gt;"
  },
  "type": "VMCWindowsServer",
  "config": {
    "createUser": true,
    "isEC2": false,
    "isVpcSelectable": true,
    "noAgent": false,
    "smbiosAssetTag": null,
    "nestedVirtualization": null,
    "hostId": null,
    "vmwareFolderId": "group-v2508",
    "resourcePoolId": 365,
    "poolProviderType": null,
    "customOptions": {
      "Application": "&amp;lt;%= customOptions.VMCApplication %&amp;gt;"
    }
  },
  "environment": "2",
  "name": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "volumes": [
    {
      "id": 8709,
      "name": "root",
      "controllerId": 162,
      "controllerMountPoint": "162:0:5:0",
      "resizeable": true,
      "rootVolume": true,
      "unitNumber": "0",
      "typeId": 1,
      "configurableIOPS": false,
      "maxStorage": 75161927680,
      "displayOrder": 0,
      "maxIOPS": null,
      "uuid": "810019ef-7afa-4fee-8224-b5abdbdfaff1",
      "virtualImageId": 22900,
      "size": 80,
      "minStorage": 75161927680,
      "vId": 22900,
      "volumeCustomizable": true,
      "readonlyName": false,
      "storageType": 1,
      "datastoreId": 95
    }
  ],
  "instance": {
    "userGroup": {
      "id": ""
    }
  },
  "hostName": "AWSVMC${customOptions.VMCApplication}${sequence.toString().padLeft(2,'0')}${platform == 'windows' ? 'W' : 'L'}",
  "layout": {
    "id": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[0] %&amp;gt;",
    "code": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[1] %&amp;gt;"
  },
  "plan": {
    "id": 358,
    "code": "vm-8192"
  },
  "version": "1",
  "networkInterfaces": [
    {
      "primaryInterface": true,
      "network": {
        "id": "network-33",
        "idName": "NCLH VMWare",
        "hasPool": false
      },
      "showNetworkPoolLabel": false,
      "showNetworkDhcpLabel": true
    }
  ],
  "templateParameter": null,
  "provisionType": {
    "id": 6,
    "name": "VMware",
    "description": null,
    "code": "vmware",
    "aclEnabled": false,
    "multiTenant": false,
    "managed": true,
    "hostNetwork": true,
    "customSupported": true,
    "mapPorts": false,
    "exportServer": true,
    "viewSet": null,
    "serverType": "vm",
    "hostType": "vm",
    "addVolumes": true,
    "hasVolumes": true,
    "hasDatastore": true,
    "hasNetworks": true,
    "maxNetworks": 0,
    "customizeVolume": true,
    "rootDiskCustomizable": true,
    "rootDiskSizeKnown": true,
    "rootDiskResizable": true,
    "lvmSupported": true,
    "hostDiskMode": "lvm",
    "minDisk": 1,
    "maxDisk": null,
    "resizeCopiesVolumes": false,
    "supportsAutoDatastore": true,
    "hasZonePools": true,
    "hasSecurityGroups": false,
    "hasParameters": false,
    "canEnforceTags": true,
    "disableRootDatastore": false,
    "hasSnapshots": true,
    "hasSpecTemplates": false,
    "hasPreview": false,
    "hasState": false,
    "hasRefresh": false,
    "zonePoolRequired": true,
    "planRequiresPool": false,
    "hasFolders": true,
    "optionTypes": [
      {
        "id": 155,
        "name": "skip agent install",
        "description": null,
        "code": "provisionType.general.noAgent",
        "fieldName": "noAgent",
        "fieldLabel": "Skip Agent Install",
        "fieldCode": "gomorpheus.optiontype.SkipAgentInstall",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Skipping Agent installation will result in a lack of logging and guest operating system statistics. Automation scripts may also be adversely affected.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 288,
        "name": "asset tag",
        "description": null,
        "code": "provisionType.vmware.smbiosAssetTag",
        "fieldName": "smbiosAssetTag",
        "fieldLabel": "Asset Tag",
        "fieldCode": "gomorpheus.optiontype.AssetTag",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "Sets the asset tag on the SMBIOS for use by the guest operating system. If left blank, the virtual machine name will be used.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 287,
        "name": "enable nested virtualization",
        "description": null,
        "code": "provisionType.vmware.custom.nestedVirtualization",
        "fieldName": "nestedVirtualization",
        "fieldLabel": "Enable Nested Virtualization",
        "fieldCode": "gomorpheus.optiontype.EnableNestedVirtualization",
        "fieldContext": "config",
        "fieldGroup": "Advanced Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "checkbox",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": true,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 277,
        "name": "network domain",
        "description": null,
        "code": "provisionType.vmware.networkDomain",
        "fieldName": "id",
        "fieldLabel": "Network Domain",
        "fieldCode": "gomorpheus.optiontype.NetworkDomain",
        "fieldContext": "instance.networkDomain",
        "fieldGroup": "Advanced",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "networkDomains",
        "optionSourceType": null,
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 268,
        "name": "host",
        "description": null,
        "code": "provisionType.vmware.host",
        "fieldName": "hostId",
        "fieldLabel": "Host",
        "fieldCode": "gomorpheus.optiontype.Host",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareHost",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 102,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 272,
        "name": "vmwareFolderId",
        "description": null,
        "code": "provisionType.vmware.folder",
        "fieldName": "vmwareFolderId",
        "fieldLabel": "Folder",
        "fieldCode": "gomorpheus.optiontype.Folder",
        "fieldContext": "config",
        "fieldGroup": "Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareFolders",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 106,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": true,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "customOptionTypes": [
      {
        "id": 285,
        "name": "server type",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.serverType",
        "fieldName": "serverType",
        "fieldLabel": "Server Type",
        "fieldCode": "gomorpheus.optiontype.ServerType",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vm",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 8,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 278,
        "name": "virtual image",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.virtualImageId",
        "fieldName": "virtualImageId",
        "fieldLabel": "Virtual Image",
        "fieldCode": "gomorpheus.optiontype.VirtualImage",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": "vmwareVirtualImages",
        "optionSourceType": "vmware",
        "optionList": null,
        "type": "select",
        "advanced": false,
        "required": true,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 1,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 281,
        "name": "mount data",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountData",
        "fieldName": "mountData",
        "fieldLabel": "Deploy Folder",
        "fieldCode": "gomorpheus.optiontype.DeployFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "(Optional) If using deployment services, this mount point will be replaced with the contents of said deployments.",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 4,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 283,
        "name": "stat type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.statTypeCode",
        "fieldName": "statTypeCode",
        "fieldLabel": "Stat Type Code",
        "fieldCode": "gomorpheus.optiontype.StatTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 6,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 279,
        "name": "mount logs",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountLogs",
        "fieldName": "mountLogs",
        "fieldLabel": "Log Folder",
        "fieldCode": "gomorpheus.optiontype.LogFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 2,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 282,
        "name": "backup type",
        "description": null,
        "code": "provisionType.vmware.custom.instanceType.backupType",
        "fieldName": "backupType",
        "fieldLabel": "Backup Type",
        "fieldCode": "gomorpheus.optiontype.BackupType",
        "fieldContext": "instanceType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmwareSnapshot",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 5,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 280,
        "name": "mount config",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.mountConfig",
        "fieldName": "mountConfig",
        "fieldLabel": "Config Folder",
        "fieldCode": "gomorpheus.optiontype.ConfigFolder",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": null,
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "text",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 3,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 284,
        "name": "log type code",
        "description": null,
        "code": "provisionType.vmware.custom.containerType.logTypeCode",
        "fieldName": "logTypeCode",
        "fieldLabel": "Log Type Code",
        "fieldCode": "gomorpheus.optiontype.LogTypeCode",
        "fieldContext": "containerType",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "vmware",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 7,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      },
      {
        "id": 286,
        "name": "layout description",
        "description": null,
        "code": "provisionType.vmware.custom.instanceTypeLayout.description",
        "fieldName": "description",
        "fieldLabel": "Layout Description",
        "fieldCode": "gomorpheus.optiontype.LayoutDescription",
        "fieldContext": "instanceTypeLayout",
        "fieldGroup": "VMware VM Options",
        "fieldClass": null,
        "fieldAddOn": null,
        "fieldComponent": null,
        "fieldInput": null,
        "placeHolder": null,
        "verifyPattern": null,
        "helpBlock": "",
        "helpBlockFieldCode": null,
        "defaultValue": "This will provision a single vm container",
        "optionSource": null,
        "optionSourceType": null,
        "optionList": null,
        "type": "hidden",
        "advanced": false,
        "required": false,
        "exportMeta": false,
        "editable": false,
        "creatable": true,
        "config": {},
        "displayOrder": 9,
        "wrapperClass": null,
        "enabled": true,
        "noBlank": false,
        "dependsOnCode": null,
        "visibleOnCode": null,
        "requireOnCode": null,
        "contextualDefault": false,
        "displayValueOnDetails": false,
        "showOnCreate": true,
        "showOnEdit": true
      }
    ],
    "networkTypes": [
      {
        "id": 3,
        "name": "VMXNET 2",
        "displayOrder": 2,
        "enabled": true,
        "defaultType": false,
        "externalId": "vmxNet2",
        "code": "vmxNet2"
      },
      {
        "id": 4,
        "name": "VMXNET 3",
        "displayOrder": 1,
        "enabled": true,
        "defaultType": true,
        "externalId": "vmxNet3",
        "code": "vmxNet3"
      },
      {
        "id": 2,
        "name": "E1000",
        "displayOrder": 3,
        "enabled": true,
        "defaultType": false,
        "externalId": "e1000",
        "code": "e1000"
      }
    ],
    "storageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "rootStorageTypes": [
      {
        "id": 1,
        "code": "standard",
        "name": "Disk",
        "displayOrder": 1,
        "defaultType": true,
        "customLabel": true,
        "customSize": true,
        "customSizeOptions": null
      }
    ],
    "controllerTypes": [
      {
        "id": 5,
        "name": "SCSI LSI Logic SAS",
        "displayOrder": 4,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 3,
        "name": "SCSI BusLogic Parallel",
        "displayOrder": 2,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 6,
        "name": "SCSI VMware Paravirtual",
        "displayOrder": 5,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 4,
        "name": "SCSI LSI Logic Parallel",
        "displayOrder": 3,
        "category": "scsi",
        "enabled": true,
        "creatable": true,
        "maxDevices": 15
      },
      {
        "id": 2,
        "name": "IDE",
        "displayOrder": 1,
        "category": "ide",
        "enabled": true,
        "creatable": false,
        "maxDevices": 2
      }
    ]
  },
  "executionId": "6be0c2b3-66ac-461f-bb5b-700f8658cf36",
  "backup": {
    "createBackup": false,
    "jobAction": "new",
    "jobRetentionCount": 3,
    "veeamManagedServer": ""
  },
  "loadBalancer": [],
  "hideLock": true,
  "workflow": {
    "taskSetId": ""
  },
  "hasNetworks": true,
  "displayNetworks": [
    {
      "name": "NCLH VMWare",
      "ipMode": "Default",
      "usePool": false,
      "dhcpServer": true
    }
  ],
  "copies": 1,
  "showScale": false,
  "hasPreview": false,
  "volumesDisplay": [
    {
      "storage": "",
      "name": "root",
      "controller": "SCSI",
      "datastore": "WorkloadDatastore",
      "displayOrder": 0,
      "size": 80,
      "mountPoint": "0"
    }
  ]
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 04:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248398#M1572</guid>
      <dc:creator />
      <dc:date>2022-07-27T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248399#M1573</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/vgu"&gt;@vgu&lt;/A&gt;, this looks like the output of a GET api call of a catalog item. Was this created from the catalog builder or was this a copy/paste of the GET?&lt;/P&gt;
&lt;P&gt;In your config block, (line 9 -23) you can see your customOptions block has one option type called Application.&lt;BR /&gt;
On line 122, you have a block called optionTypes (block 122 -369) which would only be available from a GET API call and would not be used as a part of a catalog item configuration.&lt;/P&gt;
&lt;P&gt;The same goes for the customOptionTypes block (lines 370 - 740)&lt;/P&gt;
&lt;P&gt;Can you try building this catalog item via the builder in the UI and let me know if you are still having the same issue?&lt;/P&gt;
&lt;P&gt;Below is what the config block would look like with multiple custom options&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt; "config": {
    "createUser": true,
    "isEC2": "false",
    "isVpcSelectable": true,
    "noAgent": true,
    "availabilityId": null,
    "securityId": null,
    "publicIpType": "subnet",
    "instanceProfile": null,
    "kmsKeyId": null,
    "customOptions": {
      "PaymentMethodsRadioButtons": " Meatballs",
      "filteredlayoutchoice": 1044
    },
    "resourcePoolId": 3,
    "poolProviderType": null
  },
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2022 05:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248399#M1573</guid>
      <dc:creator />
      <dc:date>2022-07-28T05:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248400#M1574</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/sjabro"&gt;@sjabro&lt;/A&gt; Hello. I’ve edited the following lines and see error below. Do you see additional entries where the change needs to be made ?&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE style="background : #f0f1f2;"&gt;"customOptions": {
  "Application": "&amp;lt;%= customOptions.VMCApplication %&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Validation Error: No signature of method: com.morpheus.ComputeSite.findByAccountAndId() is applicable for argument types: (com.bertramlabs.plugins.Account, String) values: [NCLH-DEV, &amp;lt;%= customOptions.VMCGroup.tokenize(‘|’)[0] %&amp;gt;] Possible solutions: findByAccountAndId([Ljava.lang.Object;)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248400#M1574</guid>
      <dc:creator />
      <dc:date>2022-07-19T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248401#M1575</link>
      <description>&lt;P&gt;I agree with &lt;A class="mention" href="https://community.hpe.com/u/sjabro"&gt;@sjabro&lt;/A&gt; that this json block could be helped by using the builder.&lt;/P&gt;
&lt;P&gt;I also have seen errors like “Validation Error: No signature of method: … possible solutions: findByAccountAndId([Ljava.lang.Object;)” when I am using an option list value incorrectly. So perhaps trying to tokenize by a “|” and grabbing the second element with “[1]” but there is no second element. Or I see it when putting a value in a place it doesn’t belong, like an environment ID in where the catalog json is looking for a zone/cloud id instead.&lt;/P&gt;
&lt;P&gt;To me, while I don’t know how your option lists and inputs are configured, that looks like a possible culprit in combination with the need to build the json from the builder. Specifically in a place like:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;  "layout": {
    "id": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[0] %&amp;gt;",
    "code": "&amp;lt;%= customOptions.VMCWindowsVersions.tokenize('|')[1] %&amp;gt;"
  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;“code” take a guid. Is that what you have  in the second element of a pipe separated string behind VMCWindowsVersions?&lt;BR /&gt;
That’s just one example.&lt;/P&gt;
&lt;P&gt;Look forward to seeing the conclusion on this one!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248401#M1575</guid>
      <dc:creator />
      <dc:date>2022-07-28T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248402#M1576</link>
      <description>&lt;P&gt;Solved by removing the tokenize statements and filtering the Groups and Clouds&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248402#M1576</guid>
      <dc:creator />
      <dc:date>2022-08-04T18:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: JSON code to select Groups and Clouds from a list</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248403#M1577</link>
      <description>&lt;P&gt;Under customOptions → Application you have curly braces wrapping the VMApplication  custom option. This may be a contributing factor. Just took a quick glance through. There may be other issues as well.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 00:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/json-code-to-select-groups-and-clouds-from-a-list/m-p/7248403#M1577</guid>
      <dc:creator />
      <dc:date>2022-07-19T00:01:23Z</dc:date>
    </item>
  </channel>
</rss>

