5 Partition Specific REST API Examples

Examine example scripts for users in partition level roles using WebLogic Server REST APIs to perform common partition management and monitoring tasks. For information on the user roles which can access a REST resource, see Accessing REST Resources.

This chapter includes the following sections:

Configuring Users

Review an example script that demonstrates how a Partition Administrator configures users such as Operators, Deployers, and Monitors, for a new partition.

Note:

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

----------------------------------------------------------------------
Demonstrate a partition admin configuring a partition
----------------------------------------------------------------------




----------------------------------------------------------------------
Create a deployer, operator and monitor for the new partition
----------------------------------------------------------------------

curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName:    'Partition1Deployer',
  password:    'Partition1Deployer123',
  description: 'Partition1 deployer'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName:             'Deployers',
  memberUserOrGroupName: 'Partition1Deployer'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName:    'Partition1Operator',
  password:    'Partition1Operator123',
  description: 'Partition1 operator'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName:             'Operators',
  memberUserOrGroupName: 'Partition1Operator'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  userName:    'Partition1Monitor',
  password:    'Partition1Monitor123',
  description: 'Partition1 monitor'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  groupName:             'Monitors',
  memberUserOrGroupName: 'Partition1Monitor'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup


HTTP/1.1 200 OK

Response Body:
{}

Creating Partition-Scoped System Resources

Review an example script that demonstrates how a Deployer creates a partition-scoped data source and a JMS system resource.

Note:

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

----------------------------------------------------------------------
Demonstrate a partition deployer configuring system resources
----------------------------------------------------------------------




----------------------------------------------------------------------
View the default values for a new partition-scoped JDBC system resource
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/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 Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/startEdit


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
Create a new partition-scoped JDBC system resource and set its name
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'Partition1JDBCDataSource1',
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources?saveChanges=false


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1

Response Body:
{}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'Partition1JDBCDataSource1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
Configure the JDBC system resource's JNDI name
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  JNDINames: [ 'Partition1JDBCDataSource1' ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDataSourceParams


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
Configure the JDBC system resource's driver info
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-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/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams


HTTP/1.1 200 OK

Response Body:
{}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:  'portNumber',
  value: '1527'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/portNumber

Response Body:
{}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-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/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/databaseName

Response Body:
{}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:  'serverName',
  value: 'localhost'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/serverName

Response Body:
{}





----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/activate


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
View the new JDBC system resource
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JDBCSystemResources",
        "Partition1JDBCDataSource1"
    ],
    "notes": null,
    "moduleType": null,
    "deploymentPrincipalName": null,
    "descriptorFileName": "partitions\/Partition1\/jdbc\/Partition1JDBCDataSource1-3274-jdbc.xml",
    "name": "Partition1JDBCDataSource1",
    "compatibilityName": null,
    "id": 0,
    "deploymentOrder": 100,
    "dynamicallyCreated": false,
    "type": "JDBCSystemResource",
    "sourcePath": ".\/config\/partitions\/Partition1\/jdbc\/Partition1JDBCDataSource1-3274-jdbc.xml",
    "tags": [],
    "resource": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JDBCSystemResources",
        "Partition1JDBCDataSource1",
        "JDBCResource"
    ],
    "targets": []
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JDBCSystemResources",
        "Partition1JDBCDataSource1",
        "JDBCResource"
    ],
    "datasourceType": null,
    "name": "Partition1JDBCDataSource1",
    "id": 0,
    "version": null
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDataSourceParams?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JDBCSystemResources",
        "Partition1JDBCDataSource1",
        "JDBCResource",
        "JDBCDataSourceParams"
    ],
    "connectionPoolFailoverCallbackHandler": null,
    "globalTransactionsProtocol": "OnePhaseCommit",
    "algorithmType": "Failover",
    "scope": "Global",
    "failoverRequestIfBusy": false,
    "proxySwitchingCallback": null,
    "JNDINames": ["Partition1JDBCDataSource1"],
    "proxySwitchingProperties": null,
    "dataSourceList": null,
    "keepConnAfterGlobalTx": false
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JDBCSystemResources",
        "Partition1JDBCDataSource1",
        "JDBCResource",
        "JDBCDriverParams"
    ],
    "password": null,
    "driverName": "org.apache.derby.jdbc.ClientXADataSource",
    "usePasswordIndirection": false,
    "url": "jdbc:derby:\/\/localhost:1527\/demo",
    "useXaDataSourceInterface": true
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties?links=none


HTTP/1.1 200 OK

Response Body:
{"items": [
    {
        "identity": [
            "partitions",
            "Partition1",
            "resourceGroups",
            "Partition1ResourceGroup",
            "JDBCSystemResources",
            "Partition1JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "portNumber"
        ],
        "encryptedValue": null,
        "name": "portNumber",
        "sysPropValue": null,
        "value": "1527"
    },
    {
        "identity": [
            "partitions",
            "Partition1",
            "resourceGroups",
            "Partition1ResourceGroup",
            "JDBCSystemResources",
            "Partition1JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "databaseName"
        ],
        "encryptedValue": null,
        "name": "databaseName",
        "sysPropValue": null,
        "value": "demo;create=true"
    },
    {
        "identity": [
            "partitions",
            "Partition1",
            "resourceGroups",
            "Partition1ResourceGroup",
            "JDBCSystemResources",
            "Partition1JDBCDataSource1",
            "JDBCResource",
            "JDBCDriverParams",
            "properties",
            "properties",
            "serverName"
        ],
        "encryptedValue": null,
        "name": "serverName",
        "sysPropValue": null,
        "value": "localhost"
    }
]}





----------------------------------------------------------------------
Search for all of the JDBC data sources runtimes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-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: {
            JDBCPartitionRuntime: {
              links: [], fields: [ 'name' ],
              children: {
                JDBCDataSourceRuntimeMBeans : {
                  links: [], fields: [ 'name', 'state' ]
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/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": [{
                    "state": "Running",
                    "name": "Partition1JDBCDataSource1"
                }]}
            }
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": null
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": {
                "name": "Partition1",
                "JDBCDataSourceRuntimeMBeans": {"items": [{
                    "state": "Running",
                    "name": "Partition1JDBCDataSource1"
                }]}
            }
        }]}
    }
]}}





----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/startEdit


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new partition-scoped JMS file store
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/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,
    "targets": [],
    "name": null
}





----------------------------------------------------------------------
Create a new partition-scoped file store
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'Partition1FileStore1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores/Partition1FileStore1

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new partition-scoped JMS server
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/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 partition-scoped JMS server and hook it up to the file store
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:            'Partition1JMSServer1',
  messagesMaximum: 10000,
  bytesMaximum:    10000000,
  persistentStore: [ 'partitions', 'Partition1', 'resourceGroups', 'Partition1ResourceGroup', 'fileStores', 'Partition1FileStore1' ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers/Partition1JMSServer1

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new partition-scoped JMS system resource
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/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 partition-scoped JMS system resource
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name: 'Partition1JMSSystemResource1',
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new JMS subdeployment
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/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 Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:    'Partition1JMSSubDeployment1',
  targets: [ { identity: [ 'partitions', 'Partition1', 'resourceGroups', 'Partition1ResourceGroup','JMSServers', 'Partition1JMSServer1' ] } ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeployments


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeployments/Partition1JMSSubDeployment1

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new JMS connection factory
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/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 Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:              'Partition1ConnectionFactory1',
  subDeploymentName: 'Partition1JMSSubDeployment1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactories


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactories/Partition1ConnectionFactory1

Response Body:
{}





----------------------------------------------------------------------
View the default values for a new JMS distributed queue
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/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 Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:              'Partition1UniformDistributedQueue1',
  subDeploymentName: 'Partition1JMSSubDeployment1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueues


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueues/Partition1UniformDistributedQueue1

Response Body:
{}





----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/activate


HTTP/1.1 200 OK

Response Body:
{}





----------------------------------------------------------------------
View the file stores
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores?links=none


HTTP/1.1 200 OK

Response Body:
{"items": [{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "fileStores",
        "Partition1FileStore1"
    ],
    "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": "Partition1FileStore1",
    "migrationPolicy": "Off",
    "secondsBetweenRestarts": 30,
    "restartInPlace": false,
    "targets": []
}]}





----------------------------------------------------------------------
View the JMS servers
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers?links=none


HTTP/1.1 200 OK

Response Body:
{"items": [{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "JMSServers",
        "Partition1JMSServer1"
    ],
    "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": "Partition1JMSServer1",
    "consumptionPausedAtStartup": "default",
    "pagingDirectory": null,
    "storeEnabled": true,
    "persistentStore": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "fileStores",
        "Partition1FileStore1"
    ],
    "targets": []
}]}





----------------------------------------------------------------------
View the JMS system resources and their children
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    partitions: {
      links: [], fields: [ 'name' ],
      children: {
        resourceGroups: {
          links: [], fields: [ 'name' ],
          children: {
            JMSSystemResources: {
              links: [],
              children: {
                JMSResource: {
                  links: [], fields: [],
                  children: {
                    connectionFactories: {
                      links: []
                    },
                    distributedQueues: {
                      links: []
                    },
                  }
                },
                subDeployments: {
                  links: []
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/search


HTTP/1.1 200 OK

Response Body:
{"partitions": {"items": [{
    "name": "Partition1",
    "resourceGroups": {"items": [{
        "name": "Partition1ResourceGroup",
        "JMSSystemResources": {"items": [{
            "identity": [
                "partitions",
                "Partition1",
                "resourceGroups",
                "Partition1ResourceGroup",
                "JMSSystemResources",
                "Partition1JMSSystemResource1"
            ],
            "notes": null,
            "moduleType": null,
            "deploymentPrincipalName": null,
            "descriptorFileName": "partitions\/Partition1\/jms\/partition1jmssystemresource1-jms.xml",
            "name": "Partition1JMSSystemResource1",
            "compatibilityName": null,
            "id": 0,
            "deploymentOrder": 100,
            "dynamicallyCreated": false,
            "type": "JMSSystemResource",
            "sourcePath": ".\/config\/partitions\/Partition1\/jms\/partition1jmssystemresource1-jms.xml",
            "tags": [],
            "resource": [
                "partitions",
                "Partition1",
                "resourceGroups",
                "Partition1ResourceGroup",
                "JMSSystemResources",
                "Partition1JMSSystemResource1",
                "JMSResource"
            ],
            "targets": [],
            "subDeployments": {"items": [{
                "identity": [
                    "partitions",
                    "Partition1",
                    "resourceGroups",
                    "Partition1ResourceGroup",
                    "JMSSystemResources",
                    "Partition1JMSSystemResource1",
                    "subDeployments",
                    "Partition1JMSSubDeployment1"
                ],
                "notes": null,
                "moduleType": null,
                "name": "Partition1JMSSubDeployment1",
                "compatibilityName": null,
                "untargeted": false,
                "id": 0,
                "dynamicallyCreated": false,
                "type": "SubDeployment",
                "tags": [],
                "targets": [{"identity": [
                    "partitions",
                    "Partition1",
                    "resourceGroups",
                    "Partition1ResourceGroup",
                    "JMSServers",
                    "Partition1JMSServer1"
                ]}]
            }]},
            "JMSResource": {"connectionFactories": {"items": [{
                "identity": [
                    "partitions",
                    "Partition1",
                    "resourceGroups",
                    "Partition1ResourceGroup",
                    "JMSSystemResources",
                    "Partition1JMSSystemResource1",
                    "JMSResource",
                    "connectionFactories",
                    "Partition1ConnectionFactory1"
                ],
                "notes": null,
                "JNDIName": null,
                "defaultTargetingEnabled": false,
                "name": "Partition1ConnectionFactory1",
                "subDeploymentName": "Partition1JMSSubDeployment1",
                "id": 0,
                "localJNDIName": null
            }]}}
        }]}
    }]}
}]}}





----------------------------------------------------------------------
Search for all of the JMS related runtimes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-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: {
            JMSRuntime: {
              links: [], fields: [ 'name', 'healthState' ],
              children: {
                JMSServers: {
                  links: [], fields: [ 'name', 'healthState' ],
                  children: {
                    destinations: {
                      links: [], fields: [ 'name', 'state' ],
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "Cluster1Server1.jms",
                "JMSServers": {"items": [{
                    "healthState": {
                        "state": "ok",
                        "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JMSServer1@Cluster1Server1",
                    "destinations": {"items": [{
                        "state": "started",
                        "name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1"
                    }]}
                }]}
            }
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "AdminServer.jms",
                "JMSServers": {"items": []}
            }
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JMSRuntime": {
                "healthState": {
                    "state": "ok",
                    "subsystemName": null,
                    "partitionName": null,
                    "symptoms": []
                },
                "name": "Cluster1Server2.jms",
                "JMSServers": {"items": [{
                    "healthState": {
                        "state": "ok",
                        "subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JMSServer1@Cluster1Server2",
                    "destinations": {"items": [{
                        "state": "started",
                        "name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1"
                    }]}
                }]}
            }
        }]}
    }
]}}

Deploying Partition-Scoped Applications

Review an example script that demonstrates how a Deployer deploys partition-scoped applications.

Note:

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

----------------------------------------------------------------------
Demonstrate a partition deployer deploying apps
----------------------------------------------------------------------




----------------------------------------------------------------------
Asynchronously deploy a partition-scoped server-side application to the cluster
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  name:       'basicapp',
  sourcePath: '/deployments/BasicApp/app/BasicApp.ear',
  planPath:   '/deployments/BasicApp/plan/Plan.xml'
}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments


HTTP/1.1 202 Accepted

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/basicapp"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "deploymentMessages": [],
    "name": "basicapp",
    "operationType": 3,
    "startTimeAsLong": 1507164899620,
    "state": "STATE_RUNNING",
    "id": "weblogic.deploy.configChangeTask.4",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "processing",
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:54:59.620-04:00"
}





----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "deploymentMessages": [],
    "name": "basicapp",
    "operationType": 3,
    "startTimeAsLong": 1507164899620,
    "state": "STATE_RUNNING",
    "id": "weblogic.deploy.configChangeTask.4",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "processing",
    "completed": false,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:54:59.620-04:00"
}





----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "basicapp"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1507164901146,
    "deploymentMessages": [
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\".",
        "[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing 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": 1507164899620,
    "state": "STATE_COMPLETED",
    "id": "weblogic.deploy.configChangeTask.4",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "basicapp",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:54:59.620-04:00",
    "endTime": "2017-10-04T20:55:01.146-04:00"
}






----------------------------------------------------------------------
Synchronously upload a partition-scoped application from the client and deploy it to the cluster
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:multipart/form-data \
-F "model={
  name: 'fairShare'
}" \
-F "sourcePath=@/deployments/fairShare.war" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments


HTTP/1.1 100 Continue HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/fairShare

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1507164924294,
    "deploymentMessages": [
        "[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server2\".",
        "[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server1\".",
        "[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": 1507164919506,
    "state": "STATE_COMPLETED",
    "id": "weblogic.deploy.configChangeTask.5",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:55:19.506-04:00",
    "endTime": "2017-10-04T20:55:24.294-04:00"
}





----------------------------------------------------------------------
View the new applications' configurations
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/fairShare?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "appDeployments",
        "fairShare"
    ],
    "stagingMode": null,
    "absoluteSourcePath": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/app\/fairShare.war",
    "notes": null,
    "absoluteAltDescriptorPath": null,
    "deploymentOrder": 100,
    "type": "AppDeployment",
    "installDir": null,
    "id": 0,
    "altDescriptorDir": null,
    "dynamicallyCreated": false,
    "sourcePath": "partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/app\/fairShare.war",
    "applicationName": "fairShare",
    "absoluteAltDescriptorDir": null,
    "moduleType": "war",
    "planStagingMode": null,
    "cacheInAppDirectory": false,
    "absoluteInstallDir": null,
    "compatibilityName": null,
    "absolutePlanPath": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan\/Plan.xml",
    "untargeted": false,
    "planDir": "partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan",
    "validateDDSecurityData": false,
    "applicationIdentifier": "fairShare",
    "tags": [],
    "planPath": "Plan.xml",
    "versionIdentifier": null,
    "deploymentPrincipalName": null,
    "absolutePlanDir": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan",
    "name": "fairShare",
    "parallelDeployModules": false,
    "securityDDModel": "DDOnly",
    "targets": []
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/basicapp?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "partitions",
        "Partition1",
        "resourceGroups",
        "Partition1ResourceGroup",
        "appDeployments",
        "basicapp"
    ],
    "stagingMode": null,
    "absoluteSourcePath": "\/deployments\/BasicApp\/app\/BasicApp.ear",
    "notes": null,
    "absoluteAltDescriptorPath": null,
    "deploymentOrder": 100,
    "type": "AppDeployment",
    "installDir": null,
    "id": 0,
    "altDescriptorDir": null,
    "dynamicallyCreated": false,
    "sourcePath": "\/deployments\/BasicApp\/app\/BasicApp.ear",
    "applicationName": "basicapp",
    "absoluteAltDescriptorDir": null,
    "moduleType": "ear",
    "planStagingMode": null,
    "cacheInAppDirectory": false,
    "absoluteInstallDir": null,
    "compatibilityName": null,
    "absolutePlanPath": "\/deployments\/BasicApp\/plan\/Plan.xml",
    "untargeted": false,
    "planDir": null,
    "validateDDSecurityData": false,
    "applicationIdentifier": "basicapp",
    "tags": [],
    "planPath": "\/deployments\/BasicApp\/plan\/Plan.xml",
    "versionIdentifier": null,
    "deploymentPrincipalName": null,
    "absolutePlanDir": null,
    "name": "basicapp",
    "parallelDeployModules": false,
    "securityDDModel": "DDOnly",
    "targets": []
}





----------------------------------------------------------------------
View the new applications' appDeploymentRuntimes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "appDeploymentRuntimes",
        "fairShare"
    ],
    "applicationVersion": null,
    "partitionName": "Partition1",
    "name": "fairShare",
    "type": "AppDeploymentRuntime",
    "applicationName": "fairShare",
    "modules": ["fairShare"]
}


curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/basicapp?links=none


HTTP/1.1 200 OK

Response Body:
{
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "appDeploymentRuntimes",
        "basicapp"
    ],
    "applicationVersion": null,
    "partitionName": "Partition1",
    "name": "basicapp",
    "type": "AppDeploymentRuntime",
    "applicationName": "basicapp",
    "modules": [
        "BasicEJB.jar",
        "BasicAuth"
    ]
}





----------------------------------------------------------------------
Search for all of the new applications' applicationRuntimes
----------------------------------------------------------------------

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-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: {
            applicationRuntimes: {
              links: [],
              name: [ 'fairShare', 'basicapp' ]
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
    {
        "name": "Cluster1Server1",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "applicationRuntimes",
                        "fairShare"
                    ],
                    "applicationVersion": null,
                    "internal": false,
                    "partitionName": "Partition1",
                    "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": [
                        "partitionRuntimes",
                        "Partition1",
                        "applicationRuntimes",
                        "basicapp"
                    ],
                    "applicationVersion": null,
                    "internal": false,
                    "partitionName": "Partition1",
                    "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",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": []}
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "applicationRuntimes": {"items": [
                {
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "applicationRuntimes",
                        "fairShare"
                    ],
                    "applicationVersion": null,
                    "internal": false,
                    "partitionName": "Partition1",
                    "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": [
                        "partitionRuntimes",
                        "Partition1",
                        "applicationRuntimes",
                        "basicapp"
                    ],
                    "applicationVersion": null,
                    "internal": false,
                    "partitionName": "Partition1",
                    "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 Partition Resources

Review an example script that demonstrates how a Monitor monitors the servers, partitions, applications, JMS, and data sources in a partition, including monitoring the resource manager.

For more information about resource management, see Configuring Resource Consumption Management in Using Oracle WebLogic Server Multitenant.

The example script also shows how the partition Monitor searches logs and returns consolidated search results.

Note:

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

----------------------------------------------------------------------
Demonstrate a partition monitor monitoring the partition
----------------------------------------------------------------------




----------------------------------------------------------------------
Monitor the servers this partition runs on
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/serverRuntimes?links=none


HTTP/1.1 200 OK

Response Body:
{"items": [
    {
        "identity": [],
        "stateVal": 2,
        "type": "ServerRuntime",
        "weblogicVersion": "WebLogic Server 12.2.1.3.0 Tue Oct  3 04:10:35 PDT 2017 1888999",
        "adminServerHost": "localhost",
        "restartRequired": false,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "state": "RUNNING",
        "defaultURL": "t3:\/\/localhost:7101",
        "adminServerListenPort": 7001,
        "adminServerListenPortSecure": false,
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "Cluster1Server1"
    },
    {
        "identity": [],
        "stateVal": 2,
        "type": "ServerRuntime",
        "weblogicVersion": "WebLogic Server 12.2.1.3.0 Tue Oct  3 04:10:35 PDT 2017 1888999",
        "adminServerHost": "localhost",
        "restartRequired": false,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "state": "RUNNING",
        "defaultURL": "t3:\/\/localhost:7001",
        "adminServerListenPort": 7001,
        "adminServerListenPortSecure": false,
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "AdminServer"
    },
    {
        "identity": [],
        "stateVal": 2,
        "type": "ServerRuntime",
        "weblogicVersion": "WebLogic Server 12.2.1.3.0 Tue Oct  3 04:10:35 PDT 2017 1888999",
        "adminServerHost": "localhost",
        "restartRequired": false,
        "overallHealthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "state": "RUNNING",
        "defaultURL": "t3:\/\/localhost:7102",
        "adminServerListenPort": 7001,
        "adminServerListenPortSecure": false,
        "healthState": {
            "state": "ok",
            "subsystemName": null,
            "partitionName": null,
            "symptoms": []
        },
        "name": "Cluster1Server2"
    }
]}





----------------------------------------------------------------------
Get a list of the running servers' overall health states
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      mergeCollection: true,
      fields: [ { name: 'overallHealthState', values: true } ]
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [{"overallHealthState": {"values": [
    {
        "state": "ok",
        "subsystemName": null,
        "partitionName": null,
        "symptoms": []
    },
    {
        "state": "ok",
        "subsystemName": null,
        "partitionName": null,
        "symptoms": []
    },
    {
        "state": "ok",
        "subsystemName": null,
        "partitionName": null,
        "symptoms": []
    }
]}}]}}





----------------------------------------------------------------------
Monitor the partitions
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-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/partitions/Partition1/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 Partition1Monitor:Partition1Monitor123 \
-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/partitions/Partition1/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": 1,
                    "reserveRequestCount": 1,
                    "type": "JDBCDataSourceRuntime",
                    "waitingForConnectionTotal": 0,
                    "enabled": true,
                    "currCapacityHighCount": 1,
                    "resolvedAsNotCommittedTotalCount": 0,
                    "prepStmtCacheHitCount": 0,
                    "prepStmtCacheMissCount": 0,
                    "databaseProductName": "Apache Derby",
                    "commitOutcomeRetryTotalCount": 0,
                    "failedRepurposeCount": 0,
                    "state": "Running",
                    "moduleId": "Partition1JDBCDataSource1",
                    "prepStmtCacheAddCount": 0,
                    "failuresToReconnectCount": 0,
                    "repurposeCount": 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,
                    "unresolvedTotalCount": 0,
                    "prepStmtCacheAccessCount": 0,
                    "driverVersion": "10.11.1.1 - (1616546)",
                    "resolvedAsCommittedTotalCount": 0,
                    "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
                }]}
            }
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": null
        }]}
    },
    {
        "name": "Cluster1Server2",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "JDBCPartitionRuntime": {
                "name": "Partition1",
                "JDBCDataSourceRuntimeMBeans": {"items": [{
                    "identity": [
                        "partitionRuntimes",
                        "Partition1",
                        "JDBCPartitionRuntime",
                        "JDBCDataSourceRuntimeMBeans",
                        "Partition1JDBCDataSource1"
                    ],
                    "connectionsTotalCount": 1,
                    "waitingForConnectionSuccessTotal": 0,
                    "highestNumUnavailable": 1,
                    "reserveRequestCount": 2,
                    "type": "JDBCDataSourceRuntime",
                    "waitingForConnectionTotal": 0,
                    "enabled": true,
                    "currCapacityHighCount": 1,
                    "resolvedAsNotCommittedTotalCount": 0,
                    "prepStmtCacheHitCount": 0,
                    "prepStmtCacheMissCount": 0,
                    "databaseProductName": "Apache Derby",
                    "commitOutcomeRetryTotalCount": 0,
                    "failedRepurposeCount": 0,
                    "state": "Running",
                    "moduleId": "Partition1JDBCDataSource1",
                    "prepStmtCacheAddCount": 0,
                    "failuresToReconnectCount": 0,
                    "repurposeCount": 0,
                    "databaseProductVersion": "10.11.1.1 - (1616546)",
                    "leakedConnectionCount": 0,
                    "waitingForConnectionFailureTotal": 0,
                    "activeConnectionsHighCount": 1,
                    "connectionDelayTime": 4,
                    "waitingForConnectionHighCount": 0,
                    "waitSecondsHighCount": 0,
                    "versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
                    "failedReserveRequestCount": 0,
                    "prepStmtCacheDeleteCount": 0,
                    "numAvailable": 1,
                    "deploymentState": 2,
                    "unresolvedTotalCount": 0,
                    "prepStmtCacheAccessCount": 0,
                    "driverVersion": "10.11.1.1 - (1616546)",
                    "resolvedAsCommittedTotalCount": 0,
                    "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
                }]}
            }
        }]}
    }
]}}





----------------------------------------------------------------------
Test a partition level JDBC data source
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/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 Partition1Monitor:Partition1Monitor123 \
-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: {
            JMSRuntime: {
              links: [],
              children: {
                JMSServers: {
                  links: [],
                  children: {
                    destinations: {
                      links: [],
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/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",
                        "subscriptionMessagesLimit": -1,
                        "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
                    }]}
                }]}
            }
        }]}
    },
    {
        "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": []}
            }
        }]}
    },
    {
        "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",
                        "subscriptionMessagesLimit": -1,
                        "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
                    }]}
                }]}
            }
        }]}
    }
]}}





----------------------------------------------------------------------
Monitor the applications
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-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: {
            applicationRuntimes: {
              links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/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": "fairShare"
                },
                {
                    "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": "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": "jms-internal-xa-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": "bea_wls_internal-Partition1VirtualTarget"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "jms-internal-notran-adp-Partition1VirtualTarget"
                }
            ]}
        }]}
    },
    {
        "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": "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-xa-adp-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"
                }
            ]}
        }]}
    },
    {
        "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": "jms-internal-xa-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": "fairShare"
                },
                {
                    "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": "wls-management-services-Partition1VirtualTarget"
                },
                {
                    "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"
                },
                {
                    "overallHealthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "healthState": {
                        "state": "ok",
                        "subsystemName": null,
                        "partitionName": null,
                        "symptoms": []
                    },
                    "name": "Partition1JMSSystemResource1"
                }
            ]}
        }]}
    }
]}}





----------------------------------------------------------------------
Monitor the applications' servlets
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-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: {
            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/partitions/Partition1/management/weblogic/latest/domainRuntime/search


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"
                        }
                    ]}
                }
            ]}
        }]}
    },
    {
        "name": "AdminServer",
        "partitionRuntimes": {"items": [{
            "name": "Partition1",
            "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"
                        }
                    ]}
                }
            ]}
        }]}
    }
]}}





----------------------------------------------------------------------
Get the total number of open sessions across each application's component runtimes across all servers
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      mergeCollection: true,
      children: {
        partitionRuntimes: {
          mergeOn: 'name',
          fields: [ { name: 'name', sameValue: true } ],
          children: {
            applicationRuntimes: {
              mergeOn: 'name',
              fields: [ { name: 'name', sameValue: true } ],
              children: {
                componentRuntimes: {
                  mergeCollection: true,
                  fields: [ { name: 'openSessionsCurrentCount', total: true } ]
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [{"partitionRuntimes": {"items": [{
    "name": "Partition1",
    "applicationRuntimes": {"items": [
        {
            "name": "fairShare",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 0,
                "count": 2
            }}]}
        },
        {
            "name": "wls-management-services-Partition1VirtualTarget",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 23,
                "count": 2
            }}]}
        },
        {
            "name": "Partition1JMSSystemResource1",
            "componentRuntimes": {"items": [{}]}
        },
        {
            "name": "basicapp",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 0,
                "count": 2
            }}]}
        },
        {
            "name": "jms-internal-xa-adp-Partition1VirtualTarget",
            "componentRuntimes": {"items": [{}]}
        },
        {
            "name": "Partition1JDBCDataSource1",
            "componentRuntimes": {"items": [{}]}
        },
        {
            "name": "bea_wls_internal-Partition1VirtualTarget",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 0,
                "count": 2
            }}]}
        },
        {
            "name": "jms-internal-notran-adp-Partition1VirtualTarget",
            "componentRuntimes": {"items": [{}]}
        },
        {
            "name": "wls-management-services-Partition1-adminVT",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 67,
                "count": 1
            }}]}
        },
        {
            "name": "bea_wls_internal-Partition1-adminVT",
            "componentRuntimes": {"items": [{"openSessionsCurrentCount": {
                "total": 0,
                "count": 1
            }}]}
        },
        {
            "name": "jms-internal-xa-adp-Partition1-adminVT",
            "componentRuntimes": {"items": [{}]}
        },
        {
            "name": "jms-internal-notran-adp-Partition1-adminVT",
            "componentRuntimes": {"items": [{}]}
        }
    ]}
}]}}]}}





----------------------------------------------------------------------
Get the total number of invocations of the servlets of each component runtime of the fairShare and wls-management-services application across all servers
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      mergeCollection: true,
      children: {
        partitionRuntimes: {
          mergeOn: 'name',
          fields: [ { name: 'name', sameValue: true } ],
          children: {
            applicationRuntimes: {
              name: [ 'fairShare', 'wls-management-services-Partition1-adminVT', 'wls-management-services-Partition1VirtualTarget' ],
              mergeOn: 'name',
              fields: [ { name: 'name', sameValue: true } ],
              children: {
                componentRuntimes: {
                  mergeOn: 'moduleId',
                  fields: [ { name: 'contextRoot', sameValue: true } ],
                  children: {
                    servlets: {
                      mergeCollection: true,
                      fields: [ { name: 'invocationTotalCount', total: true } ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [{"partitionRuntimes": {"items": [{
    "name": "Partition1",
    "applicationRuntimes": {"items": [
        {
            "name": "fairShare",
            "componentRuntimes": {"items": [{
                "contextRoot": "\/partition1\/fairShare",
                "servlets": {"items": [{"invocationTotalCount": {
                    "total": 0,
                    "count": 8
                }}]}
            }]}
        },
        {
            "name": "wls-management-services-Partition1VirtualTarget",
            "componentRuntimes": {"items": [{
                "contextRoot": "\/partition1\/management",
                "servlets": {"items": [{"invocationTotalCount": {
                    "total": 23,
                    "count": 6
                }}]}
            }]}
        },
        {
            "name": "wls-management-services-Partition1-adminVT",
            "componentRuntimes": {"items": [{
                "contextRoot": "\/partitions\/Partition1\/management",
                "servlets": {"items": [{"invocationTotalCount": {
                    "total": 67,
                    "count": 3
                }}]}
            }]}
        }
    ]}
}]}}]}}





----------------------------------------------------------------------
Get the information displayed by the console's webapp monitoring page
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  links: [], fields: [],
  children: {
    serverRuntimes: {
      mergeCollection: true,
      children: {
        partitionRuntimes: {
          mergeOn: 'name',
          children: {
            applicationRuntimes: {
              mergeOn: 'name',
              fields: [
                { name: 'name',     sameValue: true },
                { name: 'internal', sameValue: true }
              ],
              children: {
                componentRuntimes: {
                  mergeOn: 'moduleId',
                  fields: [
                    { name: 'contextRoot',               sameValue: true },
                    { name: 'type',                      sameValue: true },
                    { name: 'sourceInfo',                sameValue: true },
                    { name: 'deploymentState',           values:    true },
                    { name: 'openSessionsHighCount',     max:       true },
                    { name: 'openSessionsCurrentCount',  total:     true },
                    { name: 'sessionsOpenedTotalCount',  total:     true }
                  ],
                  children: {
                    servlets: {
                      mergeCollection: true,
                      fields: [ { name: 'invocationTotalCount', total: true } ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search


HTTP/1.1 100 Continue HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [{"partitionRuntimes": {"items": [{"applicationRuntimes": {"items": [
    {
        "internal": false,
        "name": "fairShare",
        "componentRuntimes": {"items": [{
            "type": "WebAppComponentRuntime",
            "sourceInfo": "fairShare.war",
            "contextRoot": "\/partition1\/fairShare",
            "openSessionsCurrentCount": {
                "total": 0,
                "count": 2
            },
            "deploymentState": {"values": [
                2,
                2
            ]},
            "sessionsOpenedTotalCount": {
                "total": 0,
                "count": 2
            },
            "openSessionsHighCount": {"max": 0},
            "servlets": {"items": [{"invocationTotalCount": {
                "total": 0,
                "count": 8
            }}]}
        }]}
    },
    {
        "internal": true,
        "name": "wls-management-services-Partition1VirtualTarget",
        "componentRuntimes": {"items": [{
            "type": "WebAppComponentRuntime",
            "sourceInfo": "wls-management-services.war",
            "contextRoot": "\/partition1\/management",
            "openSessionsCurrentCount": {
                "total": 27,
                "count": 2
            },
            "deploymentState": {"values": [
                2,
                2
            ]},
            "sessionsOpenedTotalCount": {
                "total": 27,
                "count": 2
            },
            "openSessionsHighCount": {"max": 14},
            "servlets": {"items": [{"invocationTotalCount": {
                "total": 25,
                "count": 6
            }}]}
        }]}
    },
    {
        "internal": false,
        "name": "Partition1JMSSystemResource1",
        "componentRuntimes": {"items": [{
            "deploymentState": {"values": [
                2,
                2
            ]},
            "type": "JMSComponentRuntime"
        }]}
    },
    {
        "internal": false,
        "name": "basicapp",
        "componentRuntimes": {"items": [
            {
                "type": "WebAppComponentRuntime",
                "sourceInfo": "BasicAuth.war",
                "contextRoot": "\/partition1\/BasicAuth",
                "openSessionsCurrentCount": {
                    "total": 0,
                    "count": 2
                },
                "deploymentState": {"values": [
                    2,
                    2
                ]},
                "sessionsOpenedTotalCount": {
                    "total": 0,
                    "count": 2
                },
                "openSessionsHighCount": {"max": 0},
                "servlets": {"items": [{"invocationTotalCount": {
                    "total": 0,
                    "count": 10
                }}]}
            },
            {
                "deploymentState": {"values": [
                    2,
                    2
                ]},
                "type": "EJBComponentRuntime"
            }
        ]}
    },
    {
        "internal": true,
        "name": "jms-internal-xa-adp-Partition1VirtualTarget",
        "componentRuntimes": {"items": [{
            "type": "ConnectorComponentRuntime",
            "deploymentState": {"values": [
                2,
                2
            ]}
        }]}
    },
    {
        "internal": false,
        "name": "Partition1JDBCDataSource1",
        "componentRuntimes": {"items": [{
            "type": "JDBCDataSourceRuntime",
            "deploymentState": {"values": [
                2,
                2
            ]}
        }]}
    },
    {
        "internal": true,
        "name": "bea_wls_internal-Partition1VirtualTarget",
        "componentRuntimes": {"items": [{
            "type": "WebAppComponentRuntime",
            "sourceInfo": "bea_wls_internal.war",
            "contextRoot": "\/partition1\/bea_wls_internal",
            "openSessionsCurrentCount": {
                "total": 0,
                "count": 2
            },
            "deploymentState": {"values": [
                2,
                2
            ]},
            "sessionsOpenedTotalCount": {
                "total": 0,
                "count": 2
            },
            "openSessionsHighCount": {"max": 0},
            "servlets": {"items": [{"invocationTotalCount": {
                "total": 0,
                "count": 22
            }}]}
        }]}
    },
    {
        "internal": true,
        "name": "jms-internal-notran-adp-Partition1VirtualTarget",
        "componentRuntimes": {"items": [{
            "type": "ConnectorComponentRuntime",
            "deploymentState": {"values": [
                2,
                2
            ]}
        }]}
    },
    {
        "internal": true,
        "name": "wls-management-services-Partition1-adminVT",
        "componentRuntimes": {"items": [{
            "type": "WebAppComponentRuntime",
            "sourceInfo": "wls-management-services.war",
            "contextRoot": "\/partitions\/Partition1\/management",
            "openSessionsCurrentCount": {
                "total": 69,
                "count": 1
            },
            "deploymentState": {"values": [2]},
            "sessionsOpenedTotalCount": {
                "total": 69,
                "count": 1
            },
            "openSessionsHighCount": {"max": 69},
            "servlets": {"items": [{"invocationTotalCount": {
                "total": 68,
                "count": 3
            }}]}
        }]}
    },
    {
        "internal": true,
        "name": "bea_wls_internal-Partition1-adminVT",
        "componentRuntimes": {"items": [{
            "type": "WebAppComponentRuntime",
            "sourceInfo": "bea_wls_internal.war",
            "contextRoot": "\/partitions\/Partition1\/bea_wls_internal",
            "openSessionsCurrentCount": {
                "total": 0,
                "count": 1
            },
            "deploymentState": {"values": [2]},
            "sessionsOpenedTotalCount": {
                "total": 0,
                "count": 1
            },
            "openSessionsHighCount": {"max": 0},
            "servlets": {"items": [{"invocationTotalCount": {
                "total": 0,
                "count": 11
            }}]}
        }]}
    },
    {
        "internal": true,
        "name": "jms-internal-xa-adp-Partition1-adminVT",
        "componentRuntimes": {"items": [{
            "type": "ConnectorComponentRuntime",
            "deploymentState": {"values": [2]}
        }]}
    },
    {
        "internal": true,
        "name": "jms-internal-notran-adp-Partition1-adminVT",
        "componentRuntimes": {"items": [{
            "type": "ConnectorComponentRuntime",
            "deploymentState": {"values": [2]}
        }]}
    }
]}}]}}]}}





----------------------------------------------------------------------
Monitor the resource manager
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-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/partitions/Partition1/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": 2,
                        "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": "2017-10-04T20:54:49.421-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:49.424-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:49.430-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:49.430-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:51.063-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:51.063-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:51.184-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:51.184-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:56.832-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:56.833-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:56.951-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:56.951-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:59.622-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:54:59.623-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:59.726-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 3,
                                    "executionDate": "2017-10-04T20:54:59.727-04:00",
                                    "action": "notify",
                                    "active": false,
                                    "actionSuccessful": true
                                },
                                {
                                    "initiated": true,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:55:19.076-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": false
                                },
                                {
                                    "initiated": false,
                                    "usage": 5,
                                    "executionDate": "2017-10-04T20:55:19.077-04:00",
                                    "action": "notify",
                                    "active": true,
                                    "actionSuccessful": true
                                }
                            ],
                            "name": "NotifyTrigger",
                            "lastTimeExecuted": "2017-10-04T20:55:19.077-04:00",
                            "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": 29,
                        "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": 2,
                        "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
                    }
                ]}
            }
        }]}
    }
]}}





----------------------------------------------------------------------
Search the admin server log as the partition monitor, returning the matching records as json
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  limit: 2,
  query: 'SEVERITY = \'Info\''
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search


HTTP/1.1 200 OK

Response Body:
{
"records": [
{
  "RECORDID": 1165,
  "DATE": "Oct 4, 2017 8:54:03,949 PM EDT",
  "SEVERITY": "Info",
  "SUBSYSTEM": "Store",
  "MACHINE": "machine1",
  "SERVER": "AdminServer",
  "THREAD": "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'",
  "USERID": "admin",
  "TXID": "",
  "CONTEXTID": "4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068",
  "TIMESTAMP": "1507164843949",
  "MSGID": "BEA-280008",
  "MESSAGE": "Opening the persistent file store \"_WLS_EJBTIMER_AdminServer\" for recovery: directory=\/domains\/mydomain\/partitions\/Partition1\/system\/store\/_WLS_EJBTIMER_AdminServer requestedWritePolicy=\"Direct-Write\" fileLockingEnabled=true driver=\"NIO\".",
  "SUPP_ATTRS": "[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] ",
  "SEVERITY_VALUE": 64,
  "PARTITION_ID": "dd28825b-4c19-4907-b5e7-f1b9c091f6d2",
  "PARTITION_NAME": "Partition1",
  "RID": "0"
},
{
  "RECORDID": 1167,
  "DATE": "Oct 4, 2017 8:54:04,006 PM EDT",
  "SEVERITY": "Info",
  "SUBSYSTEM": "Store",
  "MACHINE": "machine1",
  "SERVER": "AdminServer",
  "THREAD": "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'",
  "USERID": "admin",
  "TXID": "",
  "CONTEXTID": "4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068",
  "TIMESTAMP": "1507164844006",
  "MSGID": "BEA-280009",
  "MESSAGE": "The persistent file store \"_WLS_EJBTIMER_AdminServer\" (a61d1cf3-c586-4ffe-8b8c-9b1b2ea6e931) has been opened: blockSize=512 actualWritePolicy=\"Direct-Write(single-handle-buffered)\" explicitIOEnforced=false records=0.",
  "SUPP_ATTRS": "[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] ",
  "SEVERITY_VALUE": 64,
  "PARTITION_ID": "dd28825b-4c19-4907-b5e7-f1b9c091f6d2",
  "PARTITION_NAME": "Partition1",
  "RID": "0"
}],
"nextRecordId": 1168
}





----------------------------------------------------------------------
Continue searching a log. This example uses the POST method to continue searching for records in the admin server log as the partition monitor.
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  limit: 2,
  fromId: 1168,
  query: 'SEVERITY = \'Info\''
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search


HTTP/1.1 200 OK

Response Body:
{
"records": [
{
  "RECORDID": 1168,
  "DATE": "Oct 4, 2017 8:54:04,046 PM EDT",
  "SEVERITY": "Info",
  "SUBSYSTEM": "JMS",
  "MACHINE": "machine1",
  "SERVER": "AdminServer",
  "THREAD": "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'",
  "USERID": "admin",
  "TXID": "",
  "CONTEXTID": "4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068",
  "TIMESTAMP": "1507164844046",
  "MSGID": "BEA-040528",
  "MESSAGE": "Start JMS service for partition [Partition1]",
  "SUPP_ATTRS": "[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] ",
  "SEVERITY_VALUE": 64,
  "PARTITION_ID": "dd28825b-4c19-4907-b5e7-f1b9c091f6d2",
  "PARTITION_NAME": "Partition1",
  "RID": "0"
},
{
  "RECORDID": 1169,
  "DATE": "Oct 4, 2017 8:54:04,064 PM EDT",
  "SEVERITY": "Info",
  "SUBSYSTEM": "JMS",
  "MACHINE": "machine1",
  "SERVER": "AdminServer",
  "THREAD": "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'",
  "USERID": "admin",
  "TXID": "",
  "CONTEXTID": "4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068",
  "TIMESTAMP": "1507164844064",
  "MSGID": "BEA-040305",
  "MESSAGE": "JMS service is initialized and in standby mode.",
  "SUPP_ATTRS": "[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] ",
  "SEVERITY_VALUE": 64,
  "PARTITION_ID": "dd28825b-4c19-4907-b5e7-f1b9c091f6d2",
  "PARTITION_NAME": "Partition1",
  "RID": "0"
}],
"nextRecordId": 1170
}





----------------------------------------------------------------------
Search the admin server log as the partition monitor, returning the matching records as text
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:text/plain \
-H Content-Type:application/json \
-d "{
  limit: 2,
  query: 'SEVERITY = \'Info\' AND USERID = \'admin\'',
  lastMinutes: 60
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search


HTTP/1.1 200 OK

Response Body:
####<Oct 4, 2017 8:54:03,949 PM EDT> <Info> <Store> <machine1> <AdminServer> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068> <1507164843949> <[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] > <BEA-280008> <Opening the persistent file store "_WLS_EJBTIMER_AdminServer" for recovery: directory=/domains/mydomain/partitions/Partition1/system/store/_WLS_EJBTIMER_AdminServer requestedWritePolicy="Direct-Write" fileLockingEnabled=true driver="NIO".> 
####<Oct 4, 2017 8:54:04,006 PM EDT> <Info> <Store> <machine1> <AdminServer> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068> <1507164844006> <[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] > <BEA-280009> <The persistent file store "_WLS_EJBTIMER_AdminServer" (a61d1cf3-c586-4ffe-8b8c-9b1b2ea6e931) has been opened: blockSize=512 actualWritePolicy="Direct-Write(single-handle-buffered)" explicitIOEnforced=false records=0.> 
nextRecordId=1168





----------------------------------------------------------------------
Continue searching a log. This example uses the POST method to continue searching for records in the admin server log as the partition monitor.
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:text/plain \
-H Content-Type:application/json \
-d "{
  limit: 2,
  fromId: 1168,
  query: 'SEVERITY = \'Info\' AND USERID = \'admin\'',
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search


HTTP/1.1 200 OK

Response Body:
####<Oct 4, 2017 8:54:04,046 PM EDT> <Info> <JMS> <machine1> <AdminServer> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068> <1507164844046> <[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] > <BEA-040528> <Start JMS service for partition [Partition1]> 
####<Oct 4, 2017 8:54:04,064 PM EDT> <Info> <JMS> <machine1> <AdminServer> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <4691b1d5-efe0-4202-8ae1-d6cb582cf64a-00000068> <1507164844064> <[severity-value: 64] [rid: 0] [partition-id: dd28825b-4c19-4907-b5e7-f1b9c091f6d2] [partition-name: Partition1] > <BEA-040305> <JMS service is initialized and in standby mode.> 
nextRecordId=1170





----------------------------------------------------------------------
Capture a diagnostics image. Prevents capturing further images for the configured default lockout period. Note: only an admin is allowed to capture an image.
----------------------------------------------------------------------

curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionImageRuntime/capturedImages


HTTP/1.1 201 Created

Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionImageRuntime/capturedImages/diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/serverRuntime\/partitionRuntimes\/Partition1\/WLDFPartitionRuntime\/WLDFPartitionImageRuntime\/imageCaptureTasks\/DiagnosticImageCaptureTaskRuntime_2"
    }],
    "identity": [
        "partitionRuntimes",
        "Partition1",
        "WLDFPartitionRuntime",
        "WLDFPartitionImageRuntime",
        "imageCaptureTasks",
        "DiagnosticImageCaptureTaskRuntime_2"
    ],
    "running": false,
    "systemTask": false,
    "endTimeAsLong": 1507164948120,
    "imageFileName": "diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip",
    "name": "DiagnosticImageCaptureTaskRuntime_2",
    "progress": "success",
    "description": "diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip",
    "taskError": null,
    "startTimeAsLong": 1507164948021,
    "type": "WLDFImageCreationTaskRuntime",
    "taskStatus": "Completed",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:55:48.021-04:00",
    "endTime": "2017-10-04T20:55:48.120-04:00"
}





----------------------------------------------------------------------
List the captured diagnostics images.
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionImageRuntime/capturedImages?links=none


HTTP/1.1 200 OK

Response Body:
{"items": [{"name": "diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip"}]}





----------------------------------------------------------------------
Download a captured diagnostics image.
----------------------------------------------------------------------

curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/octet-stream \
-o diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionImageRuntime/capturedImages/diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip/contents


HTTP/1.1 200 OK

Response Body:

wc -c diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip
   18582 diagnostic_image__Partition1_dd28825b-4c19-4907-b5e7-f1b9c091f6d2_AdminServer_2017_10_04_20_55_48.zip






----------------------------------------------------------------------
Remove all of the captured images. Note: only an admin is allowed to remove captured images.
----------------------------------------------------------------------

curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
  age: ''
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverRuntime/partitionRuntimes/Partition1/WLDFPartitionRuntime/WLDFPartitionImageRuntime/purgeCapturedImages


HTTP/1.1 200 OK

Response Body:
{}

Starting and Stopping Partition-Scoped Applications

Review an example script that demonstrates how an Operator starts and stops partition-scoped applications.

Note:

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

----------------------------------------------------------------------
Demonstrate a partition operator starting and stopping a partitioned app
----------------------------------------------------------------------




----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------

curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState


HTTP/1.1 200 OK

Response Body:
{"return": "STATE_ACTIVE"}





----------------------------------------------------------------------
Synchronously stop the app
----------------------------------------------------------------------

curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/stop


HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1507164951520,
    "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": 1507164951453,
    "state": "STATE_COMPLETED",
    "id": "6",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:55:51.453-04:00",
    "endTime": "2017-10-04T20:55:51.520-04:00"
}





----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------

curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState


HTTP/1.1 200 OK

Response Body:
{"return": "STATE_PREPARED"}





----------------------------------------------------------------------
Synchronously start the app
----------------------------------------------------------------------

curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/start


HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
    }],
    "identity": [
        "domainPartitionRuntimes",
        "Partition1",
        "deploymentManager",
        "deploymentProgressObjects",
        "fairShare"
    ],
    "rootExceptions": [],
    "endTimeAsLong": 1507164952364,
    "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": 1507164952223,
    "state": "STATE_COMPLETED",
    "id": "7",
    "type": "DeploymentProgressObject",
    "targets": ["Partition1VirtualTarget"],
    "applicationName": "fairShare",
    "failedTargets": [],
    "progress": "success",
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2017-10-04T20:55:52.223-04:00",
    "endTime": "2017-10-04T20:55:52.364-04:00"
}





----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------

curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState


HTTP/1.1 200 OK

Response Body:
{"return": "STATE_ACTIVE"}