Context Variable within a Cluster-Wide Property

book

Article ID: 107922

calendar_today

Updated On:

Products

CA API Gateway (Layer 7) SA94 to API SECURITY STARTER PACK-7 CA Rapid App Security MOBILE API GATEWAY CA Mobile - API Gateway CA API Gateway

Issue/Introduction



  • Is it possible to have a context variable within a cluster wide property?

Environment

  • All CA API Gateway versions

Resolution

  • 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