Public/Get-GCWebDeployment.ps1

<#
.SYNOPSIS
    Retrieves a single web deployment by ID.

.DESCRIPTION
    Returns the details of a specific web deployment from Genesys Cloud.
    Uses the GET /api/v2/webdeployments/deployments/{deploymentId} endpoint.

.PARAMETER DeploymentId
    The unique identifier of the web deployment to retrieve.

.EXAMPLE
    Get-GCWebDeployment -DeploymentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: GET /api/v2/webdeployments/deployments/{deploymentId}
#>

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

    $endpoint = "webdeployments/deployments/$DeploymentId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}