Retrieving Runtime Attributes
Each server object contains runtime attributes that are read-only. Use the REST API endpoint below to retrieve these attributes. Access the subcategory attributes by making a GET request to the subcategories returned in the links section.
URL Syntax
/management/weblogic/latest/domainRuntime/serverRuntimes/<server-name>
HTTP Methods
- GET
Parameters
Table 17-18 URL Parameters
Names | Description |
---|---|
links | Set to none if you want to remove
the links from the response. Set to an enumerated list of the links
to return. For
example:
|
fields | Set to an enumerated list of the fields to return.
For
example:
|
Examples
Example 17-54 Get the Runtime Attributes
curl -u weblogic:<password> \
'http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1'
Example response:
{
"links": [
{
"rel": "parent",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes"
},
{
"rel": "self",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1"
},
{
"rel": "canonical",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1"
},
{
"rel": "maxThreadsConstraintRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/maxThreadsConstraintRuntimes"
},
{
"rel": "webServerRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/webServerRuntimes"
},
{
"rel": "minThreadsConstraintRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/minThreadsConstraintRuntimes"
},
{
"rel": "pathServiceRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/pathServiceRuntimes"
},
{
"rel": "persistentStoreRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/persistentStoreRuntimes"
},
{
"rel": "serverChannelRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/serverChannelRuntimes"
},
{
"rel": "requestClassRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/requestClassRuntimes"
},
{
"rel": "libraryRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/libraryRuntimes"
},
{
"rel": "executeQueueRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/executeQueueRuntimes"
},
{
"rel": "workManagerRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/workManagerRuntimes"
},
{
"rel": "messagingBridgeRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/messagingBridgeRuntimes"
},
{
"rel": "mailSessionRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/mailSessionRuntimes"
},
{
"rel": "applicationRuntimes",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/applicationRuntimes"
},
{
"rel": "MANAsyncReplicationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/MANAsyncReplicationRuntime"
},
{
"rel": "singleSignOnServicesRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/singleSignOnServicesRuntime"
},
{
"rel": "wseeWsrmRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/wseeWsrmRuntime"
},
{
"rel": "batchJobRepositoryRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/batchJobRepositoryRuntime"
},
{
"rel": "JVMRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/JVMRuntime"
},
{
"rel": "asyncReplicationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/asyncReplicationRuntime"
},
{
"rel": "serverSecurityRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/serverSecurityRuntime"
},
{
"rel": "entityCacheCurrentStateRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/entityCacheCurrentStateRuntime"
},
{
"rel": "SNMPAgentRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SNMPAgentRuntime"
},
{
"rel": "clusterRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime"
},
{
"rel": "joltRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/joltRuntime"
},
{
"rel": "threadPoolRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/threadPoolRuntime"
},
{
"rel": "timerRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/timerRuntime"
},
{
"rel": "defaultExecuteQueueRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/defaultExecuteQueueRuntime"
},
{
"rel": "wseeClusterFrontEndRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/wseeClusterFrontEndRuntime"
},
{
"rel": "logBroadcasterRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/logBroadcasterRuntime"
},
{
"rel": "concurrentManagedObjectsRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/concurrentManagedObjectsRuntime"
},
{
"rel": "entityCacheCumulativeRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/entityCacheCumulativeRuntime"
},
{
"rel": "entityCacheHistoricalRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/entityCacheHistoricalRuntime"
},
{
"rel": "JTARuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/JTARuntime"
},
{
"rel": "connectorServiceRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/connectorServiceRuntime"
},
{
"rel": "MANReplicationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/MANReplicationRuntime"
},
{
"rel": "SAFRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SAFRuntime"
},
{
"rel": "classLoaderRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/classLoaderRuntime"
},
{
"rel": "WLDFRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/WLDFRuntime"
},
{
"rel": "WTCRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/WTCRuntime"
},
{
"rel": "JMSRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/JMSRuntime"
},
{
"rel": "JDBCServiceRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/JDBCServiceRuntime"
},
{
"rel": "WANReplicationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/WANReplicationRuntime"
},
{
"rel": "serverLogRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/serverLogRuntime"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/suspend",
"title": "suspend"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/resume",
"title": "resume"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/getURL",
"title": "getURL"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/getIPv4URL",
"title": "getIPv4URL"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/getIPv6URL",
"title": "getIPv6URL"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/forceRestartPartition",
"title": "forceRestartPartition"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/forceSuspend",
"title": "forceSuspend"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/restartSSLChannels",
"title": "restartSSLChannels"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/forceShutdown",
"title": "forceShutdown"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/shutdown",
"title": "shutdown"
},
{
"rel": "DiameterRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/DiameterRuntime"
},
{
"rel": "search",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/search"
},
{
"rel": "SipPerformanceRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SipPerformanceRuntime"
},
{
"rel": "SipServletSnmpTrapRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SipServletSnmpTrapRuntime"
},
{
"rel": "SipApplicationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SipApplicationRuntime"
},
{
"rel": "SipServerRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/SipServerRuntime"
}
],
"identity": [],
"stateVal": 2,
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 14.1.1.0.0 Thu Mar 26 03:15:09 GMT 2020 2000885",
"adminServerHost": "sample-domain1-admin-server",
"restartRequired": false,
"overallHealthState": {
"state": "ok",
"subsystemName": "ServerRuntime",
"partitionName": null,
"symptoms": []
},
"middlewareHome": "/u01/oracle",
"listenPortEnabled": true,
"weblogicHome": "/u01/oracle/wlserver",
"adminServer": false,
"SSLListenPortEnabled": false,
"state": "RUNNING",
"activationTime": 1636120517390,
"defaultURL": "t3://sample-domain1-managed-server1:8001",
"adminServerListenPort": 7001,
"currentMachine": "",
"patchList": [
"No patches installed"
],
"openSocketsCurrentCount": 12,
"administrationPortEnabled": false,
"administrationURL": "t3://sample-domain1-managed-server1:8001",
"adminServerListenPortSecure": false,
"healthState": {
"state": "ok",
"subsystemName": "ServerRuntime",
"partitionName": null,
"symptoms": []
},
"currentDirectory": "/scratch/pv/domains/sample-domain1/.",
"name": "managed-server1",
"inSitConfigState": true,
"serverClasspath": "/u01/oracle/wlserver/../oracle_common/modules/endorsed/jakarta.annotation.jakarta.annotation-api.jar:/u01/oracle/wlserver/../oracle_common/modules/endorsed/jakarta.xml.ws.jakarta.xml.ws-api.jar:/usr/java/jdk-8/jre/lib/resources.jar:/usr/java/jdk-8/jre/lib/rt.jar:/usr/java/jdk-8/jre/lib/sunrsasign.jar:/usr/java/jdk-8/jre/lib/jsse.jar:/usr/java/jdk-8/jre/lib/jce.jar:/usr/java/jdk-8/jre/lib/charsets.jar:/usr/java/jdk-8/jre/lib/jfr.jar:/usr/java/jdk-8/jre/classes:/usr/java/jdk-8/lib/tools.jar:/u01/oracle/wlserver/server/lib/weblogic.jar:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/u01/oracle/wlserver/modules/features/oracle.wls.common.nodemanager.jar:/u01/oracle/wlserver/sip/server/lib/weblogic_sip.jar:/u01/oracle/occas/server/lib/platform/oracle.sdp.occas.depended.jar:/u01/oracle/wlserver/sip/server/lib/wlss-runtime-rest-proxy.jar:/usr/java/jdk-8/lib/tools.jar:/scratch/pv/domains/sample-domain1/lib/sipactivator.jar"
}
Example 17-55 Retrieve Specific Attributes
To retrieve specific attributes, use the fields
parameter with an enumerated list.
For example:
curl -u weblogic:<password> \
'http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1?links=none&fields=name,weblogicHome'
An example response:
{
"weblogicHome": "/u01/oracle/wlserver",
"name": "managed-server1"
}
Example 17-56 Access the Runtime Attributes of a Subcategory
The links to subcategories are returned in the links
section, as shown above. Make a GET request to one of those links to view the
attributes of that subcategory.
For example:
curl -u weblogic:<password> \
'http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime'
Example response:
{
"links": [
{
"rel": "parent",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1"
},
{
"rel": "self",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime"
},
{
"rel": "canonical",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime"
},
{
"rel": "unicastMessaging",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime/unicastMessaging"
},
{
"rel": "jobSchedulerRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime/jobSchedulerRuntime"
},
{
"rel": "serverMigrationRuntime",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime/serverMigrationRuntime"
},
{
"rel": "action",
"href": "http://10.0.0.1:7001/management/weblogic/latest/domainRuntime/serverRuntimes/managed-server1/clusterRuntime/initiateResourceGroupMigration",
"title": "initiateResourceGroupMigration"
}
],
"identity": [
"clusterRuntime"
],
"activeSingletonServices": [
"managed-server1"
],
"primaryCount": 0,
"fragmentsSentCount": 45358,
"secondaryCount": 0,
"type": "ClusterRuntime",
"detailedSecondariesDistribution": [],
"resendRequestsCount": 0,
"aliveServerCount": 1,
"foreignFragmentsDroppedCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"serverNames": [
"managed-server1"
],
"name": "BEA_ENGINE_TIER_CLUST",
"fragmentsReceivedCount": 0,
"multicastMessagesLostCount": 0,
"secondaryServerDetails": ""
}