4 Domain Level REST API Examples

This chapter contains example scripts for users in domain level roles using WebLogic Server REST APIs to perform common domain and partition management and monitoring tasks. For more information, see Accessing REST Resources.

Topics

Adding Users

The following example script demonstrates how a System Administrator adds users such as Operators, Deployers, and Monitors.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain admin configuring domain level users
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Create a deployer
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName: 'deployer',
  password: 'deployer123',
  description: 'A domain level deployer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName: 'Deployers',
  memberUserOrGroupName: 'deployer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create an operator
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName: 'operator',
  password: 'operator123',
  description: 'A domain level operator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName: 'Operators',
  memberUserOrGroupName: 'operator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a monitor
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName: 'monitor',
  password: 'monitor123',
  description: 'A domain level monitor'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName: 'Monitors',
  memberUserOrGroupName: 'monitor'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
 
 
HTTP/1.1 200 OK
 
Response Body:
{}

Setting Up Servers

The following example script demonstrates how a System Administrator creates a cluster, machine, and dynamic server targeted to the cluster, including setting up resource management for the Managed Servers. For more information about resource management, see "Configuring Resource Consumption Management" in Using WebLogic Server Multitenant.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain admin configuring dynamic servers
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/startEdit
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new cluster
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusterCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "sessionStateQueryRequestTimeout": 30,
    "notes": null,
    "sessionFlushInterval": 180,
    "txnAffinityEnabled": false,
    "fencingGracePeriodMillis": 30000,
    "serviceActivationRequestResponseTimeout": 10000,
    "databaseLeasingBasisConnectionRetryCount": 1,
    "millisToSleepBetweenAutoMigrationAttempts": 180000,
    "migrationBasis": "database",
    "oneWayRmiForReplicationEnabled": false,
    "secureReplicationEnabled": false,
    "WANSessionPersistenceTableName": "WLS_WAN_PERSISTENCE_TABLE",
    "asyncSessionQueueTimeout": 30,
    "clusterType": "none",
    "databaseLeasingBasisConnectionRetryDelay": 1000,
    "defaultLoadAlgorithm": "round-robin",
    "frontendHTTPPort": 0,
    "sessionFlushThreshold": 10000,
    "httpTraceSupportEnabled": false,
    "tags": null,
    "replicationTimeoutEnabled": true,
    "serviceAgeThresholdSeconds": 180,
    "additionalAutoMigrationAttempts": 3,
    "multicastBufferSize": 64,
    "weblogicPluginEnabled": false,
    "healthCheckIntervalMillis": 10000,
    "jobSchedulerTableName": "WEBLOGIC_TIMERS",
    "memberDeathDetectorEnabled": false,
    "multicastTTL": 1,
    "frontendHost": null,
    "clusterAddress": null,
    "interClusterCommLinkHealthCheckInterval": 30000,
    "remoteClusterAddress": null,
    "greedySessionFlushInterval": 3,
    "replicationChannel": "ReplicationChannel",
    "multicastAddress": "239.192.0.0",
    "numberOfServersInClusterAddress": 3,
    "persistSessionsOnShutdown": null,
    "healthCheckPeriodsUntilFencing": 3,
    "sessionStateQueryProtocolEnabled": false,
    "clusterBroadcastChannel": null,
    "multicastSendDelay": 3,
    "multicastDataEncryption": false,
    "messageOrderingEnabled": true,
    "autoMigrationTableName": "ACTIVE",
    "idlePeriodsUntilTimeout": 3,
    "clientCertProxyEnabled": false,
    "multicastPort": 7001,
    "clusterMessagingMode": "unicast",
    "frontendHTTPSPort": 0,
    "dataSourceForSessionPersistence": null,
    "dataSourceForJobScheduler": null,
    "dataSourceForAutomaticMigration": null,
    "coherenceClusterSystemResource": null,
    "candidateMachinesForMigratableServers": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Configure a new cluster
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'Cluster1' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/clusters
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the new cluster
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "clusters",
        "Cluster1"
    ],
    "sessionStateQueryRequestTimeout": 30,
    "notes": null,
    "sessionFlushInterval": 180,
    "txnAffinityEnabled": false,
    "fencingGracePeriodMillis": 30000,
    "serviceActivationRequestResponseTimeout": 10000,
    "type": "Cluster",
    "databaseLeasingBasisConnectionRetryCount": 1,
    "millisToSleepBetweenAutoMigrationAttempts": 180000,
    "migrationBasis": "database",
    "oneWayRmiForReplicationEnabled": false,
    "id": 0,
    "secureReplicationEnabled": false,
    "WANSessionPersistenceTableName": "WLS_WAN_PERSISTENCE_TABLE",
    "asyncSessionQueueTimeout": 30,
    "clusterType": "none",
    "databaseLeasingBasisConnectionRetryDelay": 1000,
    "defaultLoadAlgorithm": "round-robin",
    "frontendHTTPPort": 0,
    "sessionFlushThreshold": 10000,
    "httpTraceSupportEnabled": false,
    "tags": [],
    "replicationTimeoutEnabled": true,
    "serviceAgeThresholdSeconds": 180,
    "additionalAutoMigrationAttempts": 3,
    "name": "Cluster1",
    "sessionLazyDeserializationEnabled": false,
    "multicastBufferSize": 64,
    "weblogicPluginEnabled": false,
    "healthCheckIntervalMillis": 10000,
    "jobSchedulerTableName": "WEBLOGIC_TIMERS",
    "memberDeathDetectorEnabled": false,
    "multicastTTL": 1,
    "frontendHost": null,
    "clusterAddress": null,
    "interClusterCommLinkHealthCheckInterval": 30000,
    "remoteClusterAddress": null,
    "greedySessionFlushInterval": 3,
    "memberWarmupTimeoutSeconds": 0,
    "replicationChannel": "ReplicationChannel",
    "multicastAddress": "239.192.0.0",
    "dynamicallyCreated": false,
    "numberOfServersInClusterAddress": 3,
    "persistSessionsOnShutdown": false,
    "healthCheckPeriodsUntilFencing": 3,
    "sessionStateQueryProtocolEnabled": false,
    "clusterBroadcastChannel": null,
    "multicastSendDelay": 3,
    "multicastDataEncryption": false,
    "messageOrderingEnabled": true,
    "autoMigrationTableName": "ACTIVE",
    "idlePeriodsUntilTimeout": 3,
    "clientCertProxyEnabled": false,
    "multicastPort": 7001,
    "clusterMessagingMode": "unicast",
    "frontendHTTPSPort": 0,
    "dataSourceForSessionPersistence": null,
    "dataSourceForJobScheduler": null,
    "dataSourceForAutomaticMigration": null,
    "coherenceClusterSystemResource": null,
    "servers": [],
    "migratableTargets": [],
    "candidateMachinesForMigratableServers": []
}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new machine
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machineCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "tags": null,
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Configure a new machine
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name:'Machine1' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/machines
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/machines/Machine1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the new machine
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "machines",
        "Machine1"
    ],
    "notes": null,
    "name": "Machine1",
    "id": 0,
    "dynamicallyCreated": false,
    "type": "Machine",
    "tags": []
}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for the machine's node manager configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "machines",
        "Machine1",
        "nodeManager"
    ],
    "adapter": null,
    "notes": null,
    "NMType": "SSL",
    "debugEnabled": false,
    "userName": null,
    "type": "NodeManager",
    "tags": [],
    "shellCommand": null,
    "password": null,
    "listenAddress": "localhost",
    "name": "Machine1",
    "nodeManagerHome": null,
    "adapterVersion": null,
    "adapterName": null,
    "id": 0,
    "dynamicallyCreated": false,
    "listenPort": 5556
}
 
 
 
 
 
----------------------------------------------------------------------
Customize the machine's node manager configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  NMType:        'Plain',
  listenAddress: 'localhost'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the modified node manager configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "machines",
        "Machine1",
        "nodeManager"
    ],
    "adapter": null,
    "notes": null,
    "NMType": "Plain",
    "debugEnabled": false,
    "userName": null,
    "type": "NodeManager",
    "tags": [],
    "shellCommand": null,
    "password": null,
    "listenAddress": "localhost",
    "name": "Machine1",
    "nodeManagerHome": null,
    "adapterVersion": null,
    "adapterName": null,
    "id": 0,
    "dynamicallyCreated": false,
    "listenPort": 5556
}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new server template
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/serverTemplateCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "maxOpenSockCount": -1,
    "interfaceAddress": null,
    "startupTimeout": 0,
    "idleConnectionTimeout": 65,
    "resolveDNSName": false,
    "ignoreSessionsDuringShutdown": false,
    "adminReconnectIntervalSeconds": 10,
    "preferredSecondaryGroup": null,
    "defaultSecureProtocol": "t3s",
    "maxMessageSize": 10000000,
    "stagingDirectoryName": null,
    "outboundPrivateKeyEnabled": false,
    "defaultTGIOPPassword": null,
    "httpTraceSupportEnabled": false,
    "tags": null,
    "useEnhancedIncrementAdvisor": true,
    "completeMessageTimeout": 60,
    "managedServerIndependenceEnabled": true,
    "retryIntervalBeforeMSIMode": 5,
    "nativeIOEnabled": true,
    "startupMode": "RUNNING",
    "externalDNSName": null,
    "JMSConnectionFactoryUnmappedResRefMode": "ReturnDefault",
    "extraEjbcOptions": null,
    "autoMigrationEnabled": null,
    "tunnelingClientPingSecs": 45,
    "instrumentStackTraceEnabled": true,
    "customIdentityKeyStorePassPhrase": null,
    "gracefulShutdownTimeout": 0,
    "outboundEnabled": false,
    "javaStandardTrustKeyStorePassPhrase": null,
    "buzzAddress": null,
    "classpathServletDisabled": false,
    "healthCheckStartDelaySeconds": 120,
    "clientCertProxyEnabled": false,
    "defaultInternalServletsDisabled": false,
    "customIdentityKeyStoreType": null,
    "restartIntervalSeconds": 3600,
    "notes": null,
    "serverLifeCycleTimeoutVal": 30,
    "httpdEnabled": true,
    "javaCompilerPostClassPath": null,
    "buzzPort": 0,
    "keyStores": "DemoIdentityAndDemoTrust",
    "defaultTGIOPUser": "guest",
    "use81StyleExecuteQueues": false,
    "uploadDirectoryName": null,
    "tunnelingClientTimeoutSecs": 40,
    "listenThreadStartDelaySecs": 60,
    "tunnelingEnabled": false,
    "listenAddress": null,
    "acceptBacklog": 300,
    "listenPortEnabled": true,
    "eagerThreadLocalCleanup": false,
    "connectTimeout": 0,
    "printStackTraceInProduction": false,
    "useFusionForLLR": null,
    "clusterWeight": 100,
    "customTrustKeyStorePassPhrase": null,
    "restartDelaySeconds": 0,
    "transactionLogFilePrefix": ".\/",
    "maxConcurrentLongRunningRequests": 100,
    "customTrustKeyStoreFileName": null,
    "socketReaders": -1,
    "threadPoolPercentSocketReaders": 33,
    "JDBCLoginTimeoutSeconds": 0,
    "customTrustKeyStoreType": null,
    "loginTimeoutMillis": 5000,
    "messageIdPrefixEnabled": true,
    "healthCheckIntervalSeconds": 180,
    "useEnhancedPriorityQueueForRequestManager": false,
    "reverseDNSAllowed": false,
    "periodLength": 60000,
    "socketBufferSizeAsChunkSize": false,
    "JDBCLLRTableName": null,
    "buzzEnabled": false,
    "weblogicPluginEnabled": false,
    "useDetailedThreadName": false,
    "stuckThreadTimerInterval": 60,
    "TGIOPEnabled": true,
    "listenersBindEarly": false,
    "JNDITransportableObjectFactoryList": null,
    "NMSocketCreateTimeoutInMillis": 180000,
    "DGCIdlePeriodsUntilTimeout": 5,
    "defaultIIOPUser": null,
    "logRemoteExceptionsEnabled": false,
    "transactionLogFileWritePolicy": "Direct-Write",
    "defaultProtocol": "t3",
    "replicationPorts": null,
    "autoRestart": true,
    "extraRmicOptions": null,
    "customIdentityKeyStoreFileName": null,
    "restartMax": 2,
    "replicationGroup": null,
    "defaultIIOPPassword": null,
    "IIOPEnabled": true,
    "maxConcurrentNewThreads": 100,
    "numOfRetriesBeforeMSIMode": 3,
    "JMSDefaultConnectionFactoriesEnabled": true,
    "allowShrinkingPriorityRequestQueue": true,
    "COMEnabled": false,
    "javaCompilerPreClassPath": null,
    "idlePeriodsUntilTimeout": 4,
    "listenPort": 7001,
    "javaCompiler": "javac",
    "cluster": null,
    "reliableDeliveryPolicy": null,
    "machine": null,
    "XMLEntityCache": null,
    "XMLRegistry": null,
    "coherenceClusterSystemResource": null,
    "candidateMachines": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Configure a new server template for the cluster
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:           'ServerTemplate1',
  listenPort:     7100,
  listenAddress: 'localhost',
  machine:        [ 'machines', 'Machine1' ],
  cluster:        [ 'clusters', 'Cluster1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/serverTemplates
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Turn on resource management for the managed servers
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  arguments: '-XX:+UnlockCommercialFeatures -XX:+ResourceManagement -XX:+UseG1GC'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1/serverStart
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the new server template
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverTemplates",
        "ServerTemplate1"
    ],
    "stagingMode": "stage",
    "maxOpenSockCount": -1,
    "interfaceAddress": null,
    "hostsMigratableServices": true,
    "startupTimeout": 0,
    "idleConnectionTimeout": 65,
    "resolveDNSName": false,
    "ignoreSessionsDuringShutdown": false,
    "type": "ServerTemplate",
    "adminReconnectIntervalSeconds": 10,
    "administrationPort": 9002,
    "preferredSecondaryGroup": null,
    "defaultSecureProtocol": "t3s",
    "id": 0,
    "maxMessageSize": 10000000,
    "completeWriteTimeout": 60,
    "stagingDirectoryName": "\/domains\/mydomain\/servers\/ServerTemplate1\/stage",
    "outboundPrivateKeyEnabled": false,
    "defaultTGIOPPassword": null,
    "httpTraceSupportEnabled": false,
    "tags": [],
    "useEnhancedIncrementAdvisor": true,
    "completeMessageTimeout": 60,
    "managedServerIndependenceEnabled": true,
    "retryIntervalBeforeMSIMode": 5,
    "nativeIOEnabled": true,
    "startupMode": "RUNNING",
    "externalDNSName": null,
    "JMSConnectionFactoryUnmappedResRefMode": "ReturnDefault",
    "administrationProtocol": "t3s",
    "extraEjbcOptions": null,
    "autoMigrationEnabled": false,
    "tunnelingClientPingSecs": 45,
    "instrumentStackTraceEnabled": true,
    "dynamicallyCreated": false,
    "customIdentityKeyStorePassPhrase": null,
    "gracefulShutdownTimeout": 0,
    "outboundEnabled": false,
    "javaStandardTrustKeyStorePassPhrase": null,
    "useConcurrentQueueForRequestManager": false,
    "buzzAddress": null,
    "classpathServletDisabled": false,
    "healthCheckStartDelaySeconds": 120,
    "clientCertProxyEnabled": false,
    "defaultInternalServletsDisabled": false,
    "customIdentityKeyStoreType": null,
    "restartIntervalSeconds": 3600,
    "notes": null,
    "serverLifeCycleTimeoutVal": 30,
    "httpdEnabled": true,
    "javaCompilerPostClassPath": null,
    "buzzPort": 0,
    "keyStores": "DemoIdentityAndDemoTrust",
    "defaultTGIOPUser": "guest",
    "use81StyleExecuteQueues": false,
    "uploadDirectoryName": ".\/servers\/ServerTemplate1\/upload",
    "tunnelingClientTimeoutSecs": 40,
    "listenThreadStartDelaySecs": 60,
    "tunnelingEnabled": false,
    "listenAddress": "localhost",
    "acceptBacklog": 300,
    "listenPortEnabled": true,
    "eagerThreadLocalCleanup": false,
    "connectTimeout": 0,
    "printStackTraceInProduction": false,
    "scatteredReadsEnabled": false,
    "muxerClass": "weblogic.socket.NIOSocketMuxer",
    "useFusionForLLR": false,
    "clusterWeight": 100,
    "customTrustKeyStorePassPhrase": null,
    "restartDelaySeconds": 0,
    "transactionLogFilePrefix": ".\/",
    "maxConcurrentLongRunningRequests": 100,
    "customTrustKeyStoreFileName": null,
    "socketReaders": -1,
    "threadPoolPercentSocketReaders": 33,
    "JDBCLoginTimeoutSeconds": 0,
    "customTrustKeyStoreType": null,
    "loginTimeoutMillis": 5000,
    "messageIdPrefixEnabled": false,
    "healthCheckIntervalSeconds": 180,
    "useEnhancedPriorityQueueForRequestManager": false,
    "name": "ServerTemplate1",
    "reverseDNSAllowed": false,
    "periodLength": 60000,
    "socketBufferSizeAsChunkSize": false,
    "JDBCLLRTableName": null,
    "buzzEnabled": false,
    "weblogicPluginEnabled": false,
    "useDetailedThreadName": false,
    "stuckThreadTimerInterval": 60,
    "TGIOPEnabled": true,
    "listenersBindEarly": false,
    "JNDITransportableObjectFactoryList": [],
    "NMSocketCreateTimeoutInMillis": 180000,
    "DGCIdlePeriodsUntilTimeout": 5,
    "defaultIIOPUser": null,
    "logRemoteExceptionsEnabled": false,
    "transactionLogFileWritePolicy": "Direct-Write",
    "gatheredWritesEnabled": false,
    "defaultProtocol": "t3",
    "replicationPorts": null,
    "autoRestart": true,
    "extraRmicOptions": null,
    "customIdentityKeyStoreFileName": null,
    "restartMax": 2,
    "replicationGroup": null,
    "defaultIIOPPassword": null,
    "IIOPEnabled": true,
    "maxConcurrentNewThreads": 100,
    "numOfRetriesBeforeMSIMode": 3,
    "JMSDefaultConnectionFactoriesEnabled": true,
    "allowShrinkingPriorityRequestQueue": true,
    "addWorkManagerThreadsByCpuCount": false,
    "COMEnabled": false,
    "javaCompilerPreClassPath": null,
    "idlePeriodsUntilTimeout": 4,
    "listenPort": 7100,
    "javaCompiler": "javac",
    "cluster": [
        "clusters",
        "Cluster1"
    ],
    "reliableDeliveryPolicy": null,
    "machine": [
        "machines",
        "Machine1"
    ],
    "XMLEntityCache": null,
    "XMLRegistry": null,
    "coherenceClusterSystemResource": null,
    "candidateMachines": []
}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for the cluster's dynamic servers configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "clusters",
        "Cluster1",
        "dynamicServers"
    ],
    "notes": null,
    "dynamicClusterSize": 0,
    "machineNameMatchExpression": null,
    "maxDynamicClusterSize": 8,
    "serverNamePrefix": "Cluster1-",
    "ignoreSessionsDuringShutdown": false,
    "type": "DynamicServers",
    "calculatedMachineNames": false,
    "dynamicClusterShutdownTimeoutSeconds": 0,
    "tags": [],
    "waitForAllSessionsDuringShutdown": false,
    "machineMatchExpression": null,
    "calculatedListenPorts": true,
    "name": "Cluster1",
    "id": 0,
    "dynamicallyCreated": false,
    "machineMatchType": "name",
    "minDynamicClusterSize": 1,
    "dynamicClusterCooloffPeriodSeconds": 900,
    "serverTemplate": null
}
 
 
 
 
 
----------------------------------------------------------------------
Customize the cluster's dynamic servers configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  serverTemplate:        [ 'serverTemplates', 'ServerTemplate1' ],
  dynamicClusterSize:    2,
  serverNamePrefix:      'Cluster1Server'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the modified dynamic servers configuration
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "clusters",
        "Cluster1",
        "dynamicServers"
    ],
    "notes": null,
    "dynamicClusterSize": 2,
    "machineNameMatchExpression": null,
    "maxDynamicClusterSize": 8,
    "serverNamePrefix": "Cluster1Server",
    "ignoreSessionsDuringShutdown": false,
    "type": "DynamicServers",
    "calculatedMachineNames": false,
    "dynamicClusterShutdownTimeoutSeconds": 0,
    "tags": [],
    "waitForAllSessionsDuringShutdown": false,
    "machineMatchExpression": null,
    "calculatedListenPorts": true,
    "name": "Cluster1",
    "id": 0,
    "dynamicallyCreated": false,
    "machineMatchType": "name",
    "minDynamicClusterSize": 1,
    "dynamicClusterCooloffPeriodSeconds": 900,
    "serverTemplate": [
        "serverTemplates",
        "ServerTemplate1"
    ]
}
 
 
 
 
 
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/activate
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously start the managed servers
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_0_start"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server1",
        "tasks",
        "_0_start"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463066752142,
    "name": "_0_start",
    "progress": "success",
    "description": "Starting Cluster1Server1 server ...",
    "serverName": "Cluster1Server1",
    "taskError": null,
    "startTimeAsLong": 1463066732214,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:25:32.214-04",
    "endTime": "2016-05-12T11:25:52.142-04"
}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_1_start"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_1_start"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463066774110,
    "name": "_1_start",
    "progress": "success",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066756257,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:25:56.257-04",
    "endTime": "2016-05-12T11:26:14.110-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Verify that the managed servers are running
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "identity": [
            "serverLifeCycleRuntimes",
            "Cluster1Server1"
        ],
        "nodeManagerRestartCount": 0,
        "middlewareHome": "\/Oracle_Home",
        "name": "Cluster1Server1",
        "weblogicHome": "\/Oracle_Home\/wlserver",
        "state": "RUNNING",
        "type": "ServerLifeCycleRuntime"
    },
    {
        "identity": [
            "serverLifeCycleRuntimes",
            "AdminServer"
        ],
        "nodeManagerRestartCount": 0,
        "middlewareHome": "\/Oracle_Home",
        "name": "AdminServer",
        "weblogicHome": "\/Oracle_Home\/wlserver",
        "state": "RUNNING",
        "type": "ServerLifeCycleRuntime"
    },
    {
        "identity": [
            "serverLifeCycleRuntimes",
            "Cluster1Server2"
        ],
        "nodeManagerRestartCount": 0,
        "middlewareHome": "\/Oracle_Home",
        "name": "Cluster1Server2",
        "weblogicHome": "\/Oracle_Home\/wlserver",
        "state": "RUNNING",
        "type": "ServerLifeCycleRuntime"
    }
]}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "name": "Cluster1Server1",
        "state": "RUNNING"
    },
    {
        "name": "AdminServer",
        "state": "RUNNING"
    },
    {
        "name": "Cluster1Server2",
        "state": "RUNNING"
    }
]}

Creating Partitions

The following example script demonstrates how a System Administrator creates a partition, including:

  • A new security realm for the partition, including security providers, the primary identity domain, and the management identity domain

  • A virtual target for the cluster, on which the applications will run

  • A virtual target for the Administration Server, so that the Deployer can create system resources and deploy applications

  • A resource group for each virtual target

  • Partition users in the Administrator, Deployer, Monitor, and Operator roles

  • Creating a resource manager for the new partition to monitor and control system resource sharing by collocated partition users

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain admin configuring a partition
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/startEdit
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new security realm
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realmCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "managementIdentityDomain": null,
    "maxWebLogicPrincipalsInCache": 500,
    "enableWebLogicPrincipalValidatorCache": true,
    "authMethods": null,
    "validateDDSecurityData": false,
    "combinedRoleMappingEnabled": true,
    "delegateMBeanAuthorization": false,
    "deployableProviderSynchronizationTimeout": 60000,
    "deployableProviderSynchronizationEnabled": false,
    "retireTimeoutSeconds": 60,
    "securityDDModel": "DDOnly",
    "certPathBuilder": null,
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a security realm for the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:                     'Partition1Realm',
  managementIdentityDomain: 'Partition1IdentityDomain'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'DefaultAuthenticator',
  type: 'weblogic.security.providers.authentication.DefaultAuthenticator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:        'DefaultIdentityAsserter',
  type:        'weblogic.security.providers.authentication.DefaultIdentityAsserter',
  activeTypes: [ 'AuthenticatedUser','weblogic-jwt-token']
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultIdentityAsserter
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:                          'SystemPasswordValidator',
  type:                          'com.bea.security.providers.authentication.passwordvalidator.SystemPasswordValidator',
  minPasswordLength:             8,
  minNumericOrSpecialCharacters: 1
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/passwordValidators
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/passwordValidators/SystemPasswordValidator
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'XACMLRoleMapper',
  type: 'weblogic.security.providers.xacml.authorization.XACMLRoleMapper'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/roleMappers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/roleMappers/XACMLRoleMapper
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'XACMLAuthorizer',
  type: 'weblogic.security.providers.xacml.authorization.XACMLAuthorizer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authorizers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authorizers/XACMLAuthorizer
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'DefaultAdjudicator',
  type: 'weblogic.security.providers.authorization.DefaultAdjudicator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/adjudicator
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/adjudicator
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'DefaultCredentialMapper',
  type: 'weblogic.security.providers.credentials.DefaultCredentialMapper'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/credentialMappers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/credentialMappers/DefaultCredentialMapper
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'WebLogicCertPathProvider',
  type: 'weblogic.security.providers.pk.WebLogicCertPathProvider'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/certPathProviders
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/certPathProviders/WebLogicCertPathProvider
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  certPathBuilder: [ 'securityConfiguration', 'realms', 'Partition1Realm', 'certPathProviders', 'WebLogicCertPathProvider' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new virtual target
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/virtualTargetCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "explicitPort": 0,
    "notes": null,
    "portOffset": 0,
    "hostNames": null,
    "uriPrefix": "\/",
    "deploymentOrder": 1000,
    "partitionChannel": "PartitionChannel",
    "tags": null,
    "targets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a virtual target for the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:      'Partition1VirtualTarget',
  hostNames: [ 'localhost' ],
  uriPrefix: '/partition1',
  targets:   [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/virtualTargets
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/virtualTargets/Partition1VirtualTarget
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a resource manager for the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'Partition1ResourceManager' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'FileOpen' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'CpuUtilization' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'HeapRetained' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition has 4 or more files open
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:   'NotifyTrigger',
  value:  4,
  action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen/triggers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen/triggers/NotifyTrigger
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition uses 50% of the CPU
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:   'NotifyTrigger',
  value:  50,
  action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers/NotifyTrigger
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a trigger that slows down traffic to the new partition if it uses 60% or more of the CPU
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:   'SlowTrigger',
  value:  60,
  action: 'slow'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers/SlowTrigger
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition uses more than 200 megabytes of the heap
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:   'NotifyTrigger',
  value:  200,
  action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained/triggers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained/triggers/NotifyTrigger
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitionCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "batchJobsExecutorServiceName": null,
    "jobSchedulerTableName": "WEBLOGIC_TIMERS",
    "notes": null,
    "parallelDeployApplications": true,
    "startupTimeout": 0,
    "maxConcurrentLongRunningRequests": 50,
    "ignoreSessionsDuringShutdown": false,
    "maxConcurrentNewThreads": 50,
    "tags": null,
    "gracefulShutdownTimeout": 0,
    "RCMHistoricalDataBufferLimit": 250,
    "uploadDirectoryName": null,
    "eagerTrackingOfResourceMetricsEnabled": false,
    "parallelDeployApplicationModules": false,
    "partitionLifeCycleTimeoutVal": 30,
    "resourceDeploymentPlanPath": null,
    "batchJobsDataSourceJndiName": null,
    "dataSourceForJobScheduler": null,
    "resourceManagerRef": null,
    "realm": null,
    "partitionWorkManagerRef": null,
    "defaultTargets": [],
    "availableTargets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:                  'Partition1',
  realm:                 [ 'securityConfiguration', 'realms', 'Partition1Realm' ],
  resourceManagerRef:    [ 'resourceManagement', 'resourceManagers', 'Partition1ResourceManager' ],
  availableTargets:      [ { identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] } ],
  defaultTargets:        [ { identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] } ],
  primaryIdentityDomain: 'Partition1IdentityDomain'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/partitions
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new resource group in this partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroupCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "uploadDirectoryName": null,
    "notes": null,
    "useDefaultTarget": true,
    "administrative": false,
    "autoTargetAdminServer": false,
    "tags": null,
    "resourceGroupTemplate": null,
    "targets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a resource group for the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:    'Partition1ResourceGroup',
  targets: [ { identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/activate
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create an administrator for the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
    userName:    'Partition1Admin',
    password:    'Partition1Admin123',
    description: 'Partition1 administrator'
  }" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName:             'Administrators',
  memberUserOrGroupName: 'Partition1Admin'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Start the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_4_START"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_4_START"
    ],
    "systemTask": false,
    "description": "Starting Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066800366,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": false,
    "partitionName": "Partition1",
    "endTimeAsLong": 1463066802452,
    "name": "_4_START",
    "progress": "success",
    "taskError": null,
    "operation": "START",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:26:40.366-04",
    "endTime": "2016-05-12T11:26:42.452-04"
}
 
 
 
 
 
----------------------------------------------------------------------
View the new security realm
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "securityConfiguration",
        "realms",
        "Partition1Realm"
    ],
    "managementIdentityDomain": "Partition1IdentityDomain",
    "autoRestartOnNonDynamicChanges": true,
    "credentialMapperTypes": [
        "com.bea.security.saml2.providers.SAML2CredentialMapper",
        "weblogic.security.providers.credentials.DefaultCredentialMapper",
        "weblogic.security.providers.credentials.PKICredentialMapper",
        "weblogic.security.providers.saml.SAMLCredentialMapperV2"
    ],
    "maxWebLogicPrincipalsInCache": 500,
    "enableWebLogicPrincipalValidatorCache": true,
    "roleMapperTypes": [
        "weblogic.security.providers.authorization.DefaultRoleMapper",
        "weblogic.security.providers.xacml.authorization.XACMLRoleMapper"
    ],
    "adjudicatorTypes": ["weblogic.security.providers.authorization.DefaultAdjudicator"],
    "auditorTypes": ["weblogic.security.providers.audit.DefaultAuditor"],
    "authMethods": null,
    "authenticationProviderTypes": [
        "com.bea.security.saml2.providers.SAML2IdentityAsserter",
        "weblogic.security.providers.authentication.ActiveDirectoryAuthenticator",
        "weblogic.security.providers.authentication.CustomDBMSAuthenticator",
        "weblogic.security.providers.authentication.DefaultAuthenticator",
        "weblogic.security.providers.authentication.DefaultIdentityAsserter",
        "weblogic.security.providers.authentication.IPlanetAuthenticator",
        "weblogic.security.providers.authentication.LDAPAuthenticator",
        "weblogic.security.providers.authentication.LDAPX509IdentityAsserter",
        "weblogic.security.providers.authentication.NegotiateIdentityAsserter",
        "weblogic.security.providers.authentication.NovellAuthenticator",
        "weblogic.security.providers.authentication.OpenLDAPAuthenticator",
        "weblogic.security.providers.authentication.OracleInternetDirectoryAuthenticator",
        "weblogic.security.providers.authentication.OracleUnifiedDirectoryAuthenticator",
        "weblogic.security.providers.authentication.OracleVirtualDirectoryAuthenticator",
        "weblogic.security.providers.authentication.ReadOnlySQLAuthenticator",
        "weblogic.security.providers.authentication.SQLAuthenticator",
        "weblogic.security.providers.authentication.VirtualUserAuthenticator",
        "weblogic.security.providers.saml.SAMLAuthenticator",
        "weblogic.security.providers.saml.SAMLIdentityAsserterV2"
    ],
    "validateDDSecurityData": false,
    "combinedRoleMappingEnabled": true,
    "delegateMBeanAuthorization": false,
    "authorizerTypes": [
        "weblogic.security.providers.authorization.DefaultAuthorizer",
        "weblogic.security.providers.xacml.authorization.XACMLAuthorizer"
    ],
    "deployableProviderSynchronizationTimeout": 60000,
    "passwordValidatorTypes": ["com.bea.security.providers.authentication.passwordvalidator.SystemPasswordValidator"],
    "certPathProviderTypes": [
        "weblogic.security.providers.pk.CertificateRegistry",
        "weblogic.security.providers.pk.WebLogicCertPathProvider"
    ],
    "deployableProviderSynchronizationEnabled": false,
    "name": "Partition1Realm",
    "retireTimeoutSeconds": 60,
    "securityDDModel": "DDOnly",
    "certPathBuilder": [
        "securityConfiguration",
        "realms",
        "Partition1Realm",
        "certPathProviders",
        "WebLogicCertPathProvider"
    ]
}
 
 
 
 
 
----------------------------------------------------------------------
View the new virtual targets
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/virtualTargets?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [{
    "identity": [
        "virtualTargets",
        "Partition1VirtualTarget"
    ],
    "explicitPort": 0,
    "notes": null,
    "portOffset": 0,
    "hostNames": ["localhost"],
    "name": "Partition1VirtualTarget",
    "uriPrefix": "\/partition1",
    "id": 0,
    "deploymentOrder": 1000,
    "dynamicallyCreated": false,
    "type": "VirtualTarget",
    "partitionChannel": "PartitionChannel",
    "tags": [],
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}]}
 
 
 
 
 
----------------------------------------------------------------------
View the new partition's resource groups
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup"
    ],
    "uploadDirectoryName": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/",
    "notes": null,
    "useDefaultTarget": false,
    "administrative": false,
    "name": "Partition1ResourceGroup",
    "autoTargetAdminServer": false,
    "id": 0,
    "dynamicallyCreated": false,
    "type": "ResourceGroup",
    "tags": [],
    "resourceGroupTemplate": null,
    "targets": [{"identity": [
        "virtualTargets",
        "Partition1VirtualTarget"
    ]}]
}]}
 
 
 
 
 
----------------------------------------------------------------------
View all the resource manager configurations
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    resourceManagement: {
      links: [], fields: [],
      children: {
        resourceManagers: {
          links: [], fields: [ 'name' ],
          children: {
            fileOpen: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
            heapRetained: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
            cpuUtilization: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
          }
        }
      }
    },
    partitions: {
      links: [], fields: [ 'name', 'resourceManagerRef' ],
      children: {
        resourceManager: {
          links: [], fields: [],
          children: {
            fileOpen: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
            heapRetained: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
            cpuUtilization: {
              links: [], fields: [],
              children: {
                triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
              }
            },
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/search
 
 
HTTP/1.1 100 Continue HTTP/1.1 200 OK
 
Response Body:
{
    "partitions": {"items": [{
        "name": "Partition1",
        "resourceManagerRef": [
            "resourceManagement",
            "resourceManagers",
            "Partition1ResourceManager"
        ],
        "resourceManager": null
    }]},
    "resourceManagement": {"resourceManagers": {"items": [{
        "name": "Partition1ResourceManager",
        "fileOpen": {"triggers": {"items": [{
            "name": "NotifyTrigger",
            "action": "notify",
            "value": 4
        }]}},
        "cpuUtilization": {"triggers": {"items": [
            {
                "name": "NotifyTrigger",
                "action": "notify",
                "value": 50
            },
            {
                "name": "SlowTrigger",
                "action": "slow",
                "value": 60
            }
        ]}},
        "heapRetained": {"triggers": {"items": [{
            "name": "NotifyTrigger",
            "action": "notify",
            "value": 200
        }]}}
    }]}}
}
 
 
 
 
 
----------------------------------------------------------------------
View the new partition
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "partitions",
        "Partition1"
    ],
    "batchJobsExecutorServiceName": null,
    "jobSchedulerTableName": "WEBLOGIC_TIMERS",
    "notes": null,
    "parallelDeployApplications": true,
    "startupTimeout": 0,
    "partitionID": "085c27d8-8063-4a42-8fc6-56d9b983cd8f",
    "maxConcurrentLongRunningRequests": 50,
    "ignoreSessionsDuringShutdown": false,
    "type": "Partition",
    "maxConcurrentNewThreads": 50,
    "tags": [],
    "gracefulShutdownTimeout": 0,
    "RCMHistoricalDataBufferLimit": 250,
    "uploadDirectoryName": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/",
    "primaryIdentityDomain": "Partition1IdentityDomain",
    "eagerTrackingOfResourceMetricsEnabled": false,
    "parallelDeployApplicationModules": false,
    "partitionLifeCycleTimeoutVal": 30,
    "name": "Partition1",
    "resourceDeploymentPlanPath": null,
    "id": 0,
    "batchJobsDataSourceJndiName": null,
    "dynamicallyCreated": false,
    "dataSourceForJobScheduler": null,
    "resourceManagerRef": [
        "resourceManagement",
        "resourceManagers",
        "Partition1ResourceManager"
    ],
    "realm": [
        "securityConfiguration",
        "realms",
        "Partition1Realm"
    ],
    "partitionWorkManagerRef": null,
    "defaultTargets": [{"identity": [
        "virtualTargets",
        "Partition1VirtualTarget"
    ]}],
    "availableTargets": [{"identity": [
        "virtualTargets",
        "Partition1VirtualTarget"
    ]}]
}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1"
    ],
    "partitionID": "085c27d8-8063-4a42-8fc6-56d9b983cd8f",
    "name": "Partition1",
    "type": "DomainPartitionRuntime"
}
 
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime"
    ],
    "subState": null,
    "name": "Partition1",
    "state": "RUNNING",
    "type": "PartitionLifeCycleRuntime"
}
 
 
 
 
 
----------------------------------------------------------------------
Search for all of the new partition's partitionRuntimes
----------------------------------------------------------------------
 
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        partitionRuntimes: {
          links: [], fields: [ 'name', 'state', 'restartRequired' ]
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "restartRequired": false,
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "restartRequired": false,
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "restartRequired": false,
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    }
]}}

Configuring System Resources

The following example script demonstrates how a Deployer configures JDBC and JMS system resources.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain deployer configuring system resources
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
View the default values for a new global JDBC system resource
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResourceCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "moduleType": null,
    "deploymentPrincipalName": null,
    "compatibilityName": null,
    "deploymentOrder": 100,
    "tags": null,
    "targets": [],
    "name": null,
    "descriptorFileName": null
}
 
 
 
 
 
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/startEdit
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Create a new global JDBC system resource and set its name
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'JDBCDataSource1',
  targets: [ { identity: [ clusters, 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources?saveChanges=false
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1
 
Response Body:
{}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'JDBCDataSource1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Configure the JDBC system resource's JNDI name
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  JNDINames: [ 'JDBCDataSource1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDataSourceParams
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Configure the JDBC system resource's driver info
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  driverName: 'org.apache.derby.jdbc.ClientXADataSource',
  url:        'jdbc:derby://localhost:1527/demo'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:  'portNumber',
  value: '1527'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/portNumber
 
Response Body:
{}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:  'databaseName',
  value: 'demo;create=true'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/databaseName
 
Response Body:
{}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:  'serverName',
  value: 'localhost'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/serverName
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/activate
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the new JDBC system resource
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "JDBCSystemResources",
        "JDBCDataSource1"
    ],
    "notes": null,
    "moduleType": null,
    "deploymentPrincipalName": null,
    "descriptorFileName": "jdbc\/JDBCDataSource1-6865-jdbc.xml",
    "name": "JDBCDataSource1",
    "compatibilityName": null,
    "id": 0,
    "deploymentOrder": 100,
    "dynamicallyCreated": false,
    "type": "JDBCSystemResource",
    "sourcePath": ".\/config\/jdbc\/JDBCDataSource1-6865-jdbc.xml",
    "tags": [],
    "resource": [
        "JDBCSystemResources",
        "JDBCDataSource1",
        "JDBCResource"
    ],
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "JDBCSystemResources",
        "JDBCDataSource1",
        "JDBCResource"
    ],
    "datasourceType": null,
    "name": "JDBCDataSource1",
    "id": 0,
    "version": null
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDataSourceParams?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "JDBCSystemResources",
        "JDBCDataSource1",
        "JDBCResource",
        "JDBCDataSourceParams"
    ],
    "connectionPoolFailoverCallbackHandler": null,
    "globalTransactionsProtocol": "OnePhaseCommit",
    "algorithmType": "Failover",
    "scope": "Global",
    "failoverRequestIfBusy": false,
    "proxySwitchingCallback": null,
    "JNDINames": ["JDBCDataSource1"],
    "proxySwitchingProperties": null,
    "dataSourceList": null,
    "keepConnAfterGlobalTx": false
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "JDBCSystemResources",
        "JDBCDataSource1",
        "JDBCResource",
        "JDBCDriverParams"
    ],
    "password": null,
    "driverName": "org.apache.derby.jdbc.ClientXADataSource",
    "usePasswordIndirection": false,
    "url": "jdbc:derby:\/\/localhost:1527\/demo",
    "useXaDataSourceInterface": true
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "identity": [
            "JDBCSystemResources",
            "JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "portNumber"
        ],
        "encryptedValue": null,
        "name": "portNumber",
        "sysPropValue": null,
        "value": "1527"
    },
    {
        "identity": [
            "JDBCSystemResources",
            "JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "databaseName"
        ],
        "encryptedValue": null,
        "name": "databaseName",
        "sysPropValue": null,
        "value": "demo;create=true"
    },
    {
        "identity": [
            "JDBCSystemResources",
            "JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "serverName"
        ],
        "encryptedValue": null,
        "name": "serverName",
        "sysPropValue": null,
        "value": "localhost"
    }
]}
 
 
 
 
 
----------------------------------------------------------------------
Search for all of the new JDBC data source's runtimes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        JDBCServiceRuntime: {
          links: [], fields: [ 'name' ],
          children: {
            JDBCDataSourceRuntimeMBeans : {
              links: [], fields: [ 'name', 'state' ],
              name: [ 'JDBCDataSource1' ]
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "JDBCServiceRuntime": {
            "name": "Cluster1Server1",
            "JDBCDataSourceRuntimeMBeans": {"items": [{
                "state": "Running",
                "name": "JDBCDataSource1"
            }]}
        }
    },
    {
        "name": "AdminServer",
        "JDBCServiceRuntime": {
            "name": "AdminServer",
            "JDBCDataSourceRuntimeMBeans": {"items": []}
        }
    },
    {
        "name": "Cluster1Server2",
        "JDBCServiceRuntime": {
            "name": "Cluster1Server2",
            "JDBCDataSourceRuntimeMBeans": {"items": [{
                "state": "Running",
                "name": "JDBCDataSource1"
            }]}
        }
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/startEdit
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new global JMS file store
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/fileStoreCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "fileLockingEnabled": true,
    "distributionPolicy": "Distributed",
    "partialClusterStabilityDelaySeconds": 240,
    "deploymentOrder": 1000,
    "directory": null,
    "initialBootDelaySeconds": 60,
    "ioBufferSize": -1,
    "minWindowBufferSize": -1,
    "failbackDelaySeconds": -1,
    "cacheDirectory": null,
    "numberOfRestartAttempts": 6,
    "initialSize": 0,
    "logicalName": null,
    "maxFileSize": 1342177280,
    "synchronousWritePolicy": "Direct-Write",
    "blockSize": -1,
    "tags": null,
    "maxWindowBufferSize": -1,
    "migrationPolicy": "Off",
    "secondsBetweenRestarts": 30,
    "restartInPlace": true,
    "targets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new global file store
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:               'FileStore1',
  targets:            [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/fileStores
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/fileStores/FileStore1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new global JMS server
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSServerCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "messagesThresholdHigh": -1,
    "hostingTemporaryDestinations": true,
    "temporaryTemplateName": null,
    "notes": null,
    "maximumMessageSize": 2147483647,
    "allowsPersistentDowngrade": false,
    "storeMessageCompressionEnabled": false,
    "deploymentOrder": 1000,
    "pagingMessageCompressionEnabled": false,
    "messageBufferSize": -1,
    "expirationScanInterval": 30,
    "bytesThresholdLow": -1,
    "messagesThresholdLow": -1,
    "blockingSendPolicy": "FIFO",
    "pagingBlockSize": -1,
    "insertionPausedAtStartup": "default",
    "pagingMaxWindowBufferSize": -1,
    "bytesThresholdHigh": -1,
    "pagingMaxFileSize": 1342177280,
    "productionPausedAtStartup": "default",
    "pagingFileLockingEnabled": true,
    "tags": null,
    "bytesMaximum": -1,
    "temporaryTemplateResource": null,
    "messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
    "pagingMinWindowBufferSize": -1,
    "pagingIoBufferSize": -1,
    "messagesMaximum": -1,
    "consumptionPausedAtStartup": "default",
    "pagingDirectory": null,
    "storeEnabled": true,
    "persistentStore": null,
    "targets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new global JMS server and hook it up to the cluster and file store
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:            'JMSServer1',
  messagesMaximum: 10000,
  bytesMaximum:    10000000,
  targets:         [ { identity: [ 'clusters', 'Cluster1' ] } ],
  persistentStore: [ 'fileStores', 'FileStore1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSServers
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JMSServers/JMSServer1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new global JMS system resource
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResourceCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "moduleType": null,
    "deploymentPrincipalName": null,
    "compatibilityName": null,
    "deploymentOrder": 100,
    "tags": null,
    "targets": [],
    "name": null,
    "descriptorFileName": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new global JMS system resource and hook it up to the cluster
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:    'JMSSystemResource1',
  targets: [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new JMS subdeployment
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeploymentCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "moduleType": null,
    "compatibilityName": null,
    "untargeted": false,
    "tags": null,
    "targets": [],
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new JMS subdeployment and hook it up to the JMS server
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:    'JMSSubDeployment1',
  targets: [ { identity: [ 'JMSServers', 'JMSServer1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeployments
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeployments/JMSSubDeployment1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new JMS connection factory
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactoryCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "JNDIName": null,
    "defaultTargetingEnabled": false,
    "localJNDIName": null,
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new JMS connection factory and hook it up to the JMS subdeployment
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:              'ConnectionFactory1',
  subDeploymentName: 'JMSSubDeployment1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactories
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactories/ConnectionFactory1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the default values for a new JMS distributed queue
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueueCreateForm?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "notes": null,
    "JNDIName": null,
    "unitOfOrderRouting": "Hash",
    "resetDeliveryCountOnForward": true,
    "defaultUnitOfOrder": false,
    "defaultTargetingEnabled": false,
    "incompleteWorkExpirationTime": -1,
    "loadBalancingPolicy": "Round-Robin",
    "forwardDelay": -1,
    "JMSCreateDestinationIdentifier": null,
    "localJNDIName": null,
    "template": null,
    "quota": null,
    "name": null
}
 
 
 
 
 
----------------------------------------------------------------------
Create a new JMS uniform distributed queue and hook it up to the JMS subdeployment
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:              'UniformDistributedQueue1',
  subDeploymentName: 'JMSSubDeployment1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueues
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueues/UniformDistributedQueue1
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/activate
 
 
HTTP/1.1 200 OK
 
Response Body:
{}
 
 
 
 
 
----------------------------------------------------------------------
View the file stores
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/fileStores?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [{
    "identity": [
        "fileStores",
        "FileStore1"
    ],
    "notes": null,
    "fileLockingEnabled": true,
    "distributionPolicy": "Distributed",
    "partialClusterStabilityDelaySeconds": 240,
    "deploymentOrder": 1000,
    "type": "FileStore",
    "directory": null,
    "initialBootDelaySeconds": 60,
    "ioBufferSize": -1,
    "minWindowBufferSize": -1,
    "failbackDelaySeconds": -1,
    "cacheDirectory": null,
    "id": 0,
    "dynamicallyCreated": false,
    "XAResourceName": null,
    "numberOfRestartAttempts": 6,
    "initialSize": 0,
    "logicalName": null,
    "maxFileSize": 1342177280,
    "synchronousWritePolicy": "Direct-Write",
    "blockSize": -1,
    "tags": [],
    "maxWindowBufferSize": -1,
    "name": "FileStore1",
    "migrationPolicy": "Off",
    "secondsBetweenRestarts": 30,
    "restartInPlace": true,
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}]}
 
 
 
 
 
----------------------------------------------------------------------
View the JMS servers
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSServers?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [{
    "identity": [
        "JMSServers",
        "JMSServer1"
    ],
    "messagesThresholdHigh": -1,
    "hostingTemporaryDestinations": true,
    "temporaryTemplateName": null,
    "notes": null,
    "maximumMessageSize": 2147483647,
    "allowsPersistentDowngrade": false,
    "storeMessageCompressionEnabled": false,
    "deploymentOrder": 1000,
    "type": "JMSServer",
    "pagingMessageCompressionEnabled": false,
    "messageBufferSize": -1,
    "expirationScanInterval": 30,
    "bytesThresholdLow": -1,
    "messagesThresholdLow": -1,
    "blockingSendPolicy": "FIFO",
    "id": 0,
    "dynamicallyCreated": false,
    "pagingBlockSize": -1,
    "insertionPausedAtStartup": "default",
    "pagingMaxWindowBufferSize": -1,
    "bytesThresholdHigh": -1,
    "pagingMaxFileSize": 1342177280,
    "productionPausedAtStartup": "default",
    "pagingFileLockingEnabled": true,
    "tags": [],
    "bytesMaximum": 10000000,
    "temporaryTemplateResource": null,
    "messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
    "pagingMinWindowBufferSize": -1,
    "pagingIoBufferSize": -1,
    "messagesMaximum": 10000,
    "name": "JMSServer1",
    "consumptionPausedAtStartup": "default",
    "pagingDirectory": null,
    "storeEnabled": true,
    "persistentStore": [
        "fileStores",
        "FileStore1"
    ],
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}]}
 
 
 
 
 
----------------------------------------------------------------------
View the JMS system resources and their children
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    JMSSystemResources: {
      links: [],
      children: {
        JMSResource: {
          links: [], fields: [],
          children: {
            connectionFactories: {
              links: []
            },
            distributedQueues: {
              links: []
            },
          }
        },
        subDeployments: {
          links: []
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"JMSSystemResources": {"items": [{
    "identity": [
        "JMSSystemResources",
        "JMSSystemResource1"
    ],
    "notes": null,
    "moduleType": null,
    "deploymentPrincipalName": null,
    "descriptorFileName": "jms\/jmssystemresource1-jms.xml",
    "name": "JMSSystemResource1",
    "compatibilityName": null,
    "id": 0,
    "deploymentOrder": 100,
    "dynamicallyCreated": false,
    "type": "JMSSystemResource",
    "sourcePath": ".\/config\/jms\/jmssystemresource1-jms.xml",
    "tags": [],
    "resource": [
        "JMSSystemResources",
        "JMSSystemResource1",
        "JMSResource"
    ],
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}],
    "subDeployments": {"items": [{
        "identity": [
            "JMSSystemResources",
            "JMSSystemResource1",
            "subDeployments",
            "JMSSubDeployment1"
        ],
        "notes": null,
        "moduleType": null,
        "name": "JMSSubDeployment1",
        "compatibilityName": null,
        "untargeted": false,
        "id": 0,
        "dynamicallyCreated": false,
        "type": "SubDeployment",
        "tags": [],
        "targets": [{"identity": [
            "JMSServers",
            "JMSServer1"
        ]}]
    }]},
    "JMSResource": {"connectionFactories": {"items": [{
        "identity": [
            "JMSSystemResources",
            "JMSSystemResource1",
            "JMSResource",
            "connectionFactories",
            "ConnectionFactory1"
        ],
        "notes": null,
        "JNDIName": null,
        "defaultTargetingEnabled": false,
        "name": "ConnectionFactory1",
        "subDeploymentName": "JMSSubDeployment1",
        "id": 0,
        "localJNDIName": null
    }]}}
}]}}
 
 
 
 
 
----------------------------------------------------------------------
Search for all of the JMS related runtimes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        JMSRuntime: {
          links: [], fields: [ 'name', 'healthState' ],
          children: {
            JMSServers: {
              links: [], fields: [ 'name', 'healthState' ],
              children: {
                destinations: {
                  links: [], fields: [ 'name', 'state' ],
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "JMSRuntime": {
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "Cluster1Server1.jms",
            "JMSServers": {"items": [{
                "healthState": {
                    "state": "ok",
                    "subsystemName": "JMSServer.JMSServer1@Cluster1Server1",
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JMSServer1@Cluster1Server1",
                "destinations": {"items": [{
                    "state": "started",
                    "name": "JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1"
                }]}
            }]}
        }
    },
    {
        "name": "AdminServer",
        "JMSRuntime": {
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "AdminServer.jms",
            "JMSServers": {"items": []}
        }
    },
    {
        "name": "Cluster1Server2",
        "JMSRuntime": {
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "Cluster1Server2.jms",
            "JMSServers": {"items": [{
                "healthState": {
                    "state": "ok",
                    "subsystemName": "JMSServer.JMSServer1@Cluster1Server2",
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JMSServer1@Cluster1Server2",
                "destinations": {"items": [{
                    "state": "started",
                    "name": "JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1"
                }]}
            }]}
        }
    }
]}}

Deploying Domain-Scoped Applications

The following example script demonstrates how a Deployer deploys domain-scoped applications.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain deployer deploying apps
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Synchronously deploy a domain-scoped server-side application to the cluster
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:       'fairShare',
  sourcePath: '/deployments/fairShare.war',
  targets:    [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments
 
 
HTTP/1.1 201 Created
 
Location: http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1463066826014,
    "deploymentMessages": [
        "[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server1\".",
        "[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server2\".",
        "[Deployer:149192]Operation \"deploy\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
        "[Deployer:149192]Operation \"deploy\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
        "[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
        "[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
    ],
    "name": "fairShare",
    "operationType": 3,
    "startTimeAsLong": 1463066820814,
    "state": "STATE_COMPLETED",
    "id": "0",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:27:00.814-04",
    "endTime": "2016-05-12T11:27:06.014-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Asynchronously upload a domain-scoped application from the client and deploy it to the cluster
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:multipart/form-data \
-F "model={
  name:    'basicapp',
  targets: [ { identity: [ 'clusters' , 'Cluster1' ] } ]
}" \
-F "sourcePath=@/deployments/BasicApp/app/BasicApp.ear" \
-F "planPath=@/deployments/BasicApp/plan/Plan.xml" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments
 
 
HTTP/1.1 100 Continue HTTP/1.1 202 Accepted
 
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/basicapp
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/basicapp"
    }],
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "deploymentMessages": [],
    "name": "basicapp",
    "operationType": 3,
    "startTimeAsLong": 1463066826805,
    "state": "STATE_RUNNING",
    "id": "1",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "processing",
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:27:06.805-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/basicapp?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "deploymentMessages": [
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server2\".",
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\"."
    ],
    "name": "basicapp",
    "operationType": 3,
    "startTimeAsLong": 1463066826805,
    "state": "STATE_RUNNING",
    "id": "1",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "processing",
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:27:06.805-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/basicapp?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1463066829357,
    "deploymentMessages": [
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server2\".",
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\".",
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server2\".",
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\".",
        "[Deployer:149192]Operation \"deploy\" on application \"basicapp\" is in progress on \"Cluster1Server1\".",
        "[Deployer:149192]Operation \"deploy\" on application \"basicapp\" is in progress on \"Cluster1Server2\".",
        "[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server1\".",
        "[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server2\"."
    ],
    "name": "basicapp",
    "operationType": 3,
    "startTimeAsLong": 1463066826805,
    "state": "STATE_COMPLETED",
    "id": "1",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:27:06.805-04",
    "endTime": "2016-05-12T11:27:09.357-04"
}
 
 
 
 
 
 
----------------------------------------------------------------------
View the new applications' configurations
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "appDeployments",
        "fairShare"
    ],
    "stagingMode": null,
    "absoluteSourcePath": "\/deployments\/fairShare.war",
    "notes": null,
    "absoluteAltDescriptorPath": null,
    "deploymentOrder": 100,
    "type": "AppDeployment",
    "installDir": null,
    "id": 0,
    "altDescriptorDir": null,
    "dynamicallyCreated": false,
    "sourcePath": "\/deployments\/fairShare.war",
    "applicationName": "fairShare",
    "absoluteAltDescriptorDir": null,
    "moduleType": "war",
    "planStagingMode": null,
    "cacheInAppDirectory": false,
    "absoluteInstallDir": null,
    "compatibilityName": null,
    "absolutePlanPath": null,
    "untargeted": false,
    "planDir": null,
    "validateDDSecurityData": false,
    "applicationIdentifier": "fairShare",
    "tags": [],
    "planPath": null,
    "versionIdentifier": null,
    "deploymentPrincipalName": null,
    "absolutePlanDir": null,
    "name": "fairShare",
    "parallelDeployModules": false,
    "securityDDModel": "DDOnly",
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/appDeployments/basicapp?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "appDeployments",
        "basicapp"
    ],
    "stagingMode": null,
    "absoluteSourcePath": "\/domains\/mydomain\/servers\/AdminServer\/upload\/basicapp\/app\/BasicApp.ear",
    "notes": null,
    "absoluteAltDescriptorPath": null,
    "deploymentOrder": 100,
    "type": "AppDeployment",
    "installDir": null,
    "id": 0,
    "altDescriptorDir": null,
    "dynamicallyCreated": false,
    "sourcePath": "servers\/AdminServer\/upload\/basicapp\/app\/BasicApp.ear",
    "applicationName": "basicapp",
    "absoluteAltDescriptorDir": null,
    "moduleType": "ear",
    "planStagingMode": null,
    "cacheInAppDirectory": false,
    "absoluteInstallDir": null,
    "compatibilityName": null,
    "absolutePlanPath": "\/domains\/mydomain\/servers\/AdminServer\/upload\/basicapp\/plan\/Plan.xml",
    "untargeted": false,
    "planDir": null,
    "validateDDSecurityData": false,
    "applicationIdentifier": "basicapp",
    "tags": [],
    "planPath": "servers\/AdminServer\/upload\/basicapp\/plan\/Plan.xml",
    "versionIdentifier": null,
    "deploymentPrincipalName": null,
    "absolutePlanDir": null,
    "name": "basicapp",
    "parallelDeployModules": false,
    "securityDDModel": "DDOnly",
    "targets": [{"identity": [
        "clusters",
        "Cluster1"
    ]}]
}
 
 
 
 
 
----------------------------------------------------------------------
View the new applications' appDeploymentRuntimes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "deploymentManager",
        "appDeploymentRuntimes",
        "fairShare"
    ],
    "applicationVersion": null,
    "partitionName": null,
    "name": "fairShare",
    "type": "AppDeploymentRuntime",
    "applicationName": "fairShare",
    "modules": ["fairShare"]
}
 
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/basicapp?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "deploymentManager",
        "appDeploymentRuntimes",
        "basicapp"
    ],
    "applicationVersion": null,
    "partitionName": null,
    "name": "basicapp",
    "type": "AppDeploymentRuntime",
    "applicationName": "basicapp",
    "modules": [
        "BasicAuth",
        "BasicEJB.jar"
    ]
}
 
 
 
 
 
----------------------------------------------------------------------
Search for all of the new applications' applicationRuntimes
----------------------------------------------------------------------
 
curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        applicationRuntimes: {
          links: [],
          name: [ 'fairShare', 'basicapp' ]
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "applicationRuntimes": {"items": [
            {
                "identity": [
                    "applicationRuntimes",
                    "fairShare"
                ],
                "applicationVersion": null,
                "internal": false,
                "partitionName": null,
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "fairShare",
                "type": "ApplicationRuntime",
                "activeVersionState": 2,
                "applicationName": "fairShare"
            },
            {
                "identity": [
                    "applicationRuntimes",
                    "basicapp"
                ],
                "applicationVersion": null,
                "internal": false,
                "partitionName": null,
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "basicapp",
                "type": "ApplicationRuntime",
                "activeVersionState": 2,
                "applicationName": "basicapp"
            }
        ]}
    },
    {
        "name": "AdminServer",
        "applicationRuntimes": {"items": []}
    },
    {
        "name": "Cluster1Server2",
        "applicationRuntimes": {"items": [
            {
                "identity": [
                    "applicationRuntimes",
                    "fairShare"
                ],
                "applicationVersion": null,
                "internal": false,
                "partitionName": null,
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "fairShare",
                "type": "ApplicationRuntime",
                "activeVersionState": 2,
                "applicationName": "fairShare"
            },
            {
                "identity": [
                    "applicationRuntimes",
                    "basicapp"
                ],
                "applicationVersion": null,
                "internal": false,
                "partitionName": null,
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "basicapp",
                "type": "ApplicationRuntime",
                "activeVersionState": 2,
                "applicationName": "basicapp"
            }
        ]}
    }
]}}

Monitoring Domain Resources

The following example script demonstrates how an Operator monitors the entire domain, including its partitions and resource managers. Resource managers monitor and control system resource sharing by collocated partition users. For more information about resource management, see "Configuring Resource Consumption Management" in Using WebLogic Server Multitenant.

The example script also shows how to monitor data sources and JMS.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain monitor monitoring the domain
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Monitor the servers
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,overallHealthState,healthState,state,openSocketsCurrentCount,activationTime
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "openSocketsCurrentCount": 6,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "Cluster1Server1",
        "state": "RUNNING",
        "activationTime": 1463066751753
    },
    {
        "openSocketsCurrentCount": 20,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "AdminServer",
        "state": "RUNNING",
        "activationTime": 1463066696355
    },
    {
        "openSocketsCurrentCount": 6,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "Cluster1Server2",
        "state": "RUNNING",
        "activationTime": 1463066773905
    }
]}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the partitions
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        partitionRuntimes: {
          links: [], fields: [ 'name', 'state', 'overallHealthState', 'subsystemHealthStates' ]
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "subsystemHealthStates": [
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget_jms-internal-notran-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "bea_wls_internal-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "Cluster1Server1.jms",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "Cluster1Server1.saf",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "basicapp$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "wls-management-services-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget_jms-internal-xa-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "fairShare$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "PersistentStore._WLS_EJBTIMER_Cluster1Server1",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server1$Partition1",
                    "partitionName": "Partition1",
                    "symptoms": []
                }
            ],
            "overallHealthState": {
                "state": "ok",
                "subsystemName": "PartitionRuntime.Partition1",
                "partitionName": "Partition1",
                "symptoms": []
            },
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "subsystemHealthStates": [
                {
                    "state": "ok",
                    "subsystemName": "PersistentStore._WLS_EJBTIMER_AdminServer",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "wls-management-services-Partition1-adminVT$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1-adminVT_jms-internal-notran-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1-adminVT$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "bea_wls_internal-Partition1-adminVT$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "AdminServer.saf",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "AdminServer.jms",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1-adminVT$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1-adminVT_jms-internal-xa-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                }
            ],
            "overallHealthState": {
                "state": "ok",
                "subsystemName": "PartitionRuntime.Partition1",
                "partitionName": "Partition1",
                "symptoms": []
            },
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "subsystemHealthStates": [
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget_jms-internal-notran-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "Cluster1Server2.jms",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "Cluster1Server2.saf",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "bea_wls_internal-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "basicapp$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "wls-management-services-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server2$Partition1",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget_jms-internal-xa-adp(Adapter)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "fairShare$Partition1(Application)",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "PersistentStore._WLS_EJBTIMER_Cluster1Server2",
                    "partitionName": "Partition1",
                    "symptoms": []
                },
                {
                    "state": "ok",
                    "subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
                    "partitionName": "Partition1",
                    "symptoms": []
                }
            ],
            "overallHealthState": {
                "state": "ok",
                "subsystemName": "PartitionRuntime.Partition1",
                "partitionName": "Partition1",
                "symptoms": []
            },
            "name": "Partition1",
            "state": "RUNNING"
        }]}
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the JDBC system resources
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        JDBCServiceRuntime: {
          links: [], fields: [ 'name' ],
          children: {
            JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
          }
        },
        partitionRuntimes: {
          links: [], fields: [ 'name' ],
          children: {
            JDBCPartitionRuntime: {
              links: [], fields: [ 'name' ],
              children: {
                JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": {
                "name": "Partition1",
                "JDBCDataSourceRuntimeMBeans": {"items": [{
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "JDBCPartitionRuntime",
                        "JDBCDataSourceRuntimeMBeans",
                        "Partition1JDBCDataSource1"
                    ],
                    "connectionsTotalCount": 1,
                    "waitingForConnectionSuccessTotal": 0,
                    "highestNumUnavailable": 0,
                    "reserveRequestCount": 0,
                    "type": "JDBCDataSourceRuntime",
                    "waitingForConnectionTotal": 0,
                    "enabled": true,
                    "currCapacityHighCount": 1,
                    "prepStmtCacheHitCount": 0,
                    "prepStmtCacheMissCount": 0,
                    "databaseProductName": "Apache Derby",
                    "state": "Running",
                    "moduleId": "Partition1JDBCDataSource1",
                    "prepStmtCacheAddCount": 0,
                    "failuresToReconnectCount": 0,
                    "databaseProductVersion": "10.11.1.1 - (1616546)",
                    "leakedConnectionCount": 0,
                    "waitingForConnectionFailureTotal": 0,
                    "activeConnectionsHighCount": 1,
                    "connectionDelayTime": 5,
                    "waitingForConnectionHighCount": 0,
                    "waitSecondsHighCount": 0,
                    "versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
                    "failedReserveRequestCount": 0,
                    "prepStmtCacheDeleteCount": 0,
                    "numAvailable": 1,
                    "deploymentState": 2,
                    "prepStmtCacheAccessCount": 0,
                    "driverVersion": "10.11.1.1 - (1616546)",
                    "prepStmtCacheCurrentSize": 0,
                    "name": "Partition1JDBCDataSource1",
                    "activeConnectionsCurrentCount": 0,
                    "currCapacity": 1,
                    "driverName": "Apache Derby Network Client JDBC Driver",
                    "activeConnectionsAverageCount": 0,
                    "numUnavailable": 0,
                    "waitingForConnectionCurrentCount": 0,
                    "highestNumAvailable": 1,
                    "lastTask": null
                }]}
            }
        }]},
        "JDBCServiceRuntime": {
            "name": "Cluster1Server1",
            "JDBCDataSourceRuntimeMBeans": {"items": [{
                "identity": [
                    "JDBCServiceRuntime",
                    "JDBCDataSourceRuntimeMBeans",
                    "JDBCDataSource1"
                ],
                "connectionsTotalCount": 1,
                "waitingForConnectionSuccessTotal": 0,
                "highestNumUnavailable": 0,
                "reserveRequestCount": 0,
                "type": "JDBCDataSourceRuntime",
                "waitingForConnectionTotal": 0,
                "enabled": true,
                "currCapacityHighCount": 1,
                "prepStmtCacheHitCount": 0,
                "prepStmtCacheMissCount": 0,
                "databaseProductName": "Apache Derby",
                "state": "Running",
                "moduleId": "JDBCDataSource1",
                "prepStmtCacheAddCount": 0,
                "failuresToReconnectCount": 0,
                "databaseProductVersion": "10.11.1.1 - (1616546)",
                "leakedConnectionCount": 0,
                "waitingForConnectionFailureTotal": 0,
                "activeConnectionsHighCount": 1,
                "connectionDelayTime": 1377,
                "waitingForConnectionHighCount": 0,
                "waitSecondsHighCount": 0,
                "versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
                "failedReserveRequestCount": 0,
                "prepStmtCacheDeleteCount": 0,
                "numAvailable": 1,
                "deploymentState": 2,
                "prepStmtCacheAccessCount": 0,
                "driverVersion": "10.11.1.1 - (1616546)",
                "prepStmtCacheCurrentSize": 0,
                "name": "JDBCDataSource1",
                "activeConnectionsCurrentCount": 0,
                "currCapacity": 1,
                "driverName": "Apache Derby Network Client JDBC Driver",
                "activeConnectionsAverageCount": 0,
                "numUnavailable": 0,
                "waitingForConnectionCurrentCount": 0,
                "highestNumAvailable": 1,
                "lastTask": null
            }]}
        }
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": null
        }]},
        "JDBCServiceRuntime": {
            "name": "AdminServer",
            "JDBCDataSourceRuntimeMBeans": {"items": []}
        }
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": {
                "name": "Partition1",
                "JDBCDataSourceRuntimeMBeans": {"items": [{
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "JDBCPartitionRuntime",
                        "JDBCDataSourceRuntimeMBeans",
                        "Partition1JDBCDataSource1"
                    ],
                    "connectionsTotalCount": 1,
                    "waitingForConnectionSuccessTotal": 0,
                    "highestNumUnavailable": 0,
                    "reserveRequestCount": 0,
                    "type": "JDBCDataSourceRuntime",
                    "waitingForConnectionTotal": 0,
                    "enabled": true,
                    "currCapacityHighCount": 1,
                    "prepStmtCacheHitCount": 0,
                    "prepStmtCacheMissCount": 0,
                    "databaseProductName": "Apache Derby",
                    "state": "Running",
                    "moduleId": "Partition1JDBCDataSource1",
                    "prepStmtCacheAddCount": 0,
                    "failuresToReconnectCount": 0,
                    "databaseProductVersion": "10.11.1.1 - (1616546)",
                    "leakedConnectionCount": 0,
                    "waitingForConnectionFailureTotal": 0,
                    "activeConnectionsHighCount": 1,
                    "connectionDelayTime": 6,
                    "waitingForConnectionHighCount": 0,
                    "waitSecondsHighCount": 0,
                    "versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
                    "failedReserveRequestCount": 0,
                    "prepStmtCacheDeleteCount": 0,
                    "numAvailable": 1,
                    "deploymentState": 2,
                    "prepStmtCacheAccessCount": 0,
                    "driverVersion": "10.11.1.1 - (1616546)",
                    "prepStmtCacheCurrentSize": 0,
                    "name": "Partition1JDBCDataSource1",
                    "activeConnectionsCurrentCount": 0,
                    "currCapacity": 1,
                    "driverName": "Apache Derby Network Client JDBC Driver",
                    "activeConnectionsAverageCount": 0,
                    "numUnavailable": 0,
                    "waitingForConnectionCurrentCount": 0,
                    "highestNumAvailable": 1,
                    "lastTask": null
                }]}
            }
        }]},
        "JDBCServiceRuntime": {
            "name": "Cluster1Server2",
            "JDBCDataSourceRuntimeMBeans": {"items": [{
                "identity": [
                    "JDBCServiceRuntime",
                    "JDBCDataSourceRuntimeMBeans",
                    "JDBCDataSource1"
                ],
                "connectionsTotalCount": 1,
                "waitingForConnectionSuccessTotal": 0,
                "highestNumUnavailable": 0,
                "reserveRequestCount": 0,
                "type": "JDBCDataSourceRuntime",
                "waitingForConnectionTotal": 0,
                "enabled": true,
                "currCapacityHighCount": 1,
                "prepStmtCacheHitCount": 0,
                "prepStmtCacheMissCount": 0,
                "databaseProductName": "Apache Derby",
                "state": "Running",
                "moduleId": "JDBCDataSource1",
                "prepStmtCacheAddCount": 0,
                "failuresToReconnectCount": 0,
                "databaseProductVersion": "10.11.1.1 - (1616546)",
                "leakedConnectionCount": 0,
                "waitingForConnectionFailureTotal": 0,
                "activeConnectionsHighCount": 1,
                "connectionDelayTime": 1363,
                "waitingForConnectionHighCount": 0,
                "waitSecondsHighCount": 0,
                "versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
                "failedReserveRequestCount": 0,
                "prepStmtCacheDeleteCount": 0,
                "numAvailable": 1,
                "deploymentState": 2,
                "prepStmtCacheAccessCount": 0,
                "driverVersion": "10.11.1.1 - (1616546)",
                "prepStmtCacheCurrentSize": 0,
                "name": "JDBCDataSource1",
                "activeConnectionsCurrentCount": 0,
                "currCapacity": 1,
                "driverName": "Apache Derby Network Client JDBC Driver",
                "activeConnectionsAverageCount": 0,
                "numUnavailable": 0,
                "waitingForConnectionCurrentCount": 0,
                "highestNumAvailable": 1,
                "lastTask": null
            }]}
        }
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Test a domain level data source
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Cluster1Server2/JDBCServiceRuntime/JDBCDataSourceRuntimeMBeans/JDBCDataSource1/testPool
 
 
HTTP/1.1 200 OK
 
Response Body:
{"return": null}
 
 
 
 
 
----------------------------------------------------------------------
Test a partition level data source
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Cluster1Server2/partitionRuntimes/Partition1/JDBCPartitionRuntime/JDBCDataSourceRuntimeMBeans/Partition1JDBCDataSource1/testPool
 
 
HTTP/1.1 200 OK
 
Response Body:
{"return": null}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the JMS system resources
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        JMSRuntime: {
          links: [],
          children: {
            JMSServers: {
              links: [],
              children: {
                destinations: {
                  links: [],
                }
              }
            }
          }
        },
        partitionRuntimes: {
          links: [], fields: [ 'name' ],
          children: {
            JMSRuntime: {
              links: [],
              children: {
                JMSServers: {
                  links: [],
                  children: {
                    destinations: {
                      links: [],
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "JMSRuntime"
                ],
                "JMSServersHighCount": 1,
                "connectionsHighCount": 0,
                "connectionsTotalCount": 0,
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "Cluster1Server1.jms",
                "JMSServersCurrentCount": 1,
                "type": "JMSRuntime",
                "JMSServersTotalCount": 1,
                "connectionsCurrentCount": 0,
                "JMSServers": {"items": [{
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "JMSServers",
                        "Partition1JMSServer1@Cluster1Server1"
                    ],
                    "messagesReceivedCount": 0,
                    "bytesThresholdTime": 0,
                    "bytesHighCount": 0,
                    "insertionPausedState": "Insertion-Enabled",
                    "destinationsCurrentCount": 1,
                    "pagingAllocatedIoBufferBytes": 0,
                    "type": "JMSServerRuntime",
                    "messagesPagedInTotalCount": 0,
                    "consumptionPaused": false,
                    "bytesPagedInTotalCount": 0,
                    "pagingPhysicalWriteCount": 0,
                    "pendingTransactions": null,
                    "bytesPagedOutTotalCount": 0,
                    "consumptionPausedState": "Consumption-Enabled",
                    "sessionPoolsHighCount": 0,
                    "bytesReceivedCount": 0,
                    "messagesHighCount": 0,
                    "productionPausedState": "Production-Enabled",
                    "pagingAllocatedWindowBufferBytes": 0,
                    "destinationsTotalCount": 1,
                    "sessionPoolsTotalCount": 0,
                    "messagesThresholdTime": 0,
                    "bytesCurrentCount": 0,
                    "transactions": null,
                    "messagesPagedOutTotalCount": 0,
                    "messagesCurrentCount": 0,
                    "destinationsHighCount": 1,
                    "insertionPaused": false,
                    "healthState": {
                        "state": "ok",
                        "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
                        "partitionName": null,
                        "symptoms": []
                    },
                    "messagesPageableCurrentCount": 0,
                    "sessionPoolsCurrentCount": 0,
                    "name": "Partition1JMSServer1@Cluster1Server1",
                    "bytesPendingCount": 0,
                    "productionPaused": false,
                    "bytesPageableCurrentCount": 0,
                    "messagesPendingCount": 0,
                    "destinations": {"items": [{
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "JMSServers",
                            "Partition1JMSServer1@Cluster1Server1",
                            "destinations",
                            "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1"
                        ],
                        "messagesReceivedCount": 0,
                        "bytesThresholdTime": 0,
                        "bytesHighCount": 0,
                        "insertionPausedState": "Insertion-Enabled",
                        "type": "JMSDestinationRuntime",
                        "consumptionPaused": false,
                        "messagesDeletedCurrentCount": 0,
                        "destinationType": "Queue",
                        "consumptionPausedState": "Consumption-Enabled",
                        "state": "started",
                        "bytesReceivedCount": 0,
                        "messagesHighCount": 0,
                        "productionPausedState": "Production-Enabled",
                        "consumersTotalCount": 0,
                        "consumersHighCount": 0,
                        "messagesThresholdTime": 0,
                        "bytesCurrentCount": 0,
                        "messagesMovedCurrentCount": 0,
                        "messagesCurrentCount": 0,
                        "insertionPaused": false,
                        "name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1",
                        "bytesPendingCount": 0,
                        "productionPaused": false,
                        "messagesPendingCount": 0,
                        "consumersCurrentCount": 0
                    }]}
                }]}
            }
        }]},
        "JMSRuntime": {
            "identity": ["JMSRuntime"],
            "JMSServersHighCount": 1,
            "connectionsHighCount": 0,
            "connectionsTotalCount": 0,
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "Cluster1Server1.jms",
            "JMSServersCurrentCount": 1,
            "type": "JMSRuntime",
            "JMSServersTotalCount": 1,
            "connectionsCurrentCount": 0,
            "JMSServers": {"items": [{
                "identity": [
                    "JMSServers",
                    "JMSServer1@Cluster1Server1"
                ],
                "messagesReceivedCount": 0,
                "bytesThresholdTime": 0,
                "bytesHighCount": 0,
                "insertionPausedState": "Insertion-Enabled",
                "destinationsCurrentCount": 1,
                "pagingAllocatedIoBufferBytes": 0,
                "type": "JMSServerRuntime",
                "messagesPagedInTotalCount": 0,
                "consumptionPaused": false,
                "bytesPagedInTotalCount": 0,
                "pagingPhysicalWriteCount": 0,
                "pendingTransactions": null,
                "bytesPagedOutTotalCount": 0,
                "consumptionPausedState": "Consumption-Enabled",
                "sessionPoolsHighCount": 0,
                "bytesReceivedCount": 0,
                "messagesHighCount": 0,
                "productionPausedState": "Production-Enabled",
                "pagingAllocatedWindowBufferBytes": 0,
                "destinationsTotalCount": 1,
                "sessionPoolsTotalCount": 0,
                "messagesThresholdTime": 0,
                "bytesCurrentCount": 0,
                "transactions": null,
                "messagesPagedOutTotalCount": 0,
                "messagesCurrentCount": 0,
                "destinationsHighCount": 1,
                "insertionPaused": false,
                "healthState": {
                    "state": "ok",
                    "subsystemName": "JMSServer.JMSServer1@Cluster1Server1",
                    "partitionName": null,
                    "symptoms": []
                },
                "messagesPageableCurrentCount": 0,
                "sessionPoolsCurrentCount": 0,
                "name": "JMSServer1@Cluster1Server1",
                "bytesPendingCount": 0,
                "productionPaused": false,
                "bytesPageableCurrentCount": 0,
                "messagesPendingCount": 0,
                "destinations": {"items": [{
                    "identity": [
                        "JMSServers",
                        "JMSServer1@Cluster1Server1",
                        "destinations",
                        "JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1"
                    ],
                    "messagesReceivedCount": 0,
                    "bytesThresholdTime": 0,
                    "bytesHighCount": 0,
                    "insertionPausedState": "Insertion-Enabled",
                    "type": "JMSDestinationRuntime",
                    "consumptionPaused": false,
                    "messagesDeletedCurrentCount": 0,
                    "destinationType": "Queue",
                    "consumptionPausedState": "Consumption-Enabled",
                    "state": "started",
                    "bytesReceivedCount": 0,
                    "messagesHighCount": 0,
                    "productionPausedState": "Production-Enabled",
                    "consumersTotalCount": 0,
                    "consumersHighCount": 0,
                    "messagesThresholdTime": 0,
                    "bytesCurrentCount": 0,
                    "messagesMovedCurrentCount": 0,
                    "messagesCurrentCount": 0,
                    "insertionPaused": false,
                    "name": "JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1",
                    "bytesPendingCount": 0,
                    "productionPaused": false,
                    "messagesPendingCount": 0,
                    "consumersCurrentCount": 0
                }]}
            }]}
        }
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "JMSRuntime"
                ],
                "JMSServersHighCount": 0,
                "connectionsHighCount": 0,
                "connectionsTotalCount": 0,
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "AdminServer.jms",
                "JMSServersCurrentCount": 0,
                "type": "JMSRuntime",
                "JMSServersTotalCount": 0,
                "connectionsCurrentCount": 0,
                "JMSServers": {"items": []}
            }
        }]},
        "JMSRuntime": {
            "identity": ["JMSRuntime"],
            "JMSServersHighCount": 0,
            "connectionsHighCount": 0,
            "connectionsTotalCount": 0,
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "AdminServer.jms",
            "JMSServersCurrentCount": 0,
            "type": "JMSRuntime",
            "JMSServersTotalCount": 0,
            "connectionsCurrentCount": 0,
            "JMSServers": {"items": []}
        }
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "JMSRuntime"
                ],
                "JMSServersHighCount": 1,
                "connectionsHighCount": 0,
                "connectionsTotalCount": 0,
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "Cluster1Server2.jms",
                "JMSServersCurrentCount": 1,
                "type": "JMSRuntime",
                "JMSServersTotalCount": 1,
                "connectionsCurrentCount": 0,
                "JMSServers": {"items": [{
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "JMSServers",
                        "Partition1JMSServer1@Cluster1Server2"
                    ],
                    "messagesReceivedCount": 0,
                    "bytesThresholdTime": 0,
                    "bytesHighCount": 0,
                    "insertionPausedState": "Insertion-Enabled",
                    "destinationsCurrentCount": 1,
                    "pagingAllocatedIoBufferBytes": 0,
                    "type": "JMSServerRuntime",
                    "messagesPagedInTotalCount": 0,
                    "consumptionPaused": false,
                    "bytesPagedInTotalCount": 0,
                    "pagingPhysicalWriteCount": 0,
                    "pendingTransactions": null,
                    "bytesPagedOutTotalCount": 0,
                    "consumptionPausedState": "Consumption-Enabled",
                    "sessionPoolsHighCount": 0,
                    "bytesReceivedCount": 0,
                    "messagesHighCount": 0,
                    "productionPausedState": "Production-Enabled",
                    "pagingAllocatedWindowBufferBytes": 0,
                    "destinationsTotalCount": 1,
                    "sessionPoolsTotalCount": 0,
                    "messagesThresholdTime": 0,
                    "bytesCurrentCount": 0,
                    "transactions": null,
                    "messagesPagedOutTotalCount": 0,
                    "messagesCurrentCount": 0,
                    "destinationsHighCount": 1,
                    "insertionPaused": false,
                    "healthState": {
                        "state": "ok",
                        "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
                        "partitionName": null,
                        "symptoms": []
                    },
                    "messagesPageableCurrentCount": 0,
                    "sessionPoolsCurrentCount": 0,
                    "name": "Partition1JMSServer1@Cluster1Server2",
                    "bytesPendingCount": 0,
                    "productionPaused": false,
                    "bytesPageableCurrentCount": 0,
                    "messagesPendingCount": 0,
                    "destinations": {"items": [{
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "JMSServers",
                            "Partition1JMSServer1@Cluster1Server2",
                            "destinations",
                            "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1"
                        ],
                        "messagesReceivedCount": 0,
                        "bytesThresholdTime": 0,
                        "bytesHighCount": 0,
                        "insertionPausedState": "Insertion-Enabled",
                        "type": "JMSDestinationRuntime",
                        "consumptionPaused": false,
                        "messagesDeletedCurrentCount": 0,
                        "destinationType": "Queue",
                        "consumptionPausedState": "Consumption-Enabled",
                        "state": "started",
                        "bytesReceivedCount": 0,
                        "messagesHighCount": 0,
                        "productionPausedState": "Production-Enabled",
                        "consumersTotalCount": 0,
                        "consumersHighCount": 0,
                        "messagesThresholdTime": 0,
                        "bytesCurrentCount": 0,
                        "messagesMovedCurrentCount": 0,
                        "messagesCurrentCount": 0,
                        "insertionPaused": false,
                        "name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1",
                        "bytesPendingCount": 0,
                        "productionPaused": false,
                        "messagesPendingCount": 0,
                        "consumersCurrentCount": 0
                    }]}
                }]}
            }
        }]},
        "JMSRuntime": {
            "identity": ["JMSRuntime"],
            "JMSServersHighCount": 1,
            "connectionsHighCount": 0,
            "connectionsTotalCount": 0,
            "healthState": {
                "state": "ok",
                "subsystemName": null,
                "partitionName": null,
                "symptoms": []
            },
            "name": "Cluster1Server2.jms",
            "JMSServersCurrentCount": 1,
            "type": "JMSRuntime",
            "JMSServersTotalCount": 1,
            "connectionsCurrentCount": 0,
            "JMSServers": {"items": [{
                "identity": [
                    "JMSServers",
                    "JMSServer1@Cluster1Server2"
                ],
                "messagesReceivedCount": 0,
                "bytesThresholdTime": 0,
                "bytesHighCount": 0,
                "insertionPausedState": "Insertion-Enabled",
                "destinationsCurrentCount": 1,
                "pagingAllocatedIoBufferBytes": 0,
                "type": "JMSServerRuntime",
                "messagesPagedInTotalCount": 0,
                "consumptionPaused": false,
                "bytesPagedInTotalCount": 0,
                "pagingPhysicalWriteCount": 0,
                "pendingTransactions": null,
                "bytesPagedOutTotalCount": 0,
                "consumptionPausedState": "Consumption-Enabled",
                "sessionPoolsHighCount": 0,
                "bytesReceivedCount": 0,
                "messagesHighCount": 0,
                "productionPausedState": "Production-Enabled",
                "pagingAllocatedWindowBufferBytes": 0,
                "destinationsTotalCount": 1,
                "sessionPoolsTotalCount": 0,
                "messagesThresholdTime": 0,
                "bytesCurrentCount": 0,
                "transactions": null,
                "messagesPagedOutTotalCount": 0,
                "messagesCurrentCount": 0,
                "destinationsHighCount": 1,
                "insertionPaused": false,
                "healthState": {
                    "state": "ok",
                    "subsystemName": "JMSServer.JMSServer1@Cluster1Server2",
                    "partitionName": null,
                    "symptoms": []
                },
                "messagesPageableCurrentCount": 0,
                "sessionPoolsCurrentCount": 0,
                "name": "JMSServer1@Cluster1Server2",
                "bytesPendingCount": 0,
                "productionPaused": false,
                "bytesPageableCurrentCount": 0,
                "messagesPendingCount": 0,
                "destinations": {"items": [{
                    "identity": [
                        "JMSServers",
                        "JMSServer1@Cluster1Server2",
                        "destinations",
                        "JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1"
                    ],
                    "messagesReceivedCount": 0,
                    "bytesThresholdTime": 0,
                    "bytesHighCount": 0,
                    "insertionPausedState": "Insertion-Enabled",
                    "type": "JMSDestinationRuntime",
                    "consumptionPaused": false,
                    "messagesDeletedCurrentCount": 0,
                    "destinationType": "Queue",
                    "consumptionPausedState": "Consumption-Enabled",
                    "state": "started",
                    "bytesReceivedCount": 0,
                    "messagesHighCount": 0,
                    "productionPausedState": "Production-Enabled",
                    "consumersTotalCount": 0,
                    "consumersHighCount": 0,
                    "messagesThresholdTime": 0,
                    "bytesCurrentCount": 0,
                    "messagesMovedCurrentCount": 0,
                    "messagesCurrentCount": 0,
                    "insertionPaused": false,
                    "name": "JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1",
                    "bytesPendingCount": 0,
                    "productionPaused": false,
                    "messagesPendingCount": 0,
                    "consumersCurrentCount": 0
                }]}
            }]}
        }
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the applications
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        applicationRuntimes: {
          links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
        },
        partitionRuntimes: {
          links: [], fields: [ 'name' ],
          children: {
            applicationRuntimes: {
              links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-xa-adp-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "wls-management-services-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-notran-adp-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JDBCDataSource1"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JMSSystemResource1"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "fairShare"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "bea_wls_internal-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "basicapp"
                }
            ]}
        }]},
        "applicationRuntimes": {"items": [
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "wls-management-services"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "basicapp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-xa-adp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_cluster_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_deployment_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JMSSystemResource1"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JDBCDataSource1"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-notran-adp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "fairShare"
            }
        ]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-xa-adp-Partition1-adminVT"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "wls-management-services-Partition1-adminVT"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "bea_wls_internal-Partition1-adminVT"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-notran-adp-Partition1-adminVT"
                }
            ]}
        }]},
        "applicationRuntimes": {"items": [
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_management_internal2"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-notran-adp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-xa-adp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "wls-management-services"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "mejb"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_deployment_internal"
            }
        ]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JMSSystemResource1"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "basicapp"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "wls-management-services-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JDBCDataSource1"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "fairShare"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-xa-adp-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-notran-adp-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "bea_wls_internal-Partition1VirtualTarget"
                }
            ]}
        }]},
        "applicationRuntimes": {"items": [
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "fairShare"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_deployment_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JDBCDataSource1"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "wls-management-services"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "JMSSystemResource1"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_cluster_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-notran-adp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "basicapp"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "bea_wls_internal"
            },
            {
                "overallHealthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "jms-internal-xa-adp"
            }
        ]}
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the applications' servlets
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        applicationRuntimes: {
          links: [], fields: [ 'name' ],
          name: [ 'fairShare', 'basicapp' ],
          children: {
            componentRuntimes: {
              links: [], fields: [ 'name', 'type' ],
              children: {
                servlets: {
                  links: [],
                  fields: [
                    'name',
                    'executionTimeHigh',
                    'executionTimeLow',
                    'executionTimeAverage',
                    'invocationTotalCount'
                  ]
                }
              }
            }
          }
        },
        partitionRuntimes: {
          links: [], fields: [ 'name' ],
          children: {
            applicationRuntimes: {
              links: [], fields: [ 'name' ],
              name: [ 'fairShare', 'basicapp' ],
              children: {
                componentRuntimes: {
                  links: [], fields: [ 'name', 'type' ],
                  children: {
                    servlets: {
                      links: [],
                      fields: [
                        'name',
                        'executionTimeHigh',
                        'executionTimeLow',
                        'executionTimeAverage',
                        'invocationTotalCount'
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 100 Continue HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "name": "fairShare",
                    "componentRuntimes": {"items": [{
                        "type": "WebAppComponentRuntime",
                        "name": "Partition1VirtualTarget_\/partition1\/fairShare",
                        "servlets": {"items": [
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "JspServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "FileServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "SimpleFastServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "SimpleSlowServlet",
                                "executionTimeAverage": 0
                            }
                        ]}
                    }]}
                },
                {
                    "name": "basicapp",
                    "componentRuntimes": {"items": [
                        {
                            "type": "WebAppComponentRuntime",
                            "name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
                            "servlets": {"items": [
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "JspServlet",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet3",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet2",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet1",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "FileServlet",
                                    "executionTimeAverage": 0
                                }
                            ]}
                        },
                        {
                            "name": "BasicEJB.jar",
                            "type": "EJBComponentRuntime"
                        }
                    ]}
                }
            ]}
        }]},
        "applicationRuntimes": {"items": [
            {
                "name": "fairShare",
                "componentRuntimes": {"items": [{
                    "type": "WebAppComponentRuntime",
                    "name": "Cluster1Server1_\/fairShare",
                    "servlets": {"items": [
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "JspServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "FileServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "SimpleFastServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "SimpleSlowServlet",
                            "executionTimeAverage": 0
                        }
                    ]}
                }]}
            },
            {
                "name": "basicapp",
                "componentRuntimes": {"items": [
                    {
                        "type": "WebAppComponentRuntime",
                        "name": "Cluster1Server1_\/BasicAuth",
                        "servlets": {"items": [
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "JspServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet3",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet2",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet1",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "FileServlet",
                                "executionTimeAverage": 0
                            }
                        ]}
                    },
                    {
                        "name": "BasicEJB.jar",
                        "type": "EJBComponentRuntime"
                    }
                ]}
            }
        ]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": []}
        }]},
        "applicationRuntimes": {"items": []}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "name": "fairShare",
                    "componentRuntimes": {"items": [{
                        "type": "WebAppComponentRuntime",
                        "name": "Partition1VirtualTarget_\/partition1\/fairShare",
                        "servlets": {"items": [
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "JspServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "FileServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "SimpleFastServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "SimpleSlowServlet",
                                "executionTimeAverage": 0
                            }
                        ]}
                    }]}
                },
                {
                    "name": "basicapp",
                    "componentRuntimes": {"items": [
                        {
                            "type": "WebAppComponentRuntime",
                            "name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
                            "servlets": {"items": [
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "JspServlet",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet3",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet2",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "Servlet1",
                                    "executionTimeAverage": 0
                                },
                                {
                                    "executionTimeHigh": 0,
                                    "invocationTotalCount": 0,
                                    "executionTimeLow": 0,
                                    "name": "FileServlet",
                                    "executionTimeAverage": 0
                                }
                            ]}
                        },
                        {
                            "name": "BasicEJB.jar",
                            "type": "EJBComponentRuntime"
                        }
                    ]}
                }
            ]}
        }]},
        "applicationRuntimes": {"items": [
            {
                "name": "fairShare",
                "componentRuntimes": {"items": [{
                    "type": "WebAppComponentRuntime",
                    "name": "Cluster1Server2_\/fairShare",
                    "servlets": {"items": [
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "JspServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "FileServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "SimpleFastServlet",
                            "executionTimeAverage": 0
                        },
                        {
                            "executionTimeHigh": 0,
                            "invocationTotalCount": 0,
                            "executionTimeLow": 0,
                            "name": "SimpleSlowServlet",
                            "executionTimeAverage": 0
                        }
                    ]}
                }]}
            },
            {
                "name": "basicapp",
                "componentRuntimes": {"items": [
                    {
                        "type": "WebAppComponentRuntime",
                        "name": "Cluster1Server2_\/BasicAuth",
                        "servlets": {"items": [
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "JspServlet",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet3",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet2",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "Servlet1",
                                "executionTimeAverage": 0
                            },
                            {
                                "executionTimeHigh": 0,
                                "invocationTotalCount": 0,
                                "executionTimeLow": 0,
                                "name": "FileServlet",
                                "executionTimeAverage": 0
                            }
                        ]}
                    },
                    {
                        "name": "BasicEJB.jar",
                        "type": "EJBComponentRuntime"
                    }
                ]}
            }
        ]}
    }
]}}
 
 
 
 
 
----------------------------------------------------------------------
Monitor the resource managers
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      links: [], fields: [ 'name' ],
      children: {
        partitionRuntimes: {
          links: [], fields: [ 'name' ],
          children: {
            resourceManagerRuntime: {
              links: [],
              children: {
                resourceRuntimes: {
                  links: [],
                  children: {
                    triggerRuntimes: { links: [] },
                    fairShareConstraintRuntime:  { links: [] }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search
 
 
HTTP/1.1 200 OK
 
Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "resourceManagerRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "resourceManagerRuntime"
                ],
                "name": "Partition1ResourceManager",
                "type": "ResourceManagerRuntime",
                "resourceRuntimes": {"items": [
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "FileOpen"
                        ],
                        "usage": 2,
                        "name": "FileOpen",
                        "type": "ResourceRuntime",
                        "resourceType": "file-open",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "FileOpen",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": null,
                            "type": "TriggerRuntime",
                            "activated": false
                        }]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "CpuUtilization"
                        ],
                        "usage": 1,
                        "name": "CpuUtilization",
                        "type": "ResourceRuntime",
                        "resourceType": "cpu-utilization",
                        "triggerRuntimes": {"items": [
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "NotifyTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "NotifyTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            },
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "SlowTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "SlowTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            }
                        ]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "HeapRetained"
                        ],
                        "usage": 6,
                        "name": "HeapRetained",
                        "type": "ResourceRuntime",
                        "resourceType": "heap-retained",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "HeapRetained",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": null,
                            "type": "TriggerRuntime",
                            "activated": false
                        }]},
                        "fairShareConstraintRuntime": null
                    }
                ]}
            }
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "resourceManagerRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "resourceManagerRuntime"
                ],
                "name": "Partition1ResourceManager",
                "type": "ResourceManagerRuntime",
                "resourceRuntimes": {"items": [
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "FileOpen"
                        ],
                        "usage": 5,
                        "name": "FileOpen",
                        "type": "ResourceRuntime",
                        "resourceType": "file-open",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "FileOpen",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:30.113-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:30.117-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:30.220-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:30.221-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:36.875-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:36.876-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:36.966-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:36.966-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:39.287-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:39.288-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:39.389-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2016-05-12T11:27:39.389-04",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:58.308-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2016-05-12T11:27:58.308-04",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                }
                            ],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": "2016-05-12T11:27:58.308-04",
                            "type": "TriggerRuntime",
                            "activated": true
                        }]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "CpuUtilization"
                        ],
                        "usage": 4,
                        "name": "CpuUtilization",
                        "type": "ResourceRuntime",
                        "resourceType": "cpu-utilization",
                        "triggerRuntimes": {"items": [
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "NotifyTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "NotifyTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            },
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "SlowTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "SlowTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            }
                        ]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "HeapRetained"
                        ],
                        "usage": 9,
                        "name": "HeapRetained",
                        "type": "ResourceRuntime",
                        "resourceType": "heap-retained",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "HeapRetained",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": null,
                            "type": "TriggerRuntime",
                            "activated": false
                        }]},
                        "fairShareConstraintRuntime": null
                    }
                ]}
            }
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "resourceManagerRuntime": {
                "identity": [
                    "partitionRuntimes",
                    "Partition1",
                    "resourceManagerRuntime"
                ],
                "name": "Partition1ResourceManager",
                "type": "ResourceManagerRuntime",
                "resourceRuntimes": {"items": [
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "FileOpen"
                        ],
                        "usage": 2,
                        "name": "FileOpen",
                        "type": "ResourceRuntime",
                        "resourceType": "file-open",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "FileOpen",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": null,
                            "type": "TriggerRuntime",
                            "activated": false
                        }]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "CpuUtilization"
                        ],
                        "usage": 1,
                        "name": "CpuUtilization",
                        "type": "ResourceRuntime",
                        "resourceType": "cpu-utilization",
                        "triggerRuntimes": {"items": [
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "NotifyTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "NotifyTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            },
                            {
                                "identity": [
                                    "partitionRuntimes",
                                    "Partition1",
                                    "resourceManagerRuntime",
                                    "resourceRuntimes",
                                    "CpuUtilization",
                                    "triggerRuntimes",
                                    "SlowTrigger"
                                ],
                                "initiated": false,
                                "recourseActionEventsHistory": [],
                                "name": "SlowTrigger",
                                "lastTimeExecuted": null,
                                "type": "TriggerRuntime",
                                "activated": false
                            }
                        ]},
                        "fairShareConstraintRuntime": null
                    },
                    {
                        "identity": [
                            "partitionRuntimes",
                            "Partition1",
                            "resourceManagerRuntime",
                            "resourceRuntimes",
                            "HeapRetained"
                        ],
                        "usage": 6,
                        "name": "HeapRetained",
                        "type": "ResourceRuntime",
                        "resourceType": "heap-retained",
                        "triggerRuntimes": {"items": [{
                            "identity": [
                                "partitionRuntimes",
                                "Partition1",
                                "resourceManagerRuntime",
                                "resourceRuntimes",
                                "HeapRetained",
                                "triggerRuntimes",
                                "NotifyTrigger"
                            ],
                            "initiated": false,
                            "recourseActionEventsHistory": [],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": null,
                            "type": "TriggerRuntime",
                            "activated": false
                        }]},
                        "fairShareConstraintRuntime": null
                    }
                ]}
            }
        }]}
    }
]}}

Starting and Stopping Domain-Scoped Applications

The following example script demonstrates how an Operator starts and stops domain-scoped applications.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping a domain scoped app
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare/getState
 
 
HTTP/1.1 200 OK
 
Response Body:
{"return": "STATE_ACTIVE"}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously stop the app
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare/stop
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1463066892943,
    "deploymentMessages": [
        "[Deployer:149192]Operation \"stop\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
        "[Deployer:149192]Operation \"stop\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
        "[Deployer:149194]Operation \"stop\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
        "[Deployer:149194]Operation \"stop\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
    ],
    "name": "fairShare",
    "operationType": 2,
    "startTimeAsLong": 1463066892798,
    "state": "STATE_COMPLETED",
    "id": "4",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:12.798-04",
    "endTime": "2016-05-12T11:28:12.943-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare/getState
 
 
HTTP/1.1 200 OK
 
Response Body:
{"return": "STATE_PREPARED"}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously start the app
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1463066893553,
    "deploymentMessages": [
        "[Deployer:149192]Operation \"start\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
        "[Deployer:149192]Operation \"start\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
        "[Deployer:149194]Operation \"start\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
        "[Deployer:149194]Operation \"start\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
    ],
    "name": "fairShare",
    "operationType": 1,
    "startTimeAsLong": 1463066893441,
    "state": "STATE_COMPLETED",
    "id": "5",
    "type": "DeploymentProgressObject",
    "targets": ["Cluster1"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:13.441-04",
    "endTime": "2016-05-12T11:28:13.553-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/fairShare/getState
 
 
HTTP/1.1 200 OK
 
Response Body:
{"return": "STATE_ACTIVE"}

Starting and Stopping Partitions

The following example script demonstrates how an Operator starts and stops partitions.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping a partition
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "name": "Partition1",
    "state": "RUNNING"
}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously gracefully shut down the partition
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  timeout: 10, ignoreSessions: true
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/shutdown
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_8_SHUTDOWN"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_8_SHUTDOWN"
    ],
    "systemTask": false,
    "description": "Shutting down Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066895993,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": false,
    "partitionName": "Partition1",
    "endTimeAsLong": 1463066902127,
    "name": "_8_SHUTDOWN",
    "progress": "success",
    "taskError": null,
    "operation": "SHUTDOWN",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:15.993-04",
    "endTime": "2016-05-12T11:28:22.127-04"
}
 
 
 
 
 
----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "name": "Partition1",
    "state": "SHUTDOWN"
}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously start the partition
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_12_START"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_12_START"
    ],
    "systemTask": false,
    "description": "Starting Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066905101,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": false,
    "partitionName": "Partition1",
    "endTimeAsLong": 1463066909952,
    "name": "_12_START",
    "progress": "success",
    "taskError": null,
    "operation": "START",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:25.101-04",
    "endTime": "2016-05-12T11:28:29.952-04"
}
 
 
 
 
 
----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "name": "Partition1",
    "state": "RUNNING"
}
 
 
 
 
 
----------------------------------------------------------------------
Asynchronously force shutdown the partition
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/forceShutdown
 
 
HTTP/1.1 202 Accepted
 
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_16_FORCE_SHUTDOWN"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_16_FORCE_SHUTDOWN"
    ],
    "systemTask": false,
    "description": "Force Shutting down Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066911437,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": true,
    "partitionName": "Partition1",
    "name": "_16_FORCE_SHUTDOWN",
    "progress": "processing",
    "taskError": null,
    "operation": "FORCE_SHUTDOWN",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:31.437-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_16_FORCE_SHUTDOWN"
    ],
    "systemTask": false,
    "description": "Force Shutting down Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066911437,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": false,
    "partitionName": "Partition1",
    "endTimeAsLong": 1463066911773,
    "name": "_16_FORCE_SHUTDOWN",
    "progress": "success",
    "taskError": null,
    "operation": "FORCE_SHUTDOWN",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:31.437-04",
    "endTime": "2016-05-12T11:28:31.773-04"
}
 
 
 
 
 
 
----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "name": "Partition1",
    "state": "SHUTDOWN"
}
 
 
 
 
 
----------------------------------------------------------------------
Asynchronously start the partition
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start
 
 
HTTP/1.1 202 Accepted
 
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_20_START"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_20_START"
    ],
    "systemTask": false,
    "description": "Starting Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066915287,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": true,
    "partitionName": "Partition1",
    "name": "_20_START",
    "progress": "processing",
    "taskError": null,
    "operation": "START",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:35.287-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_20_START"
    ],
    "systemTask": false,
    "description": "Starting Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066915287,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": true,
    "partitionName": "Partition1",
    "name": "_20_START",
    "progress": "processing",
    "taskError": null,
    "operation": "START",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:35.287-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "partitionLifeCycleRuntime",
        "tasks",
        "_20_START"
    ],
    "systemTask": false,
    "description": "Starting Partition1 on servers Cluster1Server1,AdminServer,Cluster1Server2 ... ",
    "serverName": "Cluster1Server1,AdminServer,Cluster1Server2",
    "startTimeAsLong": 1463066915287,
    "type": "PartitionLifeCycleTaskRuntime",
    "running": false,
    "partitionName": "Partition1",
    "endTimeAsLong": 1463066917269,
    "name": "_20_START",
    "progress": "success",
    "taskError": null,
    "operation": "START",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:35.287-04",
    "endTime": "2016-05-12T11:28:37.269-04"
}
 
 
 
 
 
 
----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "name": "Partition1",
    "state": "RUNNING"
}

Starting and Stopping Servers

The following example script demonstrates how an Operator starts and stops servers.

Note:

To view long URLs, use the scroll bar located beneath the section.

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping servers
----------------------------------------------------------------------
 
 
 
 
----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "name": "Cluster1Server1",
        "state": "RUNNING"
    },
    {
        "name": "AdminServer",
        "state": "RUNNING"
    },
    {
        "name": "Cluster1Server2",
        "state": "RUNNING"
    }
]}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously shutdown a server
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  timeout: 10, ignoreSessions: true
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/shutdown
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_2_shutdown"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server1",
        "tasks",
        "_2_shutdown"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463066941933,
    "name": "_2_shutdown",
    "progress": "success",
    "description": "Shutting down Cluster1Server1 server ...",
    "serverName": "Cluster1Server1",
    "taskError": null,
    "startTimeAsLong": 1463066934774,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "shutdown",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:28:54.774-04",
    "endTime": "2016-05-12T11:29:01.933-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Asynchronously force shutdown a server
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/forceShutdown
 
 
HTTP/1.1 202 Accepted
 
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_3_forceShutdown"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_3_forceShutdown"
    ],
    "running": true,
    "systemTask": false,
    "name": "_3_forceShutdown",
    "progress": "processing",
    "description": "Forcefully shutting down Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066942268,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "forceShutdown",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:02.268-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_3_forceShutdown"
    ],
    "running": true,
    "systemTask": false,
    "name": "_3_forceShutdown",
    "progress": "processing",
    "description": "Forcefully shutting down Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066942268,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "forceShutdown",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:02.268-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_3_forceShutdown"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463066946196,
    "name": "_3_forceShutdown",
    "progress": "success",
    "description": "Forcefully shutting down Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066942268,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "forceShutdown",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:02.268-04",
    "endTime": "2016-05-12T11:29:06.196-04"
}
 
 
 
 
 
 
----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "name": "Cluster1Server1",
        "state": "SHUTDOWN"
    },
    {
        "name": "AdminServer",
        "state": "RUNNING"
    },
    {
        "name": "Cluster1Server2",
        "state": "SHUTDOWN"
    }
]}
 
 
 
 
 
----------------------------------------------------------------------
Synchronously start a server
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/start
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_4_start"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server1",
        "tasks",
        "_4_start"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463066993111,
    "name": "_4_start",
    "progress": "success",
    "description": "Starting Cluster1Server1 server ...",
    "serverName": "Cluster1Server1",
    "taskError": null,
    "startTimeAsLong": 1463066961190,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:21.190-04",
    "endTime": "2016-05-12T11:29:53.111-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Asynchronously start a server
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/start
 
 
HTTP/1.1 202 Accepted
 
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
 
Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_5_start"
    }],
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_5_start"
    ],
    "running": true,
    "systemTask": false,
    "name": "_5_start",
    "progress": "processing",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066998199,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:58.199-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_5_start"
    ],
    "running": true,
    "systemTask": false,
    "name": "_5_start",
    "progress": "processing",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066998199,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:58.199-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_5_start"
    ],
    "running": true,
    "systemTask": false,
    "name": "_5_start",
    "progress": "processing",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066998199,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:58.199-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_5_start"
    ],
    "running": true,
    "systemTask": false,
    "name": "_5_start",
    "progress": "processing",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066998199,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK IN PROGRESS",
    "parentTask": null,
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:58.199-04"
}
 
 
 
 
 
----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none
 
 
HTTP/1.1 200 OK
 
Response Body:
{
    "identity": [
        "serverLifeCycleRuntimes",
        "Cluster1Server2",
        "tasks",
        "_5_start"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1463067029055,
    "name": "_5_start",
    "progress": "success",
    "description": "Starting Cluster1Server2 server ...",
    "serverName": "Cluster1Server2",
    "taskError": null,
    "startTimeAsLong": 1463066998199,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2016-05-12T11:29:58.199-04",
    "endTime": "2016-05-12T11:30:29.055-04"
}
 
 
 
 
 
 
----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------
 
curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state
 
 
HTTP/1.1 200 OK
 
Response Body:
{"items": [
    {
        "name": "Cluster1Server1",
        "state": "RUNNING"
    },
    {
        "name": "AdminServer",
        "state": "RUNNING"
    },
    {
        "name": "Cluster1Server2",
        "state": "RUNNING"
    }
]}