Environment
- CB Response Cloud: All Versions
- Microsoft Windows: All Supported Versions
- Microsoft Powershell: Version 3
Objective
To check currently created ingress filters for a CB Response Cloud instance from Windows using Powershell
Resolution
- Open Run
- Type "powershell" and press enter.
- Configure Powershell for TLS v1.2:
- Check currently created ingress filters:
- Use Invoke-RestRethod.
Invoke-RestMethod -Headers @{"X-Auth-Token" = "<GlobalApiTokenHere>"} -Method GET -Uri https://<ServerHostnameHere>/api/v1/ingress_whitelist
- If option A does not work then use Invoke-WebRequest.
Invoke-WebRequest -Headers @{"X-Auth-Token" = "<GlobalApiTokenHere>"} -Method GET -Uri https://<ServerHostnameHere>/api/v1/ingress_whitelist | Select-Object -Expand Content
Additional Notes
Replace <GlobalApiTokenHere> and <ServerHostnameHere> with the appropriate information.
Related Content