Public/Get-GCTelephonySite.ps1

<#
.SYNOPSIS
    Retrieves a single telephony site from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a specific telephony site by its ID.
    API Endpoint: GET /api/v2/telephony/providers/edges/sites/{siteId}

.PARAMETER SiteId
    The unique identifier of the telephony site to retrieve.

.EXAMPLE
    Get-GCTelephonySite -SiteId 'site-abc123'
    Retrieves the telephony site with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/telephony/providers/edges/sites/{siteId}
#>

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

    $endpoint = "telephony/providers/edges/sites/$SiteId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}