Invoke-PaApiConfig

Synopsis

Invokes a Palo Alto Config Api.

Syntax

get (Default)

Invoke-PaApiConfig [-Get] [-XPath] <String> 

edit

Invoke-PaApiConfig [-Edit] [-Element] <String> [-XPath] <String> 

set

Invoke-PaApiConfig [-Set] [-Element] <String> [-XPath] <String> 

move

Invoke-PaApiConfig [-Move] [-Location] <String> [-XPath] <String> 

delete

Invoke-PaApiConfig [-Delete] [-XPath] <String> 

Description

Invokes a Palo Alto Config Api.

Examples

Example 1

PS c:\> Invoke-PaApiConfig -Action "get" -XPath "/config/devices/entry[@name='localhost.localdomain']/network/interface"

Returns interface configuration for the currently connected Palo Alto Device.

Parameters

-Get

get parameters

Type: SwitchParameter
Parameter Sets: get
Aliases: 

Required: true
Position: 1
Default value: False
Accept pipeline input: false
Accept wildcard characters: false

-Edit

edit parameters

Type: SwitchParameter
Parameter Sets: edit
Aliases: 

Required: true
Position: 1
Default value: False
Accept pipeline input: false
Accept wildcard characters: false

-Set

set parameters

Type: SwitchParameter
Parameter Sets: set
Aliases: 

Required: true
Position: 1
Default value: False
Accept pipeline input: false
Accept wildcard characters: false

-Element

Type: String
Parameter Sets: edit, set
Aliases: 

Required: true
Position: 2
Default value: 
Accept pipeline input: false
Accept wildcard characters: false

-Move

move parameters

Type: SwitchParameter
Parameter Sets: move
Aliases: 

Required: true
Position: 1
Default value: False
Accept pipeline input: false
Accept wildcard characters: false

-Location

Type: String
Parameter Sets: move
Aliases: 

Required: true
Position: 3
Default value: 
Accept pipeline input: false
Accept wildcard characters: false

-Delete

move parameters

Type: SwitchParameter
Parameter Sets: delete
Aliases: 

Required: true
Position: 1
Default value: False
Accept pipeline input: false
Accept wildcard characters: false

-XPath

XPath of desired configuration.

Type: String
Parameter Sets: All
Aliases: 

Required: true
Position: 2
Default value: 
Accept pipeline input: false
Accept wildcard characters: false