private/InvokePortainerRestMethod.ps1
<#PSScriptInfo
{ "VERSION": "1.0.0", "GUID": "0cf86f27-137b-43ee-a194-ec0207d85ce5", "FILENAME": "InvokePortainerRestMethod.ps1", "AUTHOR": "Hannes Palmquist", "CREATEDDATE": "2022-10-23", "COMPANYNAME": [], "COPYRIGHT": "(c) 2022, Hannes Palmquist, All Rights Reserved" } PSScriptInfo#> function InvokePortainerRestMethod { <# .DESCRIPTION . .PARAMETER Name Description .EXAMPLE InvokePortainerRestMethod Description of example #> [CmdletBinding()] # Enabled advanced function support param( [switch]$NoAuth, [string]$Method, [portainersession]$PortainerSession, [string]$RelativePath, [hashtable]$Body = @{}, [hashtable]$Headers = @{} ) if (-not $PortainerSession) { Write-Debug -Message 'InvokePortainerRestMethod; No PortainerSession passed as parameter' if ($script:PortainerSession) { Write-Debug -Message 'InvokePortainerRestMethod; PortainerSession found in script scope' $PortainerSession = $script:PortainerSession } else { Write-Error -Message 'No Portainer Session established, please call Connect-Portainer' } } $InvokeRestMethodSplat = @{ Method = $Method Uri = "$($PortainerSession.ApiUri)$($RelativePath)" } if (-not $NoAuth) { switch ($PortainerSession.AuthMethod) { 'Credential' { $InvokeRestMethodSplat.Authentication = 'Bearer' $InvokeRestMethodSplat.Token = $PortainerSession.JWT } 'AccessToken' { $Headers.'X-API-Key' = (ConvertFrom-SecureString -SecureString $PortainerSession.AccessToken -AsPlainText) } } } if ($Headers.Keys.Count -gt 0) { $InvokeRestMethodSplat.Headers = $Headers } if ($Body.Keys.Count -gt 0 ) { if ($InvokeRestMethodSplat.Method -eq 'Get') { $InvokeRestMethodSplat.Body = $Body } elseif ($InvokeRestMethodSplat.Method -eq 'Post') { # Might need to be changed, some post requests require formdata $InvokeRestMethodSplat.Body = $Body | ConvertTo-Json -Compress $InvokeRestMethodSplat.ContentType = 'application/json' } } Write-Debug -Message "InvokePortainerRestMethod; Calling Invoke-RestMethod with settings`r`n$($InvokeRestMethodSplat | ConvertTo-Json)" Invoke-RestMethod @InvokeRestMethodSplat -Verbose:$false | ForEach-Object { $_ } } #endregion # SIG # Begin signature block # MIIbmAYJKoZIhvcNAQcCoIIbiTCCG4UCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR # AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUSz2u7TjdMusrLCZm99VjicSn # MTCgghYPMIIDBDCCAeygAwIBAgIQFqvAHPTHupdKm+zXSmZcFTANBgkqhkiG9w0B # AQUFADAaMRgwFgYDVQQDDA9IYW5uZXNQYWxtcXVpc3QwHhcNMjExMTA2MjEzODU5 # WhcNMjYxMTA2MjE0ODU5WjAaMRgwFgYDVQQDDA9IYW5uZXNQYWxtcXVpc3QwggEi # MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6WNXwWLjX4EAPDxg9U54O83Sr # Vdf41bEPJz8V0wDQm4MJnnBGZTCqPBENXsfSbIPhHwad+tcsd3nc1ZNuQEJTV3W1 # pXTOtNK+yV0r51VSJvFYYo3qXFyvWdi9n8Z8/yydoWy1vXkx7CsbmIuniODGEzIE # C1z0QYgrjyNmXw1CewOjX+oW2cgjiJqjuxsS/sLnmqAOMOeV3047GnEEKTyderWR # L/U+ohEu2WcMao1UCKEtUmPo5rncRyHjY7wzwevby1I8oLgHWm8NlH9K2Kp43tx9 # +Mcpn64hTYW+jd7VCFmrEIDfZEWdY5EBfJZDwnol0vXvFPl+7E+WaCtKe6zNAgMB # AAGjRjBEMA4GA1UdDwEB/wQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzAdBgNV # HQ4EFgQU0+0dMijn0qYkRTkT8lp0KErfo+swDQYJKoZIhvcNAQEFBQADggEBACoT # mkcM6C7Atq/ZzwVOH0A1qd5t1KsnAX393xLk73ssnmOW/c4P2fcoeEmQ8Idk6FJf # v+D6MkZIRb7PefqTCVhgi2ZZynNCWE2zqt5VxEZIPiG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