Skip to end of metadata
Go to start of metadata
Contents

The Message Part Identifier allows policies to identify that part of the message from where the values required for various policies needs to be populated. For example, to perform Response Cache based on Query parameter, the key in the policy can be configured as Query Parameter such as ID. 


Figure 1: The dialog box to choose the Identifier Type

Type

The types of message parts are:


Each Message Part type is explained below.

Context Variable

The name can be one of the Context variables defined in the Context Variables section or any variable defined using the Assign Variables Policy.


Figure 2: Context Variable Identifier type with a list of Variable names

Parameter

The name of the query parameter used as the identifier.


Figure 3: Parameter Identifier type with its corresponding attributes

Header

The name of the Header used as the identifier.


Figure 4: Header Identifier type with its corresponding attributes

Constant

This option can be used to define constants as variables. Example: The value of weight in the Quota Policy.


Figure 5: Constant Identifier type with the corresponding attributes

Default Value

The default value is used when the identifier specified is not present in the incoming message. For example, the variable "api.product.name" will not be present unless Verify API Key or OAuth Token End Point is used.

  • No labels