Public/Get-GCTelephonyTrunk.ps1
|
<# .SYNOPSIS Retrieves a single trunk from Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve a specific telephony trunk by its ID. API Endpoint: GET /api/v2/telephony/providers/edges/trunks/{trunkId} .PARAMETER TrunkId The unique identifier of the trunk to retrieve. .EXAMPLE Get-GCTelephonyTrunk -TrunkId 'trunk-abc123' Retrieves the trunk with the specified ID. .NOTES Genesys Cloud API: GET /api/v2/telephony/providers/edges/trunks/{trunkId} #> function Get-GCTelephonyTrunk { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$TrunkId ) $endpoint = "telephony/providers/edges/trunks/$TrunkId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |