< Back

Invoke-ArubaIAPRestMethod

Sat Jan 18, 2020 8:33 pm

NAME Invoke-ArubaIAPRestMethod



SYNOPSIS

Invoke RestMethod with ArubaIAP connection (internal) variable





SYNTAX

Invoke-ArubaIAPRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [-iap_ip_addr <IPAddress>]

[<CommonParameters>]





DESCRIPTION

Invoke RestMethod with ArubaIAP connection variable (token, csrf..)





PARAMETERS

-uri <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-method <String>



Required? false

Position? named

Default value get

Accept pipeline input? false

Accept wildcard characters? false



-body <PSObject>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-iap_ip_addr <IPAddress>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Invoke-ArubaIAPRestMethod -method "get" -uri "rest/virtual-controller-ip"



Invoke-RestMethod with ArubaIAP connection for get rest/v1/rest/virtual-controller-ip









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Invoke-ArubaIAPRestMethod "rest/v1/rest/virtual-controller-ip"



Invoke-RestMethod with ArubaIAP connection for get rest/v1/rest/virtual-controller-ip uri with default GET method

parameter









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Invoke-ArubaIAPRestMethod -method "post" -uri "rest/v1/rest/virtual-controller-ip" -body $body



Invoke-RestMethod with ArubaIAP connection for post rest/v1/rest/virtual-controller-ip uri with $body payloaders











RELATED LINKS