NetScalerToolkit.Configuration/Public/ns-functions-config-appqoe.ps1

# Generated NetScalerToolkit Configuration bundle for category 'appqoe'.

# region Invoke-NSAddAppQoEAction
function Invoke-NSAddAppQoEAction {
    <#
    .SYNOPSIS
        Creates a NetScaler appqoeaction resource.
    .DESCRIPTION
        Configuration for AppQoS action resource.
    .PARAMETER AltContentPath
        Path to the alternative content service to be used in the ACS. Minimum length = 4 Maximum length = 127
    .PARAMETER AltContentSvcName
        Name of the alternative content service to be used in the ACS. Minimum length = 1 Maximum length = 127
    .PARAMETER CustomFile
        name of the HTML page object to use as the response. Minimum length = 1
    .PARAMETER Delay
        Delay threshold, in microseconds, for requests that match the policy's rule. If the delay statistics gathered for the matching request exceed the specified delay, configured action triggered for that request, if there is no action then requests are dropped to the lowest priority level. Minimum value = 1 Maximum value = 599999999
    .PARAMETER DosAction
        DoS Action to take when vserver will be considered under DoS attack and corresponding rule matches. Mandatory if AppQoE actions are to be used for DoS attack prevention. Possible values = SimpleResponse, HICResponse
    .PARAMETER Dostrigexpression
        Optional expression to add second level check to trigger DoS actions. Specifically used for Analytics based DoS response generation.
    .PARAMETER MaxConn
        Maximum number of concurrent connections that can be open for requests that matches with rule. Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Name
        Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument.
    .PARAMETER Numretries
        Retry count. Default value: 3 Minimum value = 0 Maximum value = 7
    .PARAMETER Polqdepth
        Policy queue depth threshold value. When the policy queue size (number of requests queued for the policy binding this action is attached to) increases to the specified polqDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Priority
        Priority for queuing the request. If server resources are not available for a request that matches the configured rule, this option specifies a priority for queuing the request until the server resources are available again. If priority is not configured then Lowest priority will be used to queue the request. Possible values = HIGH, MEDIUM, LOW, LOWEST
    .PARAMETER Priqdepth
        Queue depth threshold value per priorirty level. If the queue size (number of requests in the queue of that particular priorirty) on the virtual server to which this policy is bound, increases to the specified qDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER ResponseOndwith
        Responder action to be taken when the threshold is reached. Available settings function as follows: ACS - Serve content from an alternative content service Threshold : maxConn or delay NS - Serve from the Citrix ADC (built-in response) Threshold : maxConn or delay. Possible values = ACS, NS
    .PARAMETER Retryonreset
        Retry on TCP Reset. Default value: NO Possible values = YES, NO
    .PARAMETER RetryonTimeout
        Retry on request Timeout(in millisec) upon sending request to backend servers. Minimum value = 30 Maximum value = 2000
    .PARAMETER TCPProfile
        Bind TCP Profile based on L2/L3/L7 parameters. Minimum length = 1 Maximum length = 127
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSAddAppQoEAction -Name 'example' -PassThru
    .EXAMPLE
        Invoke-NSAddAppQoEAction -Name 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter()]
        [string] $AltContentPath,

        [Parameter()]
        [string] $AltContentSvcName,

        [Parameter()]
        [string] $CustomFile,

        [Parameter()]
        [int] $Delay,

        [Parameter()]
        [ValidateSet('SimpleResponse', 'HICResponse')]
        [string] $DosAction,

        [Parameter()]
        [string] $Dostrigexpression,

        [Parameter()]
        [int] $MaxConn,

        [Parameter(Mandatory, Position = 0)]
        [string] $Name,

        [Parameter()]
        [int] $Numretries,

        [Parameter()]
        [int] $Polqdepth,

        [Parameter()]
        [ValidateSet('HIGH', 'MEDIUM', 'LOW', 'LOWEST')]
        [string] $Priority,

        [Parameter()]
        [int] $Priqdepth,

        [Parameter()]
        [ValidateSet('ACS', 'NS')]
        [string] $ResponseOndwith,

        [Parameter()]
        [ValidateSet('YES', 'NO')]
        [string] $Retryonreset,

        [Parameter()]
        [int] $RetryonTimeout,

        [Parameter()]
        [string] $TCPProfile,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

    $transportParameters = @{}
    if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
    if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
    if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

    $properties = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    if ($PSBoundParameters.ContainsKey('AltContentPath')) { $properties['altcontentpath'] = $AltContentPath }
    if ($PSBoundParameters.ContainsKey('AltContentSvcName')) { $properties['altcontentsvcname'] = $AltContentSvcName }
    if ($PSBoundParameters.ContainsKey('CustomFile')) { $properties['customfile'] = $CustomFile }
    if ($PSBoundParameters.ContainsKey('Delay')) { $properties['delay'] = $Delay }
    if ($PSBoundParameters.ContainsKey('DosAction')) { $properties['dosaction'] = $DosAction }
    if ($PSBoundParameters.ContainsKey('Dostrigexpression')) { $properties['dostrigexpression'] = $Dostrigexpression }
    if ($PSBoundParameters.ContainsKey('MaxConn')) { $properties['maxconn'] = $MaxConn }
    if ($PSBoundParameters.ContainsKey('Name')) { $properties['name'] = $Name }
    if ($PSBoundParameters.ContainsKey('Numretries')) { $properties['numretries'] = $Numretries }
    if ($PSBoundParameters.ContainsKey('Polqdepth')) { $properties['polqdepth'] = $Polqdepth }
    if ($PSBoundParameters.ContainsKey('Priority')) { $properties['priority'] = $Priority }
    if ($PSBoundParameters.ContainsKey('Priqdepth')) { $properties['priqdepth'] = $Priqdepth }
    if ($PSBoundParameters.ContainsKey('ResponseOndwith')) { $properties['respondwith'] = $ResponseOndwith }
    if ($PSBoundParameters.ContainsKey('Retryonreset')) { $properties['retryonreset'] = $Retryonreset }
    if ($PSBoundParameters.ContainsKey('RetryonTimeout')) { $properties['retryontimeout'] = $RetryonTimeout }
    if ($PSBoundParameters.ContainsKey('TCPProfile')) { $properties['tcpprofile'] = $TCPProfile }

    $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    foreach ($key in $properties.Keys) {
        if ($null -ne $properties[$key] -and (-not ($properties[$key] -is [string]) -or $properties[$key] -ne '')) {
            $body[$key] = $properties[$key]
        }
    }

    if ($PSCmdlet.ShouldProcess("$Name", 'Create appqoeaction')) {
        $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoeaction -Payload @{ appqoeaction = $body } -RawResponse

        if ($PassThru) {
            return Invoke-NSGetAppQoEAction -Name $Name -Session $Session
        }

        return $response
    }
}
# endregion Invoke-NSAddAppQoEAction

# region Invoke-NSAddAppQoEPolicy
function Invoke-NSAddAppQoEPolicy {
    <#
    .SYNOPSIS
        Creates a NetScaler appqoepolicy resource.
    .DESCRIPTION
        Configuration for AppQoS policy resource.
    .PARAMETER Action
        Configured AppQoE action to trigger. Minimum length = 1
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Rule
        Expression or name of a named expression, against which the request is evaluated. The policy is applied if the rule evaluates to true.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSAddAppQoEPolicy -Name 'example' -Action 'example' -Rule 'example' -PassThru
    .EXAMPLE
        Invoke-NSAddAppQoEPolicy -Name 'example' -Action 'example' -Rule 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [string] $Action,

        [Parameter(Mandatory, Position = 0)]
        [string] $Name,

        [Parameter(Mandatory)]
        [string] $Rule,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

    $transportParameters = @{}
    if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
    if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
    if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

    $properties = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    if ($PSBoundParameters.ContainsKey('Action')) { $properties['action'] = $Action }
    if ($PSBoundParameters.ContainsKey('Name')) { $properties['name'] = $Name }
    if ($PSBoundParameters.ContainsKey('Rule')) { $properties['rule'] = $Rule }

    $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    foreach ($key in $properties.Keys) {
        if ($null -ne $properties[$key] -and (-not ($properties[$key] -is [string]) -or $properties[$key] -ne '')) {
            $body[$key] = $properties[$key]
        }
    }

    if ($PSCmdlet.ShouldProcess("$Name", 'Create appqoepolicy')) {
        $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoepolicy -Payload @{ appqoepolicy = $body } -RawResponse

        if ($PassThru) {
            return Invoke-NSGetAppQoEPolicy -Name $Name -Session $Session
        }

        return $response
    }
}
# endregion Invoke-NSAddAppQoEPolicy

# region Invoke-NSDeleteAppQoEAction
function Invoke-NSDeleteAppQoEAction {
    <#
    .SYNOPSIS
        Removes a NetScaler appqoeaction resource.
    .DESCRIPTION
        Configuration for AppQoS action resource.
    .PARAMETER Name
        Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSDeleteAppQoEAction -Name 'example' -Confirm:$false
    .EXAMPLE
        Invoke-NSGetAppQoEAction -Name 'appqoeaction_example' | Invoke-NSDeleteAppQoEAction -Confirm:$false
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        if ($PSCmdlet.ShouldProcess("$Name", 'Delete appqoeaction')) {
            Invoke-NSRestRequest @transportParameters -Session $Session -Method DELETE -Task config -Type appqoeaction -Resource $Name -RawResponse
        }
    }
}
# endregion Invoke-NSDeleteAppQoEAction

# region Invoke-NSDeleteAppQoECustomResponse
function Invoke-NSDeleteAppQoECustomResponse {
    <#
    .SYNOPSIS
        Removes a NetScaler appqoecustomresp resource.
    .DESCRIPTION
        Configuration for AppQoE custom response page resource.
    .PARAMETER Name
        Indicates name of the custom response HTML page to import/update. Minimum length = 1 Maximum length = 31
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSDeleteAppQoECustomResponse -Name 'example' -Confirm:$false
    .EXAMPLE
        Invoke-NSGetAppQoECustomResponse -Name 'appqoecustomresp_example' | Invoke-NSDeleteAppQoECustomResponse -Confirm:$false
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        if ($PSCmdlet.ShouldProcess("$Name", 'Delete appqoecustomresp')) {
            Invoke-NSRestRequest @transportParameters -Session $Session -Method DELETE -Task config -Type appqoecustomresp -Resource $Name -RawResponse
        }
    }
}
# endregion Invoke-NSDeleteAppQoECustomResponse

# region Invoke-NSDeleteAppQoEPolicy
function Invoke-NSDeleteAppQoEPolicy {
    <#
    .SYNOPSIS
        Removes a NetScaler appqoepolicy resource.
    .DESCRIPTION
        Configuration for AppQoS policy resource.
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSDeleteAppQoEPolicy -Name 'example' -Confirm:$false
    .EXAMPLE
        Invoke-NSGetAppQoEPolicy -Name 'appqoepolicy_example' | Invoke-NSDeleteAppQoEPolicy -Confirm:$false
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        if ($PSCmdlet.ShouldProcess("$Name", 'Delete appqoepolicy')) {
            Invoke-NSRestRequest @transportParameters -Session $Session -Method DELETE -Task config -Type appqoepolicy -Resource $Name -RawResponse
        }
    }
}
# endregion Invoke-NSDeleteAppQoEPolicy

# region Invoke-NSGetAppQoEAction
function Invoke-NSGetAppQoEAction {
    <#
    .SYNOPSIS
        Gets NetScaler appqoeaction configuration.
    .DESCRIPTION
        Configuration for AppQoS action resource.
    .PARAMETER Name
        Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument.
    .PARAMETER Filter
        NITRO filter values as a hashtable.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Count
        Returns only the number of matching resources.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoEAction
    .EXAMPLE
        Invoke-NSGetAppQoEAction -Name 'appqoeaction_example'
    .EXAMPLE
        Invoke-NSGetAppQoEAction -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'ByName', Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter(ParameterSetName = 'Count')]
        [switch] $Count,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        if ($Count) {
            $query.count = 'yes'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoeaction'
            Query = $query
        }

        if ($PSCmdlet.ParameterSetName -eq 'ByName') {
            $request.Resource = $Name
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoEAction

# region Invoke-NSGetAppQoECustomResponse
function Invoke-NSGetAppQoECustomResponse {
    <#
    .SYNOPSIS
        Gets NetScaler appqoecustomresp configuration.
    .DESCRIPTION
        Configuration for AppQoE custom response page resource.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Count
        Returns only the number of matching resources.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoECustomResponse
    .EXAMPLE
        Invoke-NSGetAppQoECustomResponse -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter(ParameterSetName = 'Count')]
        [switch] $Count,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        if ($Count) {
            $query.count = 'yes'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoecustomresp'
            Query = $query
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoECustomResponse

# region Invoke-NSGetAppQoEParameter
function Invoke-NSGetAppQoEParameter {
    <#
    .SYNOPSIS
        Gets NetScaler appqoeparameter configuration.
    .DESCRIPTION
        Configuration for QOS parameter resource.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoEParameter
    .EXAMPLE
        Invoke-NSGetAppQoEParameter -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoeparameter'
            Query = $query
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoEParameter

# region Invoke-NSGetAppQoEPolicy
function Invoke-NSGetAppQoEPolicy {
    <#
    .SYNOPSIS
        Gets NetScaler appqoepolicy configuration.
    .DESCRIPTION
        Configuration for AppQoS policy resource.
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Filter
        NITRO filter values as a hashtable.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Count
        Returns only the number of matching resources.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoEPolicy
    .EXAMPLE
        Invoke-NSGetAppQoEPolicy -Name 'appqoepolicy_example'
    .EXAMPLE
        Invoke-NSGetAppQoEPolicy -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'ByName', Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter(ParameterSetName = 'Count')]
        [switch] $Count,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        if ($Count) {
            $query.count = 'yes'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoepolicy'
            Query = $query
        }

        if ($PSCmdlet.ParameterSetName -eq 'ByName') {
            $request.Resource = $Name
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoEPolicy

# region Invoke-NSGetAppQoEPolicyBinding
function Invoke-NSGetAppQoEPolicyBinding {
    <#
    .SYNOPSIS
        Gets NetScaler appqoepolicy_binding configuration.
    .DESCRIPTION
        Binding object which returns the resources bound to appqoepolicy.
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Filter
        NITRO filter values as a hashtable.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyBinding
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyBinding -Name 'appqoepolicy_binding_example'
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyBinding -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'ByName', Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoepolicy_binding'
            Query = $query
        }

        if ($PSCmdlet.ParameterSetName -eq 'ByName') {
            $request.Resource = $Name
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoEPolicyBinding

# region Invoke-NSGetAppQoEPolicyLBVServerBinding
function Invoke-NSGetAppQoEPolicyLBVServerBinding {
    <#
    .SYNOPSIS
        Gets NetScaler appqoepolicy_lbvserver_binding configuration.
    .DESCRIPTION
        Binding object showing the lbvserver that can be bound to appqoepolicy.
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Filter
        NITRO filter values as a hashtable.
    .PARAMETER ViewSummary
        Requests the NITRO summary view.
    .PARAMETER Count
        Returns only the number of matching resources.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyLBVServerBinding
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyLBVServerBinding -Name 'appqoepolicy_lbvserver_binding_example'
    .EXAMPLE
        Invoke-NSGetAppQoEPolicyLBVServerBinding -Filter @{ servicetype = 'HTTP' }
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(DefaultParameterSetName = 'All')]
    param(
        [Parameter(ParameterSetName = 'ByName', Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter(ParameterSetName = 'All')]
        [hashtable] $Filter,

        [Parameter(ParameterSetName = 'All')]
        [switch] $ViewSummary,

        [Parameter(ParameterSetName = 'Count')]
        [switch] $Count,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $query = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($Filter) {
            $query.filter = (($Filter.GetEnumerator() | Sort-Object Name | ForEach-Object { "{0}:{1}" -f $_.Key, $_.Value }) -join ',')
        }

        if ($ViewSummary) {
            $query.view = 'summary'
        }

        if ($Count) {
            $query.count = 'yes'
        }

        $request = @{
            Session = $Session
            Method = 'GET'
            Task = 'config'
            Type = 'appqoepolicy_lbvserver_binding'
            Query = $query
        }

        if ($PSCmdlet.ParameterSetName -eq 'ByName') {
            $request.Resource = $Name
        }

        foreach ($key in $transportParameters.Keys) {
            $request[$key] = $transportParameters[$key]
        }

        Invoke-NSRestRequest @request
    }
}
# endregion Invoke-NSGetAppQoEPolicyLBVServerBinding

# region Invoke-NSImportAppQoECustomResponse
function Invoke-NSImportAppQoECustomResponse {
    <#
    .SYNOPSIS
        Imports NetScaler appqoecustomresp data.
    .DESCRIPTION
        Configuration for AppQoE custom response page resource.
    .PARAMETER Name
        Indicates name of the custom response HTML page to import/update. Minimum length = 1 Maximum length = 31
    .PARAMETER Src
        . Minimum length = 1 Maximum length = 2047
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSImportAppQoECustomResponse -Name 'example'
    .EXAMPLE
        Invoke-NSImportAppQoECustomResponse -Name 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [string] $Src,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($PSBoundParameters.ContainsKey('Name')) { $body['name'] = $Name }
        if ($PSBoundParameters.ContainsKey('Src')) { $body['src'] = $Src }

        if ($PSCmdlet.ShouldProcess('appqoecustomresp', 'Import appqoecustomresp')) {
            Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoecustomresp -Action Import -Payload @{ appqoecustomresp = $body } -RawResponse
        }
    }
}
# endregion Invoke-NSImportAppQoECustomResponse

# region Invoke-NSUnsetAppQoEAction
function Invoke-NSUnsetAppQoEAction {
    <#
    .SYNOPSIS
        Clears one or more NetScaler appqoeaction resource properties.
    .DESCRIPTION
        Configuration for AppQoS action resource.
    .PARAMETER Name
        Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument.
    .PARAMETER AltContentPath
        Path to the alternative content service to be used in the ACS. Minimum length = 4 Maximum length = 127
    .PARAMETER AltContentSvcName
        Name of the alternative content service to be used in the ACS. Minimum length = 1 Maximum length = 127
    .PARAMETER Delay
        Delay threshold, in microseconds, for requests that match the policy's rule. If the delay statistics gathered for the matching request exceed the specified delay, configured action triggered for that request, if there is no action then requests are dropped to the lowest priority level. Minimum value = 1 Maximum value = 599999999
    .PARAMETER DosAction
        DoS Action to take when vserver will be considered under DoS attack and corresponding rule matches. Mandatory if AppQoE actions are to be used for DoS attack prevention. Possible values = SimpleResponse, HICResponse
    .PARAMETER MaxConn
        Maximum number of concurrent connections that can be open for requests that matches with rule. Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Numretries
        Retry count. Default value: 3 Minimum value = 0 Maximum value = 7
    .PARAMETER Polqdepth
        Policy queue depth threshold value. When the policy queue size (number of requests queued for the policy binding this action is attached to) increases to the specified polqDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Priority
        Priority for queuing the request. If server resources are not available for a request that matches the configured rule, this option specifies a priority for queuing the request until the server resources are available again. If priority is not configured then Lowest priority will be used to queue the request. Possible values = HIGH, MEDIUM, LOW, LOWEST
    .PARAMETER Priqdepth
        Queue depth threshold value per priorirty level. If the queue size (number of requests in the queue of that particular priorirty) on the virtual server to which this policy is bound, increases to the specified qDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Retryonreset
        Retry on TCP Reset. Default value: NO Possible values = YES, NO
    .PARAMETER RetryonTimeout
        Retry on request Timeout(in millisec) upon sending request to backend servers. Minimum value = 30 Maximum value = 2000
    .PARAMETER TCPProfile
        Bind TCP Profile based on L2/L3/L7 parameters. Minimum length = 1 Maximum length = 127
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSUnsetAppQoEAction -Name 'example' -AltContentPath -PassThru
    .EXAMPLE
        Invoke-NSUnsetAppQoEAction -Name 'example' -AltContentPath -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [switch] $AltContentPath,

        [Parameter()]
        [switch] $AltContentSvcName,

        [Parameter()]
        [switch] $Delay,

        [Parameter()]
        [ValidateSet('SimpleResponse', 'HICResponse')]
        [switch] $DosAction,

        [Parameter()]
        [switch] $MaxConn,

        [Parameter()]
        [switch] $Numretries,

        [Parameter()]
        [switch] $Polqdepth,

        [Parameter()]
        [ValidateSet('HIGH', 'MEDIUM', 'LOW', 'LOWEST')]
        [switch] $Priority,

        [Parameter()]
        [switch] $Priqdepth,

        [Parameter()]
        [ValidateSet('YES', 'NO')]
        [switch] $Retryonreset,

        [Parameter()]
        [switch] $RetryonTimeout,

        [Parameter()]
        [switch] $TCPProfile,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $body = @{ name = $Name }
        if ($PSBoundParameters.ContainsKey('AltContentPath')) { $body['altcontentpath'] = $true }
        if ($PSBoundParameters.ContainsKey('AltContentSvcName')) { $body['altcontentsvcname'] = $true }
        if ($PSBoundParameters.ContainsKey('Delay')) { $body['delay'] = $true }
        if ($PSBoundParameters.ContainsKey('DosAction')) { $body['dosaction'] = $true }
        if ($PSBoundParameters.ContainsKey('MaxConn')) { $body['maxconn'] = $true }
        if ($PSBoundParameters.ContainsKey('Numretries')) { $body['numretries'] = $true }
        if ($PSBoundParameters.ContainsKey('Polqdepth')) { $body['polqdepth'] = $true }
        if ($PSBoundParameters.ContainsKey('Priority')) { $body['priority'] = $true }
        if ($PSBoundParameters.ContainsKey('Priqdepth')) { $body['priqdepth'] = $true }
        if ($PSBoundParameters.ContainsKey('Retryonreset')) { $body['retryonreset'] = $true }
        if ($PSBoundParameters.ContainsKey('RetryonTimeout')) { $body['retryontimeout'] = $true }
        if ($PSBoundParameters.ContainsKey('TCPProfile')) { $body['tcpprofile'] = $true }

        if ($body.Count -le 1) {
            throw 'Specify at least one property switch to clear.'
        }

        if ($PSCmdlet.ShouldProcess("$Name", 'Clear appqoeaction properties')) {
            $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoeaction -Action unset -Payload @{ appqoeaction = $body } -RawResponse

            if ($PassThru) {
                return Invoke-NSGetAppQoEAction -Name $Name -Session $Session
            }

            return $response
        }
    }
}
# endregion Invoke-NSUnsetAppQoEAction

# region Invoke-NSUnsetAppQoEParameter
function Invoke-NSUnsetAppQoEParameter {
    <#
    .SYNOPSIS
        Clears one or more NetScaler appqoeparameter resource properties.
    .DESCRIPTION
        Configuration for QOS parameter resource.
    .PARAMETER AvgwaitingClient
        average number of client connections, that can sit in service waiting queue. Default value: 1000000 Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Dosattackthresh
        average number of client connection that can queue up on vserver level without triggering DoS mitigation module. Default value: 2000 Minimum value = 0 Maximum value = 4294967294
    .PARAMETER MaxAltResponseBandwidth
        maximum bandwidth which will determine whether to send alternate content response. Default value: 100 Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Sessionlife
        Time, in seconds, between the first time and the next time the AppQoE alternative content window is displayed. The alternative content window is displayed only once during a session for the same browser accessing a configured URL, so this parameter determines the length of a session. Default value: 300 Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSUnsetAppQoEParameter -AvgwaitingClient -PassThru
    .EXAMPLE
        Invoke-NSUnsetAppQoEParameter -AvgwaitingClient -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter()]
        [switch] $AvgwaitingClient,

        [Parameter()]
        [switch] $Dosattackthresh,

        [Parameter()]
        [switch] $MaxAltResponseBandwidth,

        [Parameter()]
        [switch] $Sessionlife,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $body = @{}
        if ($PSBoundParameters.ContainsKey('AvgwaitingClient')) { $body['avgwaitingclient'] = $true }
        if ($PSBoundParameters.ContainsKey('Dosattackthresh')) { $body['dosattackthresh'] = $true }
        if ($PSBoundParameters.ContainsKey('MaxAltResponseBandwidth')) { $body['maxaltrespbandwidth'] = $true }
        if ($PSBoundParameters.ContainsKey('Sessionlife')) { $body['sessionlife'] = $true }

        if ($body.Count -le 0) {
            throw 'Specify at least one property switch to clear.'
        }

        if ($PSCmdlet.ShouldProcess('appqoeparameter', 'Clear appqoeparameter properties')) {
            $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoeparameter -Action unset -Payload @{ appqoeparameter = $body } -RawResponse

            return $response
        }
    }
}
# endregion Invoke-NSUnsetAppQoEParameter

# region Invoke-NSUpdateAppQoEAction
function Invoke-NSUpdateAppQoEAction {
    <#
    .SYNOPSIS
        Updates a NetScaler appqoeaction resource.
    .DESCRIPTION
        Configuration for AppQoS action resource.
    .PARAMETER AltContentPath
        Path to the alternative content service to be used in the ACS. Minimum length = 4 Maximum length = 127
    .PARAMETER AltContentSvcName
        Name of the alternative content service to be used in the ACS. Minimum length = 1 Maximum length = 127
    .PARAMETER Delay
        Delay threshold, in microseconds, for requests that match the policy's rule. If the delay statistics gathered for the matching request exceed the specified delay, configured action triggered for that request, if there is no action then requests are dropped to the lowest priority level. Minimum value = 1 Maximum value = 599999999
    .PARAMETER DosAction
        DoS Action to take when vserver will be considered under DoS attack and corresponding rule matches. Mandatory if AppQoE actions are to be used for DoS attack prevention. Possible values = SimpleResponse, HICResponse
    .PARAMETER Dostrigexpression
        Optional expression to add second level check to trigger DoS actions. Specifically used for Analytics based DoS response generation.
    .PARAMETER MaxConn
        Maximum number of concurrent connections that can be open for requests that matches with rule. Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Name
        Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument.
    .PARAMETER Numretries
        Retry count. Default value: 3 Minimum value = 0 Maximum value = 7
    .PARAMETER Polqdepth
        Policy queue depth threshold value. When the policy queue size (number of requests queued for the policy binding this action is attached to) increases to the specified polqDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Priority
        Priority for queuing the request. If server resources are not available for a request that matches the configured rule, this option specifies a priority for queuing the request until the server resources are available again. If priority is not configured then Lowest priority will be used to queue the request. Possible values = HIGH, MEDIUM, LOW, LOWEST
    .PARAMETER Priqdepth
        Queue depth threshold value per priorirty level. If the queue size (number of requests in the queue of that particular priorirty) on the virtual server to which this policy is bound, increases to the specified qDepth value, subsequent requests are dropped to the lowest priority level. Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Retryonreset
        Retry on TCP Reset. Default value: NO Possible values = YES, NO
    .PARAMETER RetryonTimeout
        Retry on request Timeout(in millisec) upon sending request to backend servers. Minimum value = 30 Maximum value = 2000
    .PARAMETER TCPProfile
        Bind TCP Profile based on L2/L3/L7 parameters. Minimum length = 1 Maximum length = 127
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSUpdateAppQoEAction -Name 'example' -PassThru
    .EXAMPLE
        Invoke-NSUpdateAppQoEAction -Name 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter()]
        [string] $AltContentPath,

        [Parameter()]
        [string] $AltContentSvcName,

        [Parameter()]
        [int] $Delay,

        [Parameter()]
        [ValidateSet('SimpleResponse', 'HICResponse')]
        [string] $DosAction,

        [Parameter()]
        [string] $Dostrigexpression,

        [Parameter()]
        [int] $MaxConn,

        [Parameter(Mandatory, Position = 0)]
        [string] $Name,

        [Parameter()]
        [int] $Numretries,

        [Parameter()]
        [int] $Polqdepth,

        [Parameter()]
        [ValidateSet('HIGH', 'MEDIUM', 'LOW', 'LOWEST')]
        [string] $Priority,

        [Parameter()]
        [int] $Priqdepth,

        [Parameter()]
        [ValidateSet('YES', 'NO')]
        [string] $Retryonreset,

        [Parameter()]
        [int] $RetryonTimeout,

        [Parameter()]
        [string] $TCPProfile,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

    $transportParameters = @{}
    if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
    if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
    if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

    $properties = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    if ($PSBoundParameters.ContainsKey('AltContentPath')) { $properties['altcontentpath'] = $AltContentPath }
    if ($PSBoundParameters.ContainsKey('AltContentSvcName')) { $properties['altcontentsvcname'] = $AltContentSvcName }
    if ($PSBoundParameters.ContainsKey('Delay')) { $properties['delay'] = $Delay }
    if ($PSBoundParameters.ContainsKey('DosAction')) { $properties['dosaction'] = $DosAction }
    if ($PSBoundParameters.ContainsKey('Dostrigexpression')) { $properties['dostrigexpression'] = $Dostrigexpression }
    if ($PSBoundParameters.ContainsKey('MaxConn')) { $properties['maxconn'] = $MaxConn }
    if ($PSBoundParameters.ContainsKey('Name')) { $properties['name'] = $Name }
    if ($PSBoundParameters.ContainsKey('Numretries')) { $properties['numretries'] = $Numretries }
    if ($PSBoundParameters.ContainsKey('Polqdepth')) { $properties['polqdepth'] = $Polqdepth }
    if ($PSBoundParameters.ContainsKey('Priority')) { $properties['priority'] = $Priority }
    if ($PSBoundParameters.ContainsKey('Priqdepth')) { $properties['priqdepth'] = $Priqdepth }
    if ($PSBoundParameters.ContainsKey('Retryonreset')) { $properties['retryonreset'] = $Retryonreset }
    if ($PSBoundParameters.ContainsKey('RetryonTimeout')) { $properties['retryontimeout'] = $RetryonTimeout }
    if ($PSBoundParameters.ContainsKey('TCPProfile')) { $properties['tcpprofile'] = $TCPProfile }

    $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    foreach ($key in $properties.Keys) {
        if ($null -ne $properties[$key] -and (-not ($properties[$key] -is [string]) -or $properties[$key] -ne '')) {
            $body[$key] = $properties[$key]
        }
    }

    if ($PSCmdlet.ShouldProcess("$Name", 'Update appqoeaction')) {
        $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method PUT -Task config -Type appqoeaction -Payload @{ appqoeaction = $body } -RawResponse

        if ($PassThru) {
            return Invoke-NSGetAppQoEAction -Name $Name -Session $Session
        }

        return $response
    }
}
# endregion Invoke-NSUpdateAppQoEAction

# region Invoke-NSUpdateAppQoECustomResponse
function Invoke-NSUpdateAppQoECustomResponse {
    <#
    .SYNOPSIS
        Invokes the change operation for a NetScaler appqoecustomresp resource.
    .DESCRIPTION
        Configuration for AppQoE custom response page resource.
    .PARAMETER Name
        Indicates name of the custom response HTML page to import/update. Minimum length = 1 Maximum length = 31
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .EXAMPLE
        Invoke-NSUpdateAppQoECustomResponse -Name 'example'
    .EXAMPLE
        Invoke-NSUpdateAppQoECustomResponse -Name 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory, Position = 0, ValueFromPipelineByPropertyName)]
        [string] $Name,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning
    )

    process {
        $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

        $transportParameters = @{}
        if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
        if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
        if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

        $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
        if ($PSBoundParameters.ContainsKey('Name')) { $body['name'] = $Name }

        if ($PSCmdlet.ShouldProcess('appqoecustomresp', 'Change appqoecustomresp')) {
            Invoke-NSRestRequest @transportParameters -Session $Session -Method POST -Task config -Type appqoecustomresp -Action update -Payload @{ appqoecustomresp = $body } -RawResponse
        }
    }
}
# endregion Invoke-NSUpdateAppQoECustomResponse

# region Invoke-NSUpdateAppQoEParameter
function Invoke-NSUpdateAppQoEParameter {
    <#
    .SYNOPSIS
        Updates a NetScaler appqoeparameter resource.
    .DESCRIPTION
        Configuration for QOS parameter resource.
    .PARAMETER AvgwaitingClient
        average number of client connections, that can sit in service waiting queue. Default value: 1000000 Minimum value = 0 Maximum value = 4294967294
    .PARAMETER Dosattackthresh
        average number of client connection that can queue up on vserver level without triggering DoS mitigation module. Default value: 2000 Minimum value = 0 Maximum value = 4294967294
    .PARAMETER MaxAltResponseBandwidth
        maximum bandwidth which will determine whether to send alternate content response. Default value: 100 Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Sessionlife
        Time, in seconds, between the first time and the next time the AppQoE alternative content window is displayed. The alternative content window is displayed only once during a session for the same browser accessing a configured URL, so this parameter determines the length of a session. Default value: 300 Minimum value = 1 Maximum value = 4294967294
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSUpdateAppQoEParameter -PassThru
    .EXAMPLE
        Invoke-NSUpdateAppQoEParameter -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter()]
        [int] $AvgwaitingClient,

        [Parameter()]
        [int] $Dosattackthresh,

        [Parameter()]
        [int] $MaxAltResponseBandwidth,

        [Parameter()]
        [int] $Sessionlife,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

    $transportParameters = @{}
    if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
    if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
    if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

    $properties = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    if ($PSBoundParameters.ContainsKey('AvgwaitingClient')) { $properties['avgwaitingclient'] = $AvgwaitingClient }
    if ($PSBoundParameters.ContainsKey('Dosattackthresh')) { $properties['dosattackthresh'] = $Dosattackthresh }
    if ($PSBoundParameters.ContainsKey('MaxAltResponseBandwidth')) { $properties['maxaltrespbandwidth'] = $MaxAltResponseBandwidth }
    if ($PSBoundParameters.ContainsKey('Sessionlife')) { $properties['sessionlife'] = $Sessionlife }

    $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    foreach ($key in $properties.Keys) {
        if ($null -ne $properties[$key] -and (-not ($properties[$key] -is [string]) -or $properties[$key] -ne '')) {
            $body[$key] = $properties[$key]
        }
    }

    if ($PSCmdlet.ShouldProcess('appqoeparameter', 'Update appqoeparameter')) {
        $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method PUT -Task config -Type appqoeparameter -Payload @{ appqoeparameter = $body } -RawResponse

        return $response
    }
}
# endregion Invoke-NSUpdateAppQoEParameter

# region Invoke-NSUpdateAppQoEPolicy
function Invoke-NSUpdateAppQoEPolicy {
    <#
    .SYNOPSIS
        Updates a NetScaler appqoepolicy resource.
    .DESCRIPTION
        Configuration for AppQoS policy resource.
    .PARAMETER Action
        Configured AppQoE action to trigger. Minimum length = 1
    .PARAMETER Name
        . Minimum length = 1
    .PARAMETER Rule
        Expression or name of a named expression, against which the request is evaluated. The policy is applied if the rule evaluates to true.
    .PARAMETER Session
        The NetScaler session. If omitted, the current default session is used.
    .PARAMETER IgnoreNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ReturnNullOnNotFound
        Returns null instead of throwing for known NITRO not-found responses.
    .PARAMETER ThrowOnWarning
        Treats NITRO warning responses as terminating errors.
    .PARAMETER PassThru
        Returns the updated resource after the operation completes.
    .EXAMPLE
        Invoke-NSUpdateAppQoEPolicy -Name 'example' -PassThru
    .EXAMPLE
        Invoke-NSUpdateAppQoEPolicy -Name 'example' -WhatIf
    .OUTPUTS
        System.Management.Automation.PSCustomObject
    .NOTES
        Generated from NetScaler NITRO API metadata.
        Generated: 2026-06-01 21:28
        Supported metadata versions: 13.1, 14.1.
    #>

    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter()]
        [string] $Action,

        [Parameter(Mandatory, Position = 0)]
        [string] $Name,

        [Parameter()]
        [string] $Rule,

        [Parameter()]
        [psobject] $Session = (Get-NSSession),

        [Parameter()]
        [switch] $IgnoreNotFound,

        [Parameter()]
        [switch] $ReturnNullOnNotFound,

        [Parameter()]
        [switch] $ThrowOnWarning,

        [Parameter()]
        [switch] $PassThru
    )

    $metadataVersion = Resolve-NSMetadataVersion -Session $Session -SupportedVersion @('13.1', '14.1')

    $transportParameters = @{}
    if ($PSBoundParameters.ContainsKey('IgnoreNotFound')) { $transportParameters.IgnoreNotFound = $IgnoreNotFound }
    if ($PSBoundParameters.ContainsKey('ReturnNullOnNotFound')) { $transportParameters.ReturnNullOnNotFound = $ReturnNullOnNotFound }
    if ($PSBoundParameters.ContainsKey('ThrowOnWarning')) { $transportParameters.ThrowOnWarning = $ThrowOnWarning }

    $properties = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    if ($PSBoundParameters.ContainsKey('Action')) { $properties['action'] = $Action }
    if ($PSBoundParameters.ContainsKey('Name')) { $properties['name'] = $Name }
    if ($PSBoundParameters.ContainsKey('Rule')) { $properties['rule'] = $Rule }

    $body = [System.Collections.Generic.Dictionary[string, object]]::new([System.StringComparer]::Ordinal)
    foreach ($key in $properties.Keys) {
        if ($null -ne $properties[$key] -and (-not ($properties[$key] -is [string]) -or $properties[$key] -ne '')) {
            $body[$key] = $properties[$key]
        }
    }

    if ($PSCmdlet.ShouldProcess("$Name", 'Update appqoepolicy')) {
        $response = Invoke-NSRestRequest @transportParameters -Session $Session -Method PUT -Task config -Type appqoepolicy -Payload @{ appqoepolicy = $body } -RawResponse

        if ($PassThru) {
            return Invoke-NSGetAppQoEPolicy -Name $Name -Session $Session
        }

        return $response
    }
}
# endregion Invoke-NSUpdateAppQoEPolicy

# SIG # Begin signature block
# MIImdwYJ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