Forum Discussion

HankLiu_159320's avatar
HankLiu_159320
Icon for Nimbostratus rankNimbostratus
Oct 06, 2014

What is the proper way to create an HTTP Monitor and set the alias service port to 80 via iControl API?

With iControl API, what is the proper way to create an HTTP Monitor and set the alias service port to 80? Can someone provide an example code? My automation currently will create the monitor with alias port, but the alias port will not override the pool member port. Thanks!

 

1 Reply

  • With REST API you can use that :

    {
           "name": "my_http_forced_alias_80",
           "adaptive": "disabled",
           "adaptiveDivergenceType": "relative",
           "adaptiveDivergenceValue": 25,
           "adaptiveLimit": 200,
           "adaptiveSamplingTimespan": 300,
           "defaultsFrom": "/Common/http",
           "destination": "*:80",
           "interval": 5,
           "ipDscp": 0,
           "manualResume": "disabled",
           "reverse": "disabled",
           "send": "GET /\r\n",
           "timeUntilUp": 0,
           "timeout": 16,
           "transparent": "disabled",
           "upInterval": 0
        }