Public/Get-GCTelephonyEdgeSoftwareVersions.ps1

<#
.SYNOPSIS
    Retrieves available software versions for an edge device from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve the list of available software versions
    for a specific edge device.
    API Endpoint: GET /api/v2/telephony/providers/edges/{edgeId}/softwareversions

.PARAMETER EdgeId
    The unique identifier of the edge device whose software versions to retrieve.

.EXAMPLE
    Get-GCTelephonyEdgeSoftwareVersions -EdgeId 'edge-abc123'
    Retrieves all available software versions for the specified edge device.

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

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

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