3.1.5.4.1.1.1 Request Body

The format for the request body for the gateways PUT method is as follows.

 {
   "resourceId": "CloudGw1",
   "properties": {
     "pool": {
       "resourceRef": "/GatewayPools/default"
     },
     "types": [
       "s2sipsec",
       "s2sgre",
       "forwarding",
       "vpn"
     ],
     "virtualServer": {
       "resourceRef": "/VirtualServers/CloudGw1"
     },
     "networkInterfaces": {
       "externalNetworkInterface": {
         "resourceRef": "/NetworkInterfaces/00000000-3333-0000-1111-000000000001"
       },
       "internalNetworkInterface": {
         "resourceRef": "/NetworkInterfaces/00000000-3333-0000-0000-000000000001"
       }
     },
     "bgpConfig": {
       "extASNumber": "0.1",
       "bgpPeer": [
         {
           "peerIP": "11.0.1.100",
           "peerExtAsNumber": "0.1"
         }
       ]
     }
   }
} 

The JSON schema for the gateways PUT method is located in section 6.4.1.