F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Benjamin_8557's avatar
Benjamin_8557
Icon for Altostratus rankAltostratus
Apr 08, 2016

[REST] set Partition Default Route Domain with POST request

Hello,

 

I try to use POST request to create a route domain. I want to set the option 'Partition Default Route Domain' to the value 'Make this route domain the Partition Default Route Domain' but i don't see the arg in the /mgmt/tm/net/route-domain/example.

 

How can I set this value with my REST POST request?

 

regards

 

1 Reply

  • The partition default route domain is a property of the partition, not of the route domain. Hence, you need to create the route domain using a POST request first, and then modify the "default-route-domain" property of the partition (/mgmt/tm/auth/partition/partitionname) using a PUT request. This property contains the ID of the route-domain (not its name). For example - if you want to set route-domain ID 3 as default for partition "web1", you would do:

    curl -sk -u admin:password https://myBigIP/mgmt/tm/auth/partition/web1 -H 'Content-Type: application/json' -X PUT '{"default-route-domain":"3"}'
    

    HTH,

    Martin