- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Delete Subnet in Container
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 01:10 PM - edited 06-26-2020 01:12 PM
Hi,
I could not find any document or sample how to delete created subnet in container. I am using python3 with json. My subnet creating sample works fine as below. Thank you for your help.
url = "https://10.10.10.10/wapi/v2.7/network"
payload = {
"network": "func:nextavailablenetwork:10.5.5.0/21,default,28"
"comment": test_subnet,
"network_view": "default"
}
response_IB = requests.post(url, payload,
auth=("username", "password),
verify=False)
Solved! Go to Solution.
Re: Delete Subnet in Container
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 01:42 PM
Here is the solution just worked for me :
First i get to subnet detail and then delete it as follows :
Tested via Postman:
GET:
https://{{grid_master}}/wapi/v2.7/network?network=10.6.14.0/29&_return_as_object=1"
DELETE:
https://{{grid_master}}/wapi/v2.7/network/ZG5zLm5ldHdvcmskMTAuNi4yNC4wLzI5LzA:10.6.14.0/29/default
I hope it can be helpful for people looking for solution like me
Thank you.