Citrix ADC 12.1 NITRO API Reference

feoaction

Configuration for Front end optimization action resource.

Properties

(click to see Operations)

Name Data Type Permissions Description
name Read-write The name of the front end optimization action.
Minimum length = 1
pageextendcache Read-write Extend the time period during which the browser can use the cached resource.
cachemaxage Read-write Maxage for cache extension.
Default value: 30
Minimum value = 0
Maximum value = 360
imgshrinktoattrib Read-write Shrink image dimensions as per the height and width attributes specified in the tag.
imggiftopng Read-write Convert GIF image formats to PNG formats.
imgtowebp Read-write Convert JPEG, GIF, PNG image formats to WEBP format.
imgtojpegxr Read-write Convert JPEG, GIF, PNG image formats to JXR format.
imginline Read-write Inline images whose size is less than 2KB.
cssimginline Read-write Inline small images (less than 2KB) referred within CSS files as background-URLs.
jpgoptimize Read-write Remove non-image data such as comments from JPEG images.
imglazyload Read-write Download images, only when the user scrolls the page to view them.
cssminify Read-write Remove comments and whitespaces from CSSs.
cssinline Read-write Inline CSS files, whose size is less than 2KB, within the main page.
csscombine Read-write Combine one or more CSS files into one file.
convertimporttolink Read-write Convert CSS import statements to HTML link tags.
jsminify Read-write Remove comments and whitespaces from JavaScript.
jsinline Read-write Convert linked JavaScript files (less than 2KB) to inline JavaScript files.
htmlminify Read-write Remove comments and whitespaces from an HTML page.
cssmovetohead Read-write Move any CSS file present within the body tag of an HTML page to the head tag.
jsmovetoend Read-write Move any JavaScript present in the body tag to the end of the body tag.
domainsharding Read-write Domain name of the server.
dnsshards <String[]> Read-write Set of domain names that replaces the parent domain.
clientsidemeasurements Read-write 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.
imgadddimensions Read-only Add dimension attributes to images, if not specified within the tag.
imgshrinkformobile Read-only Serve smaller images for mobile users.
imgweaken Read-only Reduce the image quality.
jpgprogressive Read-only Convert JPEG image formats to progressive formats.
cssflattenimports Read-only Replace CSS import statements with the file content.
jscombine Read-only Combine one or more JavaScript files into one file.
htmlrmdefaultattribs Read-only Remove default redundant attributes from an HTML file.
htmlrmattribquotes Read-only Remove unnecessary quotes present within the HTML attributes.
htmltrimurls Read-only Trim URLs.
hits Read-only The number of times the action has been taken.
undefhits Read-only Total number of undefined policy hits.
__count Read-only count parameter

Operations

(click to see Properties)

ADD UPDATE UNSET DELETE GET (ALL) GET COUNT

Some options that you can use for each operations:

  • Getting warnings in response:NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the Citrix ADC appliance, the URL is as follows:

    http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".

  • Authenticated access for individual NITRO operations:NITRO allows you to logon to the Citrix ADC appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER:<username>

    X-NITRO-PASS:<password>

    Note:In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

*Note:*

Mandatory parameters are marked in redand placeholder content is marked in <green>.

add

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction

HTTP Method:POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:


{"feoaction":{
<b>"name":<String_value>,
</b>"pageextendcache":<Boolean_value>,
"cachemaxage":<Double_value>,
"imgshrinktoattrib":<Boolean_value>,
"imggiftopng":<Boolean_value>,
"imgtowebp":<Boolean_value>,
"imgtojpegxr":<Boolean_value>,
"imginline":<Boolean_value>,
"cssimginline":<Boolean_value>,
"jpgoptimize":<Boolean_value>,
"imglazyload":<Boolean_value>,
"cssminify":<Boolean_value>,
"cssinline":<Boolean_value>,
"csscombine":<Boolean_value>,
"convertimporttolink":<Boolean_value>,
"jsminify":<Boolean_value>,
"jsinline":<Boolean_value>,
"htmlminify":<Boolean_value>,
"cssmovetohead":<Boolean_value>,
"jsmovetoend":<Boolean_value>,
"domainsharding":<String_value>,
"dnsshards":<String[]_value>,
"clientsidemeasurements":<Boolean_value>
}}

<!--NeedCopy-->

Response:

HTTP Status Code on Success: 201 Created HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the error

update

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction

HTTP Method:PUT

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:


{"feoaction":{
<b>"name":<String_value>,
</b>"pageextendcache":<Boolean_value>,
"cachemaxage":<Double_value>,
"imgshrinktoattrib":<Boolean_value>,
"imggiftopng":<Boolean_value>,
"imgtowebp":<Boolean_value>,
"imgtojpegxr":<Boolean_value>,
"imginline":<Boolean_value>,
"cssimginline":<Boolean_value>,
"jpgoptimize":<Boolean_value>,
"imglazyload":<Boolean_value>,
"cssminify":<Boolean_value>,
"cssinline":<Boolean_value>,
"csscombine":<Boolean_value>,
"convertimporttolink":<Boolean_value>,
"jsminify":<Boolean_value>,
"jsinline":<Boolean_value>,
"htmlminify":<Boolean_value>,
"cssmovetohead":<Boolean_value>,
"jsmovetoend":<Boolean_value>,
"domainsharding":<String_value>,
"dnsshards":<String[]_value>,
"clientsidemeasurements":<Boolean_value>
}}

<!--NeedCopy-->

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the error

unset

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?action=unset

HTTP Method:POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:


{"feoaction":{
<b>"name":<String_value>,
</b>"pageextendcache":true,
"imgshrinktoattrib":true,
"imggiftopng":true,
"imgtowebp":true,
"imgtojpegxr":true,
"imginline":true,
"cssimginline":true,
"jpgoptimize":true,
"imglazyload":true,
"cssminify":true,
"cssinline":true,
"csscombine":true,
"convertimporttolink":true,
"jsminify":true,
"jsinline":true,
"htmlminify":true,
"cssmovetohead":true,
"jsmovetoend":true,
"clientsidemeasurements":true,
"domainsharding":true
}}

<!--NeedCopy-->

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the error

delete

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction/name_value<String>

HTTP Method:DELETE

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the error

get (all)

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction

Query-parameters:

attrs

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

filter

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?filter=property-name1:property-val1,property-name2:property-val2

Use this query-parameter to get the filtered set of feoaction resources configured on Citrix ADC. Filtering can be done on any of the properties of the resource.

view

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?view=summary

Note:By default, the retrieved results are displayed in detail view (?view=detail).

pagination

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?pagesize=#no;pageno=#no

Use this query-parameter to get the feoaction resources in chunks.

HTTP Method:GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:


{ "feoaction": [ {
"name":<String_value>,
"pageextendcache":<Boolean_value>,
"cachemaxage":<Double_value>,
"imgshrinktoattrib":<Boolean_value>,
"imggiftopng":<Boolean_value>,
"imgtowebp":<Boolean_value>,
"imgtojpegxr":<Boolean_value>,
"imgadddimensions":<Boolean_value>,
"imgshrinkformobile":<Boolean_value>,
"imgweaken":<Boolean_value>,
"imginline":<Boolean_value>,
"cssimginline":<Boolean_value>,
"jpgoptimize":<Boolean_value>,
"jpgprogressive":<Boolean_value>,
"imglazyload":<Boolean_value>,
"cssminify":<Boolean_value>,
"cssinline":<Boolean_value>,
"csscombine":<Boolean_value>,
"cssflattenimports":<Boolean_value>,
"convertimporttolink":<Boolean_value>,
"jsminify":<Boolean_value>,
"jsinline":<Boolean_value>,
"jscombine":<Boolean_value>,
"htmlminify":<Boolean_value>,
"htmlrmdefaultattribs":<Boolean_value>,
"htmlrmattribquotes":<Boolean_value>,
"htmltrimurls":<Boolean_value>,
"cssmovetohead":<Boolean_value>,
"jsmovetoend":<Boolean_value>,
"domainsharding":<String_value>,
"dnsshards":<String[]_value>,
"clientsidemeasurements":<Boolean_value>,
"hits":<Double_value>,
"undefhits":<Double_value>
}]}

<!--NeedCopy-->

get

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction/name_value<String>

Query-parameters:

attrs

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction/name_value<String>?attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

view

http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction/name_value<String>?view=summary

Note:By default, the retrieved results are displayed in detail view (?view=detail).

HTTP Method:GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:


{ "feoaction": [ {
"name":<String_value>,
"pageextendcache":<Boolean_value>,
"cachemaxage":<Double_value>,
"imgshrinktoattrib":<Boolean_value>,
"imggiftopng":<Boolean_value>,
"imgtowebp":<Boolean_value>,
"imgtojpegxr":<Boolean_value>,
"imgadddimensions":<Boolean_value>,
"imgshrinkformobile":<Boolean_value>,
"imgweaken":<Boolean_value>,
"imginline":<Boolean_value>,
"cssimginline":<Boolean_value>,
"jpgoptimize":<Boolean_value>,
"jpgprogressive":<Boolean_value>,
"imglazyload":<Boolean_value>,
"cssminify":<Boolean_value>,
"cssinline":<Boolean_value>,
"csscombine":<Boolean_value>,
"cssflattenimports":<Boolean_value>,
"convertimporttolink":<Boolean_value>,
"jsminify":<Boolean_value>,
"jsinline":<Boolean_value>,
"jscombine":<Boolean_value>,
"htmlminify":<Boolean_value>,
"htmlrmdefaultattribs":<Boolean_value>,
"htmlrmattribquotes":<Boolean_value>,
"htmltrimurls":<Boolean_value>,
"cssmovetohead":<Boolean_value>,
"jsmovetoend":<Boolean_value>,
"domainsharding":<String_value>,
"dnsshards":<String[]_value>,
"clientsidemeasurements":<Boolean_value>,
"hits":<Double_value>,
"undefhits":<Double_value>
}]}

<!--NeedCopy-->

count

URL:http://<Citrix-ADC-IP-address(NSIP)>/nitro/v1/config/feoaction?count=yes

HTTP Method:GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for Citrix ADC specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:


{ "feoaction": [ { "__count": "#no"} ] }

<!--NeedCopy-->
feoaction