Invoke ADCGetCrpolicy - j81blog/J81.ADCToolkit GitHub Wiki

Invoke-ADCGetCrpolicy

SYNOPSIS

Get Cache Redirection configuration object(s).

SYNTAX

GetAll (Default)

Invoke-ADCGetCrpolicy [-Filter <Hashtable>] [-GetAll] [-ViewSummary] [<CommonParameters>]

GetByResource

Invoke-ADCGetCrpolicy [-Policyname <String>] [-Filter <Hashtable>] [<CommonParameters>]

Count

Invoke-ADCGetCrpolicy [-Count] [-Filter <Hashtable>] [<CommonParameters>]

Get

Invoke-ADCGetCrpolicy [-Filter <Hashtable>] [-ViewSummary] [<CommonParameters>]

DESCRIPTION

Configuration for cache redirection policy resource.

EXAMPLES

EXAMPLE 1

Invoke-ADCGetCrpolicy

Get data.

EXAMPLE 2

Invoke-ADCGetCrpolicy -GetAll

Get all crpolicy data.

EXAMPLE 3

Invoke-ADCGetCrpolicy -Count

Get the number of crpolicy objects.

EXAMPLE 4

Invoke-ADCGetCrpolicy -name <string>

Get crpolicy object by specifying for example the name.

EXAMPLE 5

Invoke-ADCGetCrpolicy -Filter @{ 'name'='<value>' }

Get crpolicy data with a filter.

PARAMETERS

-Policyname

Name for the cache redirection policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the policy is created.

Type: String
Parameter Sets: GetByResource
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Count

If specified, the count of the crpolicy object(s) will be returned.

Type: SwitchParameter
Parameter Sets: Count
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Filter

Specify a filter. -Filter @{ 'name'='<value>' }

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: @{ }
Accept pipeline input: False
Accept wildcard characters: False

-GetAll

Retrieve all crpolicy object(s).

Type: SwitchParameter
Parameter Sets: GetAll
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ViewSummary

When specified, only a summary of information is returned.

Type: SwitchParameter
Parameter Sets: GetAll, Get
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

File Name : Invoke-ADCGetCrpolicy Version : v2111.2521 Author : John Billekens Reference : https://developer-docs.citrix.com/projects/citrix-adc-nitro-api-reference/en/latest/configuration/cr/crpolicy/ Requires : PowerShell v5.1 and up ADC 13.x and up. ADC 12 and lower may work, not guaranteed.

RELATED LINKS

https://blog.j81.nl

⚠️ **GitHub.com Fallback** ⚠️