Reply

Delete Subnet in Container

[ Edited ]
New Member
Posts: 4
3076     0

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)

 

Re: Delete Subnet in Container

New Member
Posts: 4
3076     0

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 Smiley Happy

 

Thank you.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You