Skip to content

Commit

Permalink
Get-DuoIntegrations v2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
cbtodd authored May 7, 2024
1 parent bd4c313 commit 51c9e54
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ function Get-DuoIntegrations {
)

if ($IntegrationKey) {
$Path = '/admin/v1/integrations/{0}' -f $IntegrationKey
$Path = '/admin/v2/integrations/{0}' -f $IntegrationKey
} else {
$Path = '/admin/v1/integrations'
$Path = '/admin/v2/integrations'
}

$DuoRequest = @{
Method = 'GET'
Path = $Path
SignatureVersion = 5
}

$Response = Invoke-DuoRequest @DuoRequest
Expand Down

0 comments on commit 51c9e54

Please sign in to comment.