context object for the API gateway

The context object can access and manipulate variables in the API context, the HTTP message payload, and the HTTP message header during the processing of the assembly rule in the API gateway. For the context object of all traditional DataPower® services, see context object for traditional DataPower services.

The context object is used for the assembly processing by API gateway services.

To create a message object that represents a request or response, use the context.createMessage() API.

To retrieve the value of a specific message object, use the context.getMessage() API.

The context object for the API gateway supports the following APIs.
The message object for the API gateway supports the following APIs.