Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to get the IP addresses filtered by no name in WAPI?

[ Edited ]
New Member
Posts: 2
3336     0

Hi, I wonder if it's possible in WAPI to retrieve IP address list having blank names using powershell script? Thanks.

Re: How to get the IP addresses filtered by no name in WAPI?

Adviser
Posts: 181
3337     0

Hi,

 

Are these IP addresses used or not used?

Here is how you can get the IP addresses that are unused.

 

curl -k -u admin:pwd -X GET "https://grid-master/wapi/v2.11/ipv4address?network=10.10.10.0/24&status=UNUSED&_return_as_object=1"

Here is the API call using powershell:

 

 

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Basic base64encoding")

$response = Invoke-RestMethod 'https://grid-master.demo.com/wapi/v2.10/ipv4address?status=UNUSED&network=172.0.0.0/24&names=' -Method 'GET' -Headers $headers
$response | ConvertTo-Json

You can find more examples  here.

 

 

Thanks and Regards,

Krishna Vasudevan

Re: How to get the IP addresses filtered by no name in WAPI?

New Member
Posts: 2
3337     0

Thanks @kvasudevan . We need to get the used IPs with no names. Your samples are helpful. I've just changed the status to USED. Thanks a lot!

Re: How to get the IP addresses filtered by no name in WAPI?

New Member
Posts: 1
3337     0

When you have multiple APIs, a proper name helps to manage it. ... To run the sample public client which does not require api keys run the command ...You can find here more details. 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You