08-01-2021 09:11 PM - edited 08-01-2021 10:28 PM
08-04-2021 07:04 AM
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=22.214.171.124/24&names=' -Method 'GET' -Headers $headers $response | ConvertTo-Json
You can find more examples here.
Thanks and Regards,
08-09-2021 01:44 AM
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!