Reply

How to create subnet in another network container automatically when subnet reached maximum network?

Techie
Posts: 9
3141     0

i need to create subnet on multiple network container while subnet with 10.0.0.8/24 with cidr /24 is reached maximum network on particular network container(10.0.0.8/22), it should automatically create next available network on the next network container (10.0.0.9/22) with the same subnet using REST API

 

I have this with powershell code.

 

 

Can you please help me on this?

Re: How to create subnet in another network container automatically when subnet reached maximum netw

Techie
Posts: 9
3141     0

I am getting the error message as

 

Invoke-RestMethod : The remote server returned an error: (400) Bad Request.

At C:\Users\Administrator\Desktop\network_discovery.ps1:87 char:12
+ $results = Invoke-RestMethod -Uri $new_network_subnet_url -Method POS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Re: How to create subnet in another network container automatically when subnet reached maximum netw

Adviser
Posts: 181
3141     0

Hi,

 

Could you please sharethe powershell code?

 

Regards,

Krishna

Re: How to create subnet in another network container automatically when subnet reached maximum netw

New Member
Posts: 1
3142     0

Hi did you get the code? Would love to see.


@kvasudevan wrote:

Hi,

 

Could you please sharethe powershell code?

 

Regards,

Krishna


 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You