Public/Get-GCIdentityProvider.ps1

<#
.SYNOPSIS
    Retrieves a single identity provider by ID.

.DESCRIPTION
    Returns the details of a specific identity provider from Genesys Cloud.
    Uses the GET /api/v2/identityproviders/{providerId} endpoint.

.PARAMETER ProviderId
    The unique identifier of the identity provider to retrieve.

.EXAMPLE
    Get-GCIdentityProvider -ProviderId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/identityproviders/{providerId}
#>

function Get-GCIdentityProvider {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$ProviderId
    )

    $endpoint = "identityproviders/$ProviderId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}