Get Variables from Form and use in JSON payload

Hello,

I’m trying to build a JSON payload in my http-connector.
The payload should be dynamic, so the values in the payload should be values from my form.
At the moment my payload loos like this:

{
    "extra_vars": {
        "hostname": "test",
        "machine_type": "n1-standard-2",
        "boot_disk_size": "10",
        "boot_disk_type": "pd-standard",
        "zone": "europe-west1-b",
        "os": "ubuntu-minimal-1804-lts",
        "os_family": "ubuntu-os-cloud"
    }
}

and for example the variable “hostname” should have the value of one parameter from my form.

Thanks in advance for any help :slight_smile:

Did you ever get this answered? I need to pass variables in json as well. I tried ${var} but it doesn’t work.