Find-PaAddressObject
Synopsis
Search Address Objects and Address Groups for a given IP, FQDN, or string.
Syntax
Find-PaAddressObject [-SearchString] <String> [-PaConnection <String>] [-Update] [<CommonParameters>]
Description
Returns objects from Palo Alto firewall. If no objectname is specfied, all objects of the specified type are returned.
Parameters
-SearchString <String>
Specificies the Palo Alto connection string with address and apikey.
Required | true |
Position | 1 |
Default Value | |
Accept pipeline input | false |
Accept wildcard characters | false |
-PaConnection <String>
Required? false
Required | false |
Position | named |
Default Value | False |
Accept pipeline input | false |
Accept wildcard characters | false |
Example 1
PS C:\Users\user>Find-PaAddressObject server-triton | ft -AutoSize
Groups Addresses
------ ---------
{} {@{Name=server-triton; Value=10.10.64.10/32; Type=ip-netmask}}
if the global variables global:address and global:addressgroups exist, the search is performed locally. If they do not exist and update will be performed.
Example 2
PS C:\Users\user>Find-PaAddressObject server-triton -update | ft -AutoSize
updating addresses
Groups Addresses
------ ---------
{} {@{Name=server-triton; Value=10.10.64.10/32; Type=ip-netmask}}
The update parameter updates the global variables global:address and global:addressgroups searching.