Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.53 KB

README-powershell.md

File metadata and controls

65 lines (53 loc) · 2.53 KB

Powershell Arguments

Mandatory argument:

Default Argument:

  • -dataType EgressIPs. This will show all the public egress IP addresses for the Prisma Access tenant.

Alternate outputs for -dataType:

  • ActiveIPOnboardedMobileUserLocations - Shows all the public egress IPs for mobile users.
  • ActiveMobileUserAddresses - Shows all the public egress IPs for mobile users.
  • RemoteNetworkAddresses - Shows all public egress IPs for Remote Networks
  • CleanPipeAddresses - Shows all public egress IPs for Clean Pipe
  • ExplicitProxyAddresses - Shows all public egress IPs for Explicit Proxy

Optional Argument

  • -environment - This defaults to prod. Adust to the correct environment where applicable.

Example Usage

All egress IPs for Prisma Access

PS1 C:\>.\format-egress-ips.ps1 -api_key <api_key>

Zone              ServiceType    Address         AddressType
----              -----------    -------         -----------
US Northwest      remote_network 123.264.123.112 active
US Northwest      gp_gateway     123.264.123.113 active
US Northwest      gp_gateway     123.264.123.114 active
US Northwest      swg_proxy      123.264.123.116 active
...

Loopback IP addresses

PS1 C:\>.\format-egress-ips.ps1 -api_key <api_key> -dataType loopback_ip

Location          Type                Loopback IP
--------          ----                -----------
US Northwest      gpcs_gp_gw          192.168.0.10
US East           gpcs_gp_portal      192.168.0.11
US West           gpcs_gp_portal      192.168.0.2
CloudGenix_Branch gpcs_remote_network 192.168.0.3

Output to csv file

PS1 C:\>.\format-egress-ips.ps1 -api_key <api_key> -dataType loopback_ip -outputFile loopback.csv
PS1 C:\>

Output to json file

PS1 C:\>.\format-egress-ips.ps1 -api_key <api_key> -dataType loopback_ip -outputFile loopback.json
PS1 C:\>

Output only IP addresses

PS1 C:\>.\format-egress-ips.ps1 -api_key <api_key> -dataType loopback_ip -outputFile loopback.txt
PS1 C:\>