This node defines the transformations which will take place on responses. This entry is an array and can be used to specify multiple transformations.
|name||string||The name which is associated with this transformation.|
|host||string||The host (obtained from the host header in the request) for which this transformation will take place. If no host header is specified all hosts will be matched.|
|paths||Array of string||The paths for which this transformation will take place. If the wildcard "*" is specified all paths will be matched. This entry is an array and can be used to specify multiple paths.|
|method||string||The HTTP method for which this transformation will take place. If the wildcard "*" is specified all methods will be matched.|
|rule||string||The HTTP transformation rule.|
|attributes||Array of string||If the rule is a legacy XSLT based rule, this entry specifies the credential attributes which will be included in the XML input document, used when evaluating the HTTP transformation rule. The attributes will be stored in the HTTPResponse/credential/attributes/attribute path of the XML document.|
This is entry is not required and has no effect when using a Lua transformation rule.
policies: http_transformations: response: - name: resource_1_rule host: www.test.com paths: - "/resource_1" - "/alt/resource_1" method: GET rule: "@http_trans_rule.lua" - name: legacy_xslt_rule host: www.test.com paths: - "/legacy" method: GET rule: "@legacy_rule.xsl" attributes: - AZN_CRED_PRINCIPAL_NAME
Updated about 1 year ago