Try WSO2 Cloud for Free
Sign in

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Property name

Description

API_NAME

The name of the API. e.g., MyAPI

AM_KEY_TYPE

The type of the oauth key used for invoking the API. e.g., Production/Sandbox

SYNAPSE_REST_API_VERSION

Retrieves the version of the API. E.g., 1.0.0.

REST_SUB_REQUEST_PATH

Retrieves the sub request with path and query parameters. e.g.,"/CheckPhoneNumber?PhoneNumber=1234567&LicenseKey=0".

REST_API_CONTEXT or api.ut.context

Retrieves the context of the API in the form /t/tenantDomain/context/version for an API. e.g., "/t/tenant/new/1.0.0".

REST_FULL_REQUEST_PATH

Retrieves the entire request path. e.g., "/t/tenant/new/1.0.0/CheckPhoneNumber?PhoneNumber=1234567&LicenseKey=0".

SYNAPSE_REST_API_VERSION_STRATEGY

For example, "context".

TRANSPORT_IN_NAME

Retrieves the transport. (e.g., "https")

SYNAPSE_REST_API

Retrieves the name of the API. (e.g., "admin-AT-tenant.com--NewAPI:v1.0.0")

api.ut.HTTP_METHOD

The HTTP method which was used for the invocation. (e.g., GET/POST)

api.ut.application.name

The name of the OAuth2 application used for the invocation. (e.g., DefaultApplication)

api.ut.apiPublisher

The name of the person who published the API.  (e.g., clouduser@gmail.com@wso2cloudcom@wso2cloud)

api.ut.userId

The user who invoked the API. (e.g., subuser@gmail.com@wso2cloudcom@wso2cloud)


You can use these properties inside the in sequence of the API to log details. The following sample sequence is used to log the API name of the invoked API. Save the following code as an xml file. For instructions on adding this custom sequence to your API, see Add a Custom Sequence to your API.

...