Forum Discussion
Benjamin_8557
Altostratus
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 ...
tatmotiv
Cirrostratus
Apr 08, 2016The 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects