Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Disable a Wide IP using REST API

Sandeep_Rawat
Nimbostratus
Nimbostratus

I am new to F5, and I am trying to get a WIDE IP disabled from serviceNow using REST APIs.

I am using the information provided in the below link but no luck so far.

 

https://clouddocs.f5.com/products/big-iq/mgmt-api/v7.1.0/ApiReferences/bigiq_public_api_ref/r_dns_wi... 

 

I am using the endpoint as https://<ip address of device>/mgmt/tm/gmt/working-config/wideip/a/<id> "<id> I am replacing with dns farm name".

 

There is no error, but wide-ip remains enabled. 

1 REPLY 1

Hello Sandeep.

If the initial state of the Wide IP is enabled.

# curl -sku admin:admin https://localhost/mgmt/tm/gtm/wideip/a/wideip.mydomain.com | json-format 
{
  "kind": "tm:gtm:wideip:a:astate",
  "name": "wideip.mydomain.com",
  "fullPath": "wideip.mydomain.com",
  "generation": 1659,
  "selfLink": "https://localhost/mgmt/tm/gtm/wideip/a/wideip.mydomain.com?ver\u003d12.1.5",
  "enabled": true,
  "failureRcode": "noerror",
  "failureRcodeResponse": "disabled",
  "failureRcodeTtl": 0,
  "lastResortPool": "",
  "minimalResponse": "enabled",
  "persistCidrIpv4": 32,
  "persistCidrIpv6": 128,
  "persistence": "disabled",
  "poolLbMode": "round-robin",
  "ttlPersistence": 3600
}

You can disable it like this.

# curl -sku admin:admin -X PUT https://localhost/mgmt/tm/gtm/wideip/a/wideip.mydomain.com -H 'Content-Type: application/json' -d '{ "disabled": true }' | json-format         
{
  "kind": "tm:gtm:wideip:a:astate",
  "name": "wideip.mydomain.com",
  "fullPath": "wideip.mydomain.com",
  "generation": 1661,
  "selfLink": "https://localhost/mgmt/tm/gtm/wideip/a/wideip.mydomain.com?ver\u003d12.1.5",
  "disabled": true,
  "failureRcode": "noerror",
  "failureRcodeResponse": "disabled",
  "failureRcodeTtl": 0,
  "lastResortPool": "",
  "minimalResponse": "enabled",
  "persistCidrIpv4": 32,
  "persistCidrIpv6": 128,
  "persistence": "disabled",
  "poolLbMode": "round-robin",
  "ttlPersistence": 3600
}

Regards,

Dario.

Regards,
Dario.