Visualizzazione dei server di integrazione utilizzando l'API REST di amministrazione
È possibile utilizzare l'API REST di amministrazione di IBM® App Connect Enterprise per visualizzare le proprietà dei server di integrazione gestiti.
Prima di iniziare
Procedura
- Visualizzare le proprietà di un server di integrazione:
GET http://hostname:port/apiv2/servers/integrationServerNameAd esempio, per visualizzare le proprietà del server di integrazione ACESERV1, eseguire il seguente comando curl:
curl -X GET http://hostname:port/apiv2/servers/ACESERV1Se il comando ha successo, vengono restituiti un codice di stato HTTP 200 e una risposta simile alla seguente:{ "hasChildren": true, "name": "ACESERV1", "type": "integrationServer", "uri": "/apiv2/servers/ACESERV1", "properties": { "brokerDefaultCCSID": "5348", "dataSourceName": "", "dataSourcePassword": "********", "dataSourceUserId": "LocalSystem", "defaultConfigurationTimeout": 300, "defaultQueueManager": "", "forceServerHTTPS": false, "jvmDebugPort": 0, "jvmMaxHeapSize": 268435456, "jvmMinHeapSize": 33554432, "lilPath": "", "mqTrustedQueueManager": "no", "name": "ACESERV1", "stopIfDefaultQMUnavailable": false, "trace": "none", "traceNodeLevel": true, "traceSize": "1G", "type": "IntegrationServer" }, "descriptiveProperties": { "buildLevel": "ib000-L200318.17215 (S000-L200318.16524)", "platformArchitecture": "AMD64", "platformName": "Windows 10 Enterprise", "platformVersion": "6.3 build 19041 ", "productName": "IBM App Connect Enterprise", "version": "11.0.0.8" }, "active": { "defaultApplicationName": "ACESERV1_DefaultApplication", "exceptionLoggingOn": false, "isRunning": true, "lastMessageEpoch": 0, "lastMessageTime": "1970-01-01T00:00:00Z", "monitoring": "inactive", "monitoringProfile": "", "processId": 24096, "serviceTraceOn": false, "startupEpoch": 1604864621, "startupTime": "2020-11-08T19:43:41Z", "state": "started", "userTraceOn": false }, "links": [] }Inoltre, è possibile utilizzare il parametro di query di profondità nella chiamata API per ottenere informazioni su ulteriori proprietà del server di integrazione. Ad esempio, utilizza il seguente comando curl:curl -X GET http://hostname:port/apiv2/servers/ACESERV1?depth=2 - Visualizzare le proprietà di tutti i server di integrazione gestiti:
GET http://hostname:port/apiv2/serversAd esempio, immetti il seguente comando curl:
curl -X GET http://hostname:port/apiv2/serversSe il comando ha successo, vengono restituiti un codice di stato HTTP 200 e una risposta simile alla seguente:{ "type": "integrationServers", "children": [ { "name": "ACESERV1", "hasChildren": true, "uri": "/apiv2/servers/ACESERV1", "type": "integrationServer", "active": { "processId": 22920, "isRunning": true, "state": "started" } }, { "name": "ACESERV2", "hasChildren": true, "uri": "/apiv2/servers/ACESERV2", "type": "integrationServer", "active": { "processId": 24536, "isRunning": true, "state": "started" } } ] }Inoltre, è possibile utilizzare il parametro di query di profondità nella chiamata API per ottenere informazioni su ulteriori proprietà del server di integrazione. Ad esempio, utilizza il seguente comando curl:curl -X GET http://hostname:port/apiv2/servers?depth=2