Public/Get-GCAlertingRule.ps1
|
<# .SYNOPSIS Retrieves a single alerting rule by ID. .DESCRIPTION Returns the details of a specific alerting rule from Genesys Cloud. Uses the GET /api/v2/alerting/rules/{ruleId} endpoint. .PARAMETER RuleId The unique identifier of the alerting rule to retrieve. .EXAMPLE Get-GCAlertingRule -RuleId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/alerting/rules/{ruleId} #> function Get-GCAlertingRule { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$RuleId ) $endpoint = "alerting/rules/$RuleId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |