Skip to content

Get PaConnectionString

sandersjds edited this page Dec 18, 2012 · 1 revision

Connects to a Palo Alto firewall and returns an connection string with API key. adds value to global:PaConnectionArray for other functions to access

Table of Contents

Syntax

Get-PaConnectionString [-Address] <String> [-Cred] <PSCredential> [<CommonParameters>]

Detailed Description

Connects to a Palo Alto firewall and returns an connection string with API key.

Related Commands

Parameters

Name Description Required? Pipeline Input Default Value
Address Specifies the IP or DNS name of the system to connect to. true false
Cred true false

Return Values

System.String

Examples

EXAMPLE 1

Connect-Pa -Address 192.168.1.1 -Cred $PSCredential
https://192.168.1.1/api/?key=LUFRPT1SanJaQVpiNEg4TnBkNGVpTmRpZTRIamR4OUE9Q2lMTUJGREJXOCs3SjBTbzEyVSt6UT01

EXAMPLE 2

Connect-Pa 192.168.1.1
https://192.168.1.1/api/?key=LUFRPT1SanJaQVpiNEg4TnBkNGVpTmRpZTRIamR4OUE9Q2lMTUJGREJXOCs3SjBTbzEyVSt6UT01

Clone this wiki locally