Displaying trace properties on an integration node by using the administration REST API

You can use the IBM® App Connect Enterprise administration REST API to display the trace properties of an integration node.

Before you begin

Read the following topics:

About this task

You can use the following REST API method to query the trace properties of an integration node:

GET http://hostname:port/apiv2/trace/agent
GET http://hostname:port/apiv2/trace/agent/service-trace
For example, use the following curl command:
CURL -X GET http://hostname:port/apiv2/trace/agent
A response similar to the following is returned:
{
    "name": "agentTrace",
    "type": "trace",
    "children": {
        "serviceTrace": {
            "name": "serviceTrace",
            "type": "serviceTrace",
            "properties": {
                "traceLevel": "none",
                "traceMode": "safe",
                "traceSizeKb": 1048576
            },
            "active": {
                "traceLevel": "none",
                "traceMode": "safe",
                "traceSizeKb": 1048576
            }
        }
    }
}

The properties section displays the values that are persisted and the active section displays the values that are currently in effect.