Context Variable within a Cluster-Wide Property

Document ID : KB000107922
Last Modified Date : 13/08/2018
Show Technical Document Details
Question:
  • Is it possible to have a context variable within a cluster wide property?
Environment:
  • All CA API Gateway versions
Answer:
  • Cluster-wide properties do not take context variables.
  • You can concatenate cluster-wide properties and context variables in assertions such as Return Template Response to Requestor. An example of this is below, where you can have the following all in the same assertion to collect multiple values from context variables in the same response:
SUCCESS! The request was received.
Time of the Request: ${request.time}
Content-Type of the Request: ${request.contentType}
Body of the Request: ${request.mainpart}
Additional Information: