- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to set check mark "Disable for DHCP" for new created Network via API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 06:06 AM
Hi
I'm able to create an new Network with a REST POST. But I need to set the Option "Disable for DHCP". How can I do that, either during creation, or after creation as second step?
So far this is working and creates the network (not all parameters shown):
Invoke-RestMethod -Method POST -Uri https://server/wapi/v2.7.1/network?_return_fields%2B=network&_return_as_object=1 -Body {"network":"10.10.11.0/24","network_view":"Net Name","comment":"My new Net"}
Any help will be appriciated!
Thanks
Chris
Solved! Go to Solution.
Re: How to set check mark "Disable for DHCP" for new created Network via API?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2020 11:31 PM - edited 05-17-2020 11:33 PM
Solved it:
Postman PUT:
https://<ddiServer>/wapi/v2.7.1/network/ZG5zLm5ldHdvcmskMsdffRTtrNC8w:xxx.xxx.xxx.0/24/default
Body:
{
"comment": "LAB Overlay Test",
"disable": true
}