Forum Discussion
[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
- tatmotiv
Cirrostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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