Public/Get-GCOutboundRuleSet.ps1

<#
.SYNOPSIS
    Retrieves a specific outbound rule set by ID from Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a single outbound rule set by its unique identifier.
    API Endpoint: GET /api/v2/outbound/rulesets/{ruleSetId}

.PARAMETER RuleSetId
    The unique identifier of the rule set to retrieve.

.EXAMPLE
    Get-GCOutboundRuleSet -RuleSetId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
    Retrieves the rule set with the specified ID.

.NOTES
    Genesys Cloud API: GET /api/v2/outbound/rulesets/{ruleSetId}
#>

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

    $endpoint = "outbound/rulesets/$RuleSetId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}