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

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

Before you begin

Read the following topics:

Procedure

Use one of the following REST API methods to query the trace properties of an integration server.

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

    For example, use the following curl command to query the trace properties of integration server ACESERV1:

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

    A response similar to the following is returned:

    {
        "hasChildren": true,
        "name": "trace",
        "type": "trace",
        "uri": "/apiv2/servers/ACESERV1/trace",
        "properties": {
            "name": "",
            "type": ""
        },
        "descriptiveProperties": {},
        "active": {},
        "actions": {},
        "children": {
            "userTrace": {
                "hasChildren": false,
                "name": "user-trace",
                "type": "userTrace",
                "uri": "/apiv2/servers/ACESERV1/trace/user-trace"
            },
            "serviceTrace": {
                "hasChildren": false,
                "name": "service-trace",
                "type": "serviceTrace",
                "uri": "/apiv2/servers/ACESERV1/trace/service-trace"
            },
            "traceNodes": {
                "hasChildren": false,
                "name": "trace-nodes",
                "type": "traceNodes",
                "uri": "/apiv2/servers/ACESERV1/trace/trace-nodes"
            }
        },
        "links": []
    }