Forum Discussion

michael_foley_6's avatar
michael_foley_6
Icon for Nimbostratus rankNimbostratus
Sep 10, 2014

iControlREST LTM Virtual Server - Source Address Translation

Hi Folks

I'm just trying to setup some simple virtual servers using IControlREST and the powershell invoke-restmethod command.

I've managed to get most of it working except for defining properties that contain an array object as the value.

The property I'm having problems with at the moment is the SourceAddressTranslation property of a virtual server.

Using a powershell array and the convertto-json command the JSON body that I am sending is:

{
    "destination":  "1.1.1.1:0",
    "translatePort":  "disabled",
    "sourceAddressTranslation":  {
                                     "type":  "automap"
                                 },
    "name":  "VS_name",
    "ipProtocol":  "tcp"
}

Is this the correct format? When I invoke the REST put everything else is created without a problem and no errors are returned however the sourceAddressTranslation field is empty

Any ideas on what I'm doing wrong?

1 Reply

  • Hello Michael, should be working, try removing line breaks in case a special caracter get into. you can do as well : "sourceAddressTranslation":{ "pool":"none", "type":"automap" },

     

    do you have anything in /var/log/ltm on bigip or /var/log/restjavad.0.log ?