Displaying service trace properties for an integration server by using the administration REST API

You can use the IBM® App Connect Enterprise administration REST API to display service trace properties for an integration server.

Before you begin

Read the following topics:

Procedure

You can use one of the following REST API methods to query the service trace properties of an integration server.

  • For an independent integration server:
    GET http://hostname:port/apiv2/trace/service-trace
    For example, use the following curl command:
    curl -X GET http://hostname:port/apiv2/trace/service-trace
    A response similar to the following is returned:
    {
        "hasChildren": false,
        "name": "service-trace",
        "type": "serviceTrace",
        "uri": "/apiv2/trace/service-trace",
        "properties": {
            "identifier": "service-trace",
            "name": "service-trace",
            "stopOn": "",
            "traceLevel": "debug",
            "traceMode": "safe",
            "traceSizeKb": 2048576,
            "type": "serviceTrace"
        },
        "descriptiveProperties": {},
        "active": {
            "stopOn": "",
            "traceLevel": "debug",
            "traceMode": "safe",
            "traceSizeKb": 2048576
        },
        "actions": {},
        "children": {},
        "links": []
    }
    
  • For an integration server that is managed by an integration node:
    GET http://hostname:port/apiv2/servers/integrationServerName/trace/service-trace

    For example, use the following curl command to get information on the current service trace settings for integration server ACESERV1:

    curl -X GET http://hostname:port/apiv2/servers/ACESERV1/trace/service-trace