Invoke ADCAddFeoaction - j81blog/J81.ADCToolkit GitHub Wiki

Invoke-ADCAddFeoaction

SYNOPSIS

Add Front configuration Object.

SYNTAX

Invoke-ADCAddFeoaction [-Name] <String> [[-Pageextendcache] <Boolean>] [[-Cachemaxage] <Double>]
 [[-Imgshrinktoattrib] <Boolean>] [[-Imggiftopng] <Boolean>] [[-Imgtowebp] <Boolean>]
 [[-Imgtojpegxr] <Boolean>] [[-Imginline] <Boolean>] [[-Cssimginline] <Boolean>] [[-Jpgoptimize] <Boolean>]
 [[-Imglazyload] <Boolean>] [[-Cssminify] <Boolean>] [[-Cssinline] <Boolean>] [[-Csscombine] <Boolean>]
 [[-Convertimporttolink] <Boolean>] [[-Jsminify] <Boolean>] [[-Jsinline] <Boolean>] [[-Htmlminify] <Boolean>]
 [[-Cssmovetohead] <Boolean>] [[-Jsmovetoend] <Boolean>] [[-Domainsharding] <String>] [[-Dnsshards] <String[]>]
 [[-Clientsidemeasurements] <Boolean>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Configuration for Front end optimization action resource.

EXAMPLES

EXAMPLE 1

Invoke-ADCAddFeoaction -name <string>

An example how to add feoaction configuration Object(s).

PARAMETERS

-Name

The name of the front end optimization action.

Type: String
Parameter Sets: (All)
Aliases:

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

-Pageextendcache

Extend the time period during which the browser can use the cached resource.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Cachemaxage

Maxage for cache extension.

Type: Double
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: 30
Accept pipeline input: False
Accept wildcard characters: False

-Imgshrinktoattrib

Shrink image dimensions as per the height and width attributes specified in the <img> tag.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Imggiftopng

Convert GIF image formats to PNG formats.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Imgtowebp

Convert JPEG, GIF, PNG image formats to WEBP format.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Imgtojpegxr

Convert JPEG, GIF, PNG image formats to JXR format.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Imginline

Inline images whose size is less than 2KB.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Cssimginline

Inline small images (less than 2KB) referred within CSS files as background-URLs.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Jpgoptimize

Remove non-image data such as comments from JPEG images.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Imglazyload

Download images, only when the user scrolls the page to view them.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Cssminify

Remove comments and whitespaces from CSSs.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Cssinline

Inline CSS files, whose size is less than 2KB, within the main page.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Csscombine

Combine one or more CSS files into one file.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Convertimporttolink

Convert CSS import statements to HTML link tags.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Jsminify

Remove comments and whitespaces from JavaScript.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Jsinline

Convert linked JavaScript files (less than 2KB) to inline JavaScript files.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Htmlminify

Remove comments and whitespaces from an HTML page.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Cssmovetohead

Move any CSS file present within the body tag of an HTML page to the head tag.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Jsmovetoend

Move any JavaScript present in the body tag to the end of the body tag.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Domainsharding

Domain name of the server.

Type: String
Parameter Sets: (All)
Aliases:

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

-Dnsshards

Set of domain names that replaces the parent domain.

Type: String[]
Parameter Sets: (All)
Aliases:

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

-Clientsidemeasurements

Send AppFlow records about the web pages optimized by this action. The records provide FEO statistics, such as the number of HTTP requests that have been reduced for this page. You must enable the Appflow feature before enabling this parameter.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-PassThru

Return details about the created feoaction item.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
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-ADCAddFeoaction Version : v2111.2521 Author : John Billekens Reference : https://developer-docs.citrix.com/projects/citrix-adc-nitro-api-reference/en/latest/configuration/feo/feoaction/ 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** ⚠️