Oracle® Fusion Middleware

RESTful管理サービスによるOracle WebLogic Serverの管理

12c (12.2.1)

E70051-01(原本部品番号:E64974-01)

2015年10月

このドキュメントでは、RESTfulクライアントを開発するために公開される管理、監視、デプロイおよび構成タスクのためにOracle WebLogic Server RESTful管理インタフェースを使用する方法を説明します。

Oracle Fusion Middleware RESTful管理サービスによるOracle WebLogic Serverの管理, 12c (12.2.1)

E70051-01

Copyright © 2015, Oracle and/or its affiliates.All rights reserved.

原本著者:

原本協力著者:

原本協力者:

このソフトウェアおよび関連ドキュメントの使用と開示は、ライセンス契約の制約条件に従うものとし、知的財産に関する法律により保護されています。ライセンス契約で明示的に許諾されている場合もしくは法律によって認められている場合を除き、形式、手段に関係なく、いかなる部分も使用、複写、複製、翻訳、放送、修正、ライセンス供与、送信、配布、発表、実行、公開または表示することはできません。このソフトウェアのリバース・エンジニアリング、逆アセンブル、逆コンパイルは互換性のために法律によって規定されている場合を除き、禁止されています。

ここに記載された情報は予告なしに変更される場合があります。また、誤りが無いことの保証はいたしかねます。誤りを見つけた場合は、オラクル社までご連絡ください。

このソフトウェアまたは関連ドキュメントを、米国政府機関もしくは米国政府機関に代わってこのソフトウェアまたは関連ドキュメントをライセンスされた者に提供する場合は、次の通知が適用されます。

U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.No other rights are granted to the U.S. Government.

このソフトウェアもしくはハードウェアは様々な情報管理アプリケーションでの一般的な使用のために開発されたものです。このソフトウェアもしくはハードウェアは、危険が伴うアプリケーション(人的傷害を発生させる可能性があるアプリケーションを含む)への用途を目的として開発されていません。このソフトウェアもしくはハードウェアを危険が伴うアプリケーションで使用する際、安全に使用するために、適切な安全装置、バックアップ、冗長性(redundancy)、その他の対策を講じることは使用者の責任となります。このソフトウェアもしくはハードウェアを危険が伴うアプリケーションで使用したことに起因して損害が発生しても、オラクル社およびその関連会社は一切の責任を負いかねます。

OracleおよびJavaはOracle Corporationおよびその関連企業の登録商標です。その他の名称は、それぞれの所有者の商標または登録商標です。

Intel、Intel Xeonは、Intel Corporationの商標または登録商標です。すべてのSPARCの商標はライセンスをもとに使用し、SPARC International, Inc.の商標または登録商標です。AMD、Opteron、AMDロゴ、AMD Opteronロゴは、Advanced Micro Devices, Inc.の商標または登録商標です。UNIXは、The Open Groupの登録商標です。

このソフトウェアまたはハードウェア、そしてドキュメントは、第三者のコンテンツ、製品、サービスへのアクセス、あるいはそれらに関する情報を提供することがあります。適用されるお客様とOracle Corporationとの間の契約に別段の定めがある場合を除いて、Oracle Corporationおよびその関連会社は、第三者のコンテンツ、製品、サービスに関して一切の責任を負わず、いかなる保証もいたしません。適用されるお客様とOracle Corporationとの間の契約に定めがある場合を除いて、Oracle Corporationおよびその関連会社は、第三者のコンテンツ、製品、サービスへのアクセスまたは使用によって損失、費用、あるいは損害が発生しても一切の責任を負いかねます。

目次

タイトルおよび著作権情報

はじめに

- ドキュメントのアクセシビリティについて

- 表記規則

1 概要とロードマップ

- ドキュメントのスコープと対象読者

- このドキュメントの手引き

- 情報ロードマップ

- このリリースでの新機能と変更された機能

2 WLS RESTful管理インタフェースについて

- WLS RESTful管理インタフェースの概要

- WLS Beanツリー用の生成済REST API

- WLS Beanツリーの概要

- WLS BeanのRESTへのマッピング

- 一般的なRESTパターン

- ルート・リソースについて

- 命名規則

- REST URLのマッピング

- JSONマッピング

- 文字列とスカラー

- 配列

- アイデンティティ

- WLS Beanの参照

- java.util.Properties

- 暗号化されたプロパティ

- 標準RESTレスポンス

- 表示されるエラー・メッセージ

3 WLS RESTful管理インタフェースの使用

- RESTリソースへのアクセス

- WLS Beanの表示

- WLS Beanプロパティについて

- セルフ・リンクと正規のリンク

- 親リンク

- セルフ作成フォームのリンク

- 子Beanリンク

- 子作成フォームのリンク

- シングルトンBean参照リンク

- Bean参照コレクション・リンク

- 操作リンク

- 包含Beanのコレクションの表示

- コレクション・アイテムについて

- コレクション・リンクについて

- 作成フォームの取得

- 作成フォーム・プロパティについて

- 作成フォーム・リンクについて

- 結果のフィルタリング

- WLS構成の変更

- WLS構成Beanの変更

- JSONオブジェクト・リクエスト・ボディについて

- 複数の編集セッションの使用

- クライアント指定の編集セッション

- デフォルトの編集セッション

- WLS構成Beanの作成

- WLS構成Beanの作成のためのURL

- JSONテンプレートの取得

- Beanの作成

- WLS構成Beanの削除

- プロパティ設定の有無の管理

- 操作の呼出し

- 問合せの使用

- リソースの検索

- オブジェクト問合せ

- FieldsとExcludeFields

- LinksとExcludeLinks

- 子

- アイデンティティ

- レスポンス・ボディ

- 問合せの例

- 同期操作と非同期操作について

- アプリケーションとライブラリのデプロイ

4 ドメイン・レベルREST APIの例

- ユーザーの追加

- サーバーの設定

- パーティションの作成

- システム・リソースの構成

- ドメイン・スコープ指定のアプリケーションのデプロイ

- ドメイン・リソースの監視

- ドメイン・スコープ指定のアプリケーションの起動と停止

- パーティションの起動と停止

- サーバーの起動と停止

5 パーティション固有のREST APIの例

- パーティション指定のシステム・リソースの作成

- パーティション指定のアプリケーションのデプロイ

- パーティション・リソースの監視

- パーティション指定のアプリケーションの起動および停止

はじめに

ここでは、このガイド『RESTful管理サービスによるOracle WebLogic Serverの管理』で使用されているドキュメントのアクセシビリティ機能および規則について説明します。

ドキュメントのアクセシビリティについて

Oracleのアクセシビリティについての詳細情報は、Oracle Accessibility ProgramのWebサイト(http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc)を参照してください。

Oracle Supportへのアクセス

サポートをご購入のOracleのお客様は、My Oracle Supportにアクセスして電子サポートを受けることができます。詳細情報は(http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info) か、聴覚に障害のあるお客様は (http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs)を参照してください。

表記規則

このマニュアルでは次の表記規則を使用します。

規則

意味

太字

太字は、操作に関連するGraphical User Interface要素、または本文中で定義されている用語および用語集に記載されている用語を示します。

イタリック体

イタリックは、ユーザーが特定の値を指定するプレースホルダ変数を示します。

固定幅フォント

固定幅フォントは、段落内のコマンド、URL、サンプル内のコード、画面に表示されるテキスト、または入力するテキストを示します。

1 概要とロードマップ

この章では、このガイド『RESTful管理サービスによるOracle WebLogic Serverの管理』の内容と構成について説明します。

ここでのトピック

- ドキュメントのスコープと対象読者

- このドキュメントの手引き

- 情報ロードマップ

- このリリースでの新機能と変更された機能

ドキュメントの範囲および対象読者

このドキュメントでは、RESTfulクライアントを開発するために公開される管理、監視、デプロイおよび構成タスクのためにOracle WebLogic Server RESTful管理インタフェースを使用する方法を説明します。このドキュメントのユーザー・コミュニティは、管理スクリプトでcURLコマンドを使用してこれらのリソースを呼び出す可能性のある管理者と、Javaまたは他の言語で、WLSドメインを監視および管理するコードを作成するときにこの情報を使用するソフトウェア開発者です。

このドキュメントの手引き

- この「概要とロードマップ」では、このガイドの構成について説明します。

- 「WLS RESTful管理インタフェースについて」では、WLS RESTful管理インタフェースの概要、役に立つ背景情報とマッピング情報、およびWLS RESTリソースによって戻されるHTTPステータス・コードについて説明します。

- 「WLS RESTful管理インタフェースの使用」では、WebLogic ServerでサポートされているRESTful管理サービスを使用する方法について説明します。

- 「ドメイン・レベルのREST API例」では、ドメイン・レベル・ロールにあるユーザーが、WLS REST APIを使用して、一般的なドメインおよびパーティションの管理および監視タスクを実行するためのサンプル・スクリプトを示します

- 「パーティション固有のREST API例」では、パーティション・レベル・ロールにあるユーザーが、WLS REST APIを使用して、一般的なパーティションの管理および監視タスクを実行するためのサンプル・スクリプトを示します。

情報ロードマップ

WebLogic Server RESTリソースはWLS Beanツリーに基づいており、対応するルート・リソースに応じて組織されています。詳細は、「WLS BeanのRESTへのマッピング」を参照してください。

指定されたパーティション内でWLSを管理するためのRESTリソースは、別個のマニュアル(MTリファレンス・ガイド)にあります。各々のMTマニュアルは、パーティション・ユーザー・ロールにアクセスできるリソースを参照しています。各々の非MTマニュアルは、パーティション・ユーザー・ロールにアクセスできるリソースを参照しています。WebLogic Server Multitenantでのユーザー・ロールの詳細は、『WebLogic Server MTの使用』の、構成および管理のための管理ロールに関する項を参照してください。

MTリファレンス・ガイドでは、RESTリソースには次の性質があります。

- パーティション内で実行されます。

- そのパーティションのセキュリティ・レルムで定義されたユーザーが、パーティション化されたURL経由でアクセスする必要があります。

- そのパーティションを管理するためにのみ使用できます。

- すべてのWLS MBeanを管理するためには使用できません。WLS MBeanの多くは、パーティション・ユーザーには使用できません。

非MTリファレンス・ガイドでは、RESTリソースには次の性質があります。

- ドメイン・レベルで実行されます(パーティション内でなく)。

- ドメインのデフォルト・セキュリティ・レルムで定義されたユーザーが、パーティション化されていないURL経由でアクセスする必要があります。

- すべてのパーティションを管理するために使用できます。

- すべてのWLS MBeanを管理するために使用できます。

WLS RESTのリファレンス・ドキュメントの完全なリストとその使用方法の説明は、表1-1を参照してください。

表1-1 WLS RESTful管理インタフェースのリファレンス・ドキュメント

参照マニュアルのタイトル

このRESTリソースを使用してできること

Oracle WebLogic Server RESTful編集リファレンス

WLS構成を編集します。

Oracle WebLogic Server RESTfulドメイン構成リファレンス

最後にアクティブ化されたWLS構成を表示します。

Oracle WebLogic Server RESTfulドメイン・ランタイム・リファレンス

WLSドメイン全体を監視します。

Oracle WebLogic Server RESTfulサーバー構成リファレンス

管理サーバーが現在実行対象としているWLS構成を表示します。

Oracle WebLogic Server RESTfulサーバー・ランタイム・リファレンス

管理サーバーまたは管理対象サーバーを監視します。

管理対象サーバーを監視するには、管理サーバーのdomainRuntime/serverRuntimes/<managedServerName>/...リソース、または管理対象サーバーのserverRuntime/...リソースを使用できます。

Oracle WebLogic Server MT RESTful編集リファレンス

指定されたドメイン・パーティションにあるWLS構成を編集します。

Oracle WebLogic Server MT RESTfulドメイン構成リファレンス

指定されたドメイン・パーティションにある、最後にアクティブ化されたWLS構成を表示します。

Oracle WebLogic Server MT RESTfulドメイン・ランタイム・リファレンス

指定されたWLSドメイン・パーティションを監視します。

Oracle WebLogic Server MT RESTfulサーバー構成リファレンス

指定されたドメイン・パーティションで管理サーバーが現在実行対象としているWLS構成を表示します。

Oracle WebLogic Server MT RESTfulサーバー・ランタイム・リファレンス

指定されたドメイン・パーティションにある管理サーバーを監視します

Oracle WebLogic Server RESTfulライフ・サイクル・リファレンス

WLSライフ・サイクル管理RESTリソースを使用します。

Oracle WebLogic Server RESTful管理インタフェース・リファレンス

レガシーWLS RESTful管理リソース。

このリリースでの新機能と変更された機能

このマニュアル(『RESTful管理サービスによるOracle WebLogic Serverの管理』)は、WLS 12.2.1から発行されました。このリリースで導入されたWebLogic Serverのすべての新機能の一覧については、『Oracle WebLogic Server 12.2.1の新機能』を参照してください。

2 WLS RESTful管理インタフェースについて

WebLogic RESTful管理サービスは、サポートされているすべての環境内のWebLogic Serverを構成、監視、デプロイおよび管理するための包括的なパブリック・インタフェースを提供します。この章では、WebLogic ServerでサポートされているRESTful管理サービスについて説明します。

ここでのトピック

- WLS RESTful管理インタフェースの概要

- WLS BeanのRESTへのマッピング

- 標準RESTレスポンス

WLS RESTful管理インタフェースの概要

WebLogic Serverでは、リリースごとに、WebLogic Server管理のためのRESTリソースが、広汎かつ強力になってきています。このリリースでは、WLS MBeanとディスクリプタ・インタフェースに基づくRESTリソースの動的な生成により、WebLogic Serverの管理が包括的にサポートされます。12.1.3以降には、パーティション化および非パーティション化環境、ライフ・サイクル管理(LCM)リソースおよびレガシー・リソースの構成と監視をサポートするリソースがあります。

WLS RESTリファレンス・ドキュメントのガイドは、「情報ロードマップ」を参照してください。

WLS Beanツリー用の生成済REST API

WLS Beanは、WLSコンポーネントが構成設定を管理し、実行サーバーを監視および管理するために、広汎に使用されます。

WLS Beanは、Javaインタフェースから導出されます。WLSは実行時に、システムを構成および監視するために使用できる、Java Beanの内部ツリーを作成します。以前のリリースでは、Beanツリーは、JMX、WLSTおよび構成ファイル(たとえば、config.xml)を介してのみ公開されました。

このリリースでは、BeanツリーとBean情報を使用することにより、WLSが、実行時にRESTリソースを動的に、逐次、オンデマンド生成します。これらのRESTリソースは、WLS管理の代替選択肢となります。

WLS Beanツリーの概要

次の各項では、RESTインタフェースの基礎となるWLS Beanに関する背景情報を提供します。

Beanには、次の2つの主要なタイプがあります。

- 構成 - WLSを構成するために使用されます。

- ランタイム - WLSを監視するため、および一部の操作(たとえば、サーバーの起動と停止、データ・ソース接続プールの縮小)でWLSを制御するために使用されます。

WLSは、次のBeanツリーを提供します。

- 編集アクセス - 管理サーバーでのみ使用でき、構成(たとえば、config.xmlおよびシステム・リソース・ファイル)を変更するために使用されます。

- ランタイム・アクセス - すべてのサーバーで使用でき、そのサーバーの構成を表示し、監視データにアクセスするために使用されます。

- ドメイン・アクセス - 管理サーバーでのみ使用でき、実行サーバーのすべてのランタイムBeanのコピーを含んでいて、監視の単一アクセス・ポイントを提供し、永続している最新の構成を表示するためにも使用されます。

WLS MBeanの詳細は、『Oracle WebLogic Server JMXによるカスタム管理ユーティリティの開発』の「WebLogic Server MBeanの理解に関する項」を参照してください。

WebLogic Scripting Tool (WLST)は、次のようにBeanツリーを表示します。

- 編集 - 基礎となる編集アクセスBeanツリーに一致します。

- domainConfig - ドメイン・アクセスBeanツリーの構成MBeanハーフ(たとえば、永続している最後の構成)。

- domainRuntime - ドメイン・アクセスBeanツリーのランタイムMBeanハーフ(たとえば、すべてのサーバーの監視用)。

- serverConfig - ランタイム・アクセスBeanツリーの構成MBeanハーフ(たとえば、サーバーが使用している構成)。

- serverRuntime - ランタイム・アクセスBeanツリーのランタイムMBeanハーフ(たとえば、特定サーバーの監視用)。

12.2.1のRESTリソースは、WLSTのMBeanツリー表示に対応しています(編集、domainConfig、domainRuntime、serverConfigおよびserverRuntime)。

WLS Beanツリー内には、数タイプの親/子(包含)関係があります。

- 書込み可能コレクション - たとえば、ドメインBeanはサーバーBeanのコレクションを持っています。

- 必須シングルトン - たとえば、サーバーBeanは、自動作成され、削除できないSSL Beanを常に持っています。

- オプションのシングルトン - たとえば、オーバーロードされた保護Beanは、オプションで、サーバー障害トリガーBeanを持つことができます。

Beanは、プロパティ(一般にはスカラー、文字列および配列)、他のBeanへの参照および操作(たとえば、サーバーの起動)を含むことができます。

含まれているコレクションに関して:

- 各々の子は、コレクション内で一意のアイデンティティを持っています(たとえば、各ネットワーク・チャネルは、そのサーバーの範囲内で一意である名前を持っています)。

- 大部分のコレクションは同種ですが(たとえば、ドメインのアプリケーション)、異質なものもいくつかあります(たとえば、セキュリティ・レルムの認証プロバイダ)。

WLS BeanのRESTへのマッピング

次の各項では、WLS BeanがどのようにRESTインタフェースにマップされるかを説明します。次のような共通点があります。

- リソースURLはすべてバージョン番号を含んでいて、latestという名のバージョンをサポートします。詳細は、『Oracle WebLogic Server RESTful管理インタフェース・リファレンス』の、リソースURL内の{version}指定子に関する項を参照してください。

- リクエスト・ボディとレスポンス・ボディはすべて、JSONを使用します(メディア・タイプはapplication/json)。

- レスポンス・ボディには、標準のプロパティ・セット(コレクションに関する情報を戻すためのitems、関連リソースにリンクを戻すためのlinks、成功、警告および障害メッセージを戻すためのmessages)があります。

- リソースはすべて、標準HTTPレスポンス・コードを戻します(作成の成功は201、それ以外の成功は200、未検出は404、ユーザー入力エラーは400、内部サーバー・エラーは500)。詳細は、「標準RESTレスポンス」を参照してください。

一般的なRESTパターン

WLS Bean(子の同種コレクション、必須のシングルトンの子およびオプションの同種のシングルトンの子)はほぼすべて、次のRESTパターンを使用します。

WLS Bean/RESTリソース

RESTメソッド

説明

コレクション: コレクション・リソース

GET

コレクションを戻します。

POST

コレクションに新しいアイテムを作成します。

コレクション: 作成フォーム・リソース

GET

事前に移入されたエンティティを戻します。

コレクション: 子リソース

GET

コレクションにアイテムを戻します。

POST

コレクションのアイテムを更新します。

DELETE

コレクションからアイテムを削除します。

シングルトン: シングルトン・リソース

GET

シングルトンを戻します。

POST

シングルトンが存在する場合、更新します。存在しない場合は作成します。

DELETE

シングルトンを削除します。

操作: アクション・リソース

POST

操作を呼び出します。

ルート・リソースについて

管理サーバーと実行中の各管理対象サーバーは、各サーバーの管理ポート上で実行されるREST Webアプリケーションをホスティングします。それぞれのコンテキスト・ルートは、managementです。12.2.1ルートRESTリソースは、WLSTのBeanツリーを模倣しています。

表2-1に、管理サーバーのルート・リソースを示し、対応するBeanツリーをリストします。

表2-1 管理サーバーのルート・リソース

URL

説明

対応するBeanツリー

management/weblogic/<version>/edit

WLS構成を編集します。

管理サーバーの編集ツリー・ドメインBean

management/weblogic/<version>/serverConfig

管理サーバーが現在実行対象としているWLS構成を表示します。

管理サーバーのサーバー・ランタイム・ツリー・ドメインBean

management/weblogic/<version>/serverRuntime

管理サーバーを監視します。

管理サーバーのサーバー・ランタイム・ツリー・サーバー・ランタイムBean

management/weblogic/<version>/domainConfig

最後にアクティブ化されたWLS構成を表示します。

管理サーバーのドメイン・ランタイム・ツリー・ドメインBean

management/weblogic/<version>/domainRuntime

WLSドメイン全体を監視します。

管理サーバーのドメイン・ランタイム・ツリー・ドメイン・ランタイムBean

management/weblogic/<version>/domainRuntime/serverRuntimes

管理サーバーを介してWLSドメインにあるすべての実行中のサーバーを監視します。

実行中の各サーバーのサーバー・ランタイム・ツリー・サーバー・ランタイムBean

management/weblogic/<version>/domainRuntime/serverRuntimes/<serverName>

管理サーバーを介してWLSドメインにある特定の実行中のサーバーを監視します。

指定されたサーバーのサーバー・ランタイム・ツリー・サーバー・ランタイムBean

management/lifecycle

12.2.1のライフ・サイクル管理(LCM) RESTリソース。

なし

management/wls

12.1.3(レガシー)のWLS RESTリソース。

なし

表2-2に、管理対象サーバー上のルート・リソースを示します。

表2-2 管理対象サーバーのルート・リソース

URL

説明

対応するBeanツリー

management/weblogic/<version>/serverConfig

管理対象サーバーが現在実行対象としているWLS構成を表示します。

管理対象サーバーのサーバー・ランタイム・ツリー・ドメインBean

management/weblogic/<version>/serverRuntime

その管理対象サーバーを監視します。

管理対象サーバーのサーバー・ランタイム・ツリー・サーバー・ランタイムBean

管理対象サーバー上のURLは管理サーバー上のものと正確に同様ですが、ホストとポートは異なります。

たとえば、管理サーバーのサーバー・ランタイムを表示する手順は、次のとおりです:

curl ... -X GET http://adminHost:7001/management/weblogic/latest/serverRuntime

管理対象サーバーのサーバー実行時を表示する手順:

curl ... -X GET http://managed1Host:7002/management/weblogic/latest/serverRuntime

命名規則

WLS Beanプロパティ名は、REST URLとJSONオブジェクト・プロパティでの名前にマップされます。WLSプロパティ名は通常大文字で始まります(たとえば、Domain、JDBCDataSource、ServerRuntime)が、REST命名規則は、キャメル・ケース(小文字に大文字が続く)を使用します(たとえば、domain、JDBCDataSource、serverRuntime)。

REST URLのマッピング

各WLS Beanは、別個のRESTリソースにマップされます。含まれているコレクションと操作も、別々のリソースにマップされます。WLS Beanはすべて、ルート・リソース(たとえば、ドメイン)、含まれているコレクションの子(たとえば、サーバー)、含まれているシングルトンの子(たとえば、サーバーのSSL構成)のいずれかです。

ルート・リソースのURLは、表2-1と表2-2にリストされています。

含まれているコレクションBeanそれぞれのプロパティは、コレクション全体のURLおよびそれぞれの子のURLにマップされます。例:

URL

説明

例

<parent>/<collectionPropertyName>

コレクション全体を管理します。

.../edit/servers

<parent>/<collectionPropertyName>/<childName>

コレクションにある子を管理します。

.../edit/servers/Server-0

同様に、含まれているそれぞれのシングルトンBeanプロパティは、それ自身のURLにマップされます。たとえば、サーバーのSSL Beanは、.../edit/servers/<serverName>/SSLにマップされます。

含まれているBeanプロパティが作成できる場合(たとえば、ドメインのサーバー・コレクションに新しいサーバーを追加したり、ドメインに対してRDBMSSecurityStoreを作成したりできます)、作成フォーム・リソースも提供され、デフォルト値を持つテンプレートJSONオブジェクトを戻して、新しいリソースの作成を助けます。一般的な手順では、作成フォームをGETし、値を記入し、元のところにPOSTして新しいリソースを作成します。どのフィールドも記入されない場合は、現在の値を保持します。作成フォーム・リソースのURLは、たとえば<parent>/<singlularCollectionPropertyName>CreateFormです。

- .../edit/serverCreateForm

- .../edit/securityConfiguration/realms/myrealm/RDBMSSecurityStoreCreateForm

各Bean操作は、それ自身のURLにマップされます。たとえば、.../domainRuntime/serverRuntimes/<serverName>/shutdownは、特定のサーバーを停止するために使用されます。

大部分のWLS Bean操作は、含まれているBeanを作成、削除、リストおよび検索するために使用されます。これらの操作は、RESTでは別個に処理されます(REST操作URLとして公開されません)。「WLS RESTful管理インタフェースの使用」の説明を参照してください。

JSONマッピング

RESTは、WLS BeanがJSONに使用する様々なJava型(たとえば、プロパティ、操作引数および戻り型)をマップします。

文字列とスカラー

Java文字列とスカラーは、それに対応するJSONにマップされます。

Java

JSON

例(JavaからJSON)

java.lang.String

stringまたはnull

"Foo" -> "Foo"
null -> null

char, java.lang.Character

string

'a' -> "a"

int
java.lang.Integer

long

java.lang.Long

number

7001 -> 7001

float
java.lang.Float

double

java.lang.Double

number

1.23 -> 1.23

boolean
java.lang.Boolean

boolean

true -> true

配列

非nullのJava配列は、JSON配列にマップされます。nullのJava配列は、JSONのnullにマップされます。

アイデンティティ

各WLS Beanは、自身のBeanツリーの中で、URLの後置部分、バージョン指定子の後の部分により、一意に識別されます。たとえば、edit/machines/Machine-0です。

このアイデンティティは、ツリーのルート・リソースに続くパス・セグメントごとに1つの文字列を使用して、JSON文字列配列にマップされます。例:

[ "machines", "Machine-0" ]

WLS Beanの参照

一部のWLS Beanプロパティは、他のWLS Bean(包含関係でなく)への参照を含みます。操作の引数と戻り型についても同様です。たとえば、サーバーBeanはマシンBeanへの参照を持っており、デプロイメントBeanはターゲットBeanの配列への参照を持っています。

シングルトン参照(たとえば、サーバーのマシン)は、次の例のように、値が参照済Beanのアイデンティティになっているプロパティ(およびリンク)にマップされます。

{
machine: [ "domain", "machines", "Machine-0" ],
links: [
{ rel: "machine", href: "http://localhost:7001/management/latest/weblogic/edit/machines/Machine-0" }
]
}

参照のコレクション(たとえば、サーバーの候補マシン)は、次の例のように、各要素が参照済BeanのアイデンティティならびにBeanへのリンクを含むオブジェクトである配列プロパティにマップされます。

{
candidateMachines: [
{
identity: [ "machines", "Machine-0" ],
links [ { rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/machines/Machine-0"
},
{
identity: [ "machines", "Machine-1" ],
links [ { rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/machines/Machine-1"
}
]
}

null参照またはnull参照コレクションは、JSON nullにマップされます。

java.util.Properties

java.util.Propertiesは、プロパティのリストを保持します(たとえば、CommonLogMBean LoggerSeverityPropertiesプロパティ)。それはJSONオブジェクトにマップされ、次の例のように、プロパティ・セットにある各プロパティの一致する文字列プロパティを持ちます。

{
"property1": "value1",
"property2": "value2"
}

null java.util.Propertiesは、JSON nullにマップされます。

暗号化されたプロパティ

一部のWLS Bean文字列プロパティは、パスワードなどの機密データを持つため、暗号化されます。クライアントはパスワードを設定(クリアテキストの文字列として渡されます)できる必要がある一方で、他のユーザーは、それを表示する権限はありませんが、パスワードに値が設定されているかどうか(nullや未設定ではなく)を知りたいと思う場合があります。

マッピングは、インバウンドとアウトバウンドの暗号化されたプロパティで異なります。

アウトバウンドの暗号化されたプロパティでは、パスワードがnullの場合、JSON nullにマップされます。そうでない場合、JSON文字列@Oracle_Confidential_Property_Set_V1.1#にマップされます。

インバウンドの暗号化されたプロパティでは、通常はGETを実行してリソースの現在の値を取得し、変更するプロパティの値を設定して、その他は現在の値のままにし、新しい値をPOSTします。このため、POSTの値が@Oracle_Confidential_Property_Set_V1.1#である場合、プロパティは変更されません(古いプロパティ値を保持します)。それ以外の場合、値はPOSTにおいてクリアテキストの文字列値に変更されます。

標準RESTレスポンス

12.2.1 RESTリソースは、次の標準HTTPレスポンス・コードを戻します。

200 OK

RESTメソッドは、操作が成功して新しいエンティティを作成しない場合、たとえば、リソースをGETした場合、POSTして操作を呼び出したりエンティティを変更したりした場合、DELETEでエンティティを削除した場合には、200 (OK)を戻します。

201 Created

操作により新しいエンティティが正常に作成された場合、RESTメソッドは201 (CREATED)を戻します。また、新しいエンティティへのリンクを持つLocationヘッダーも戻します。

202 Accepted

操作によりなんらかの非同期作業が正常に開始された場合、RESTメソッドは202 (ACCEPTED)を戻します。また、ジョブのステータスを検出するためにポーリングできるリソースへのリンクを持つLocationヘッダーも戻します。

400 Bad Request

指定されたリクエストに誤りがあるために(たとえば、無効な引数値)リクエストが失敗した場合、RESTメソッドは400 (BAD REQUEST)を戻します。

401 Unauthorized

ユーザーが操作を実行する権限を持たない場合、RESTメソッドは401 (UNAUTHORIZED)を戻します。ユーザーが不正確な資格証明を入力した場合(たとえば、不正なパスワード)も、401が戻されます。

403 Forbidden

ユーザーがADMIN、OPERATOR、DEPLOYERまたはMONITORロールでない場合、RESTメソッドは403 (FORBIDDEN)を戻します。

404 Not Found

リクエストされたURLが既存のエンティティを参照していない場合、RESTメソッドは404 (NOT FOUND)を戻します。

405 Method Not Allowed

リソースは存在するがHTTPメソッドをサポートしていない場合、たとえばユーザーがドメイン構成ツリーのリソースを使用してサーバーを作成しようとした場合(構成編集ができるのは編集ツリーのみ)、RESTメソッドは405 (METHOD NOT ALLOWED)を戻します。

406 Not Acceptable

このリクエストで指定されたリソースは、リクエストのAcceptヘッダーにあるメディア・タイプのいずれかに対応する表現を生成できません。たとえば、クライアントのAcceptヘッダーは、XMLを要求しますが、リソースはJSONのみを返すことができます。

500 Internal Server Error

リクエスト内の誤りが原因でないエラーが発生した場合、RESTメソッドは500 (INTERNAL SERVER ERROR)を戻します。一般にRESTレイヤーは、MBeanがBAD REQUESTとして送出した例外を扱うため、500は通常、RESTレイヤーで発生した想定外の例外を報告するために使用されます。エラーまたはスタック・トレースのテキストはこれらのレスポンスに含まれませんが、通常、サーバー・ログに記録されています。

503 Service Unavailable

現在、サーバーは、一時的なオーバーロードまたはメンテナンスのため、要求を処理できません。WLS REST Webアプリケーションは現在実行中ではありません。

Returning Error Messages

リソースは、次の形式を使用してエラー・メッセージを戻します。

1つのエラー文字列を持つエラー・メッセージ

リソースが1つのエラー文字列を戻す場合は、この形式を使用します。

HTTP/1.1 400 Bad Request
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "Bean already exists: \"weblogic.management.configuration.ServerMBeanImpl@31fa1656([mydomain]/Servers[Server-1])\"",
status: 400
}

複数のエラー文字列を持つエラー・メッセージ

リソースが複数のエラー文字列を戻す場合は、この形式を使用します。

HTTP/1.1 400 Bad Request
{
type: "http://oracle/TBD/WlsRestMessagesSchema",
title: "ERRORS",
status: 400,
wls:errorsDetails: [
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "no-such-protocol is not a legal value for DefaultProtocol.\
The value must be one of the following: [t3, t3s, http, https, iiop, iiops]",
o:errorPat: "defaultProtocol"
},
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "Type mismatch. Cannot convert abc to int",
o:errorPath: "listenPort"
}
]
}

3 WLS RESTful管理インタフェースの使用

この章では、WebLogic ServerでサポートされているRESTful管理サービスを使用する方法について説明します。共通のドメインとパーティション管理と監視タスクを実行するためにWLS REST APIを使用する方法を示すサンプル・スクリプトは、「ドメイン・レベルのREST API例」と「パーティション固有のREST API例」を参照してください。

ここでのトピック

- RESTリソースへのアクセス

- WLS Beanの表示

- 包含Beanのコレクションの表示

- 作成フォームの取得

- 結果のフィルタリング

- WLS構成の変更

- 複数の編集セッションの使用

- WLS構成Beanの作成

- プロパティ設定の有無の管理

- 操作の呼出し

- 問合せの使用

- 同期操作と非同期操作について

- アプリケーションとライブラリのデプロイ

RESTリソースへのアクセス

各RESTリソース・メソッドは、それにアクセスできるユーザー・ロール(管理者、デプロイヤ、オペレータ、モニター)を定めています。

一般的には、次のとおりです。

- リソースを読み取るには(GETメソッドを使用)、管理者、デプロイヤ、オペレータまたはモニター・ロールである必要があります。

- リソースを作成するか(POSTおよびDELETEメソッドを使用)、操作を呼び出す(POSTを使用)には、管理者ロールである必要があります。

- ただし、一部のリソースでは、デプロイヤがアプリケーションとライブラリをデプロイおよびアンデプロイでき、オペレータがサーバーを起動できます。

ユーザーがドメイン・ユーザーである(たとえば、ドメインのデフォルト・セキュリティ・レルムで定義されている)場合、RESTリソースにアクセスするURLはhttp://host:port/managementで始まります。ユーザーがパーティション・ユーザーである(たとえば、そのパーティションのセキュリティ・レルムで定義されている)場合、RESTリソースにアクセスするURLはhttp://host:port/partition_name/managementで始まります。

WebLogic Server Multitenantでのユーザー・ロールの詳細は、『WebLogic Server MTの使用』の、構成および管理のための管理ロールに関する項を参照してください。

WLS Beanの表示

WLS Beanを表示するには、対応するREST URLでHTTP GETメソッドを呼び出します。たとえば、サーバーServer-0の構成を取得する手順は、次のとおりです:

GET http://localhost:7001/management/weblogic/latest/edit/latest/servers/Server-0

GETは、標準WLS RESTレスポンス・ボディを戻します。Beanのプロパティとlinksプロパティを含んでいるJSONオブジェクト、関連リソースへのリンクを含むJSON配列を戻します。

WLS Beanプロパティについて

戻されたJSONオブジェクトは、標準のJavaからJSONへのマッピング(「JSONマッピング」を参照)を使用するWLS Beanのプロパティを含みます(たとえば、通常のプロパティと参照を含み、子を含まない)。また、Beanのアイデンティティを指定するidentityプロパティも含みます。例:

{
identity: [ "domain", "servers", "Server-0" ],
name: 'Server-0',
listenPort: 7001,
machine: { identity: [ "domain", "machines", "Machine-0" ] }
}

セルフ・リンクと正規のリンク

リソースはすべて、リソースを参照するselfおよびcanonicalトップ・レベル・リンクを含みます。たとえば、サーバーは、指定されたサーバーを参照するselfおよびcanonicalリンクを含んでいます。

{
links: [
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0" }
{ rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0" }
]
}

これらのリンクの相互参照はそのRESTリソースも参照するため、リソースが子になっているツリーの名前(たとえば、edit、domainRuntime、serverConfigurationなど)を含みます。

親リンク

ルート・リソースを除いて、リソースはすべて、親リソースへのトップ・レベル・リンクを含みます。リンクのrelプロパティは、parentに設定されています。

コレクションの子はコレクション・リソースへのリンクを戻します。たとえば、サーバーはサーバーのコレクション・リソースへのリンクを戻します。

{
links: [
{ rel: "parent", href: "http://localhost:7001/management/weblogic/latest/edit/servers" }
]
}

同様に、シングルトンの子はコレクション・リソースへのリンクを戻します。たとえば、SSL BeanはサーバーBeanへのリンクを戻します。

{
links: [
{ rel: "parent", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0" }
]
}

セルフ作成フォームのリンク

Beanが作成可能である場合は、オプションのシングルトン(たとえば、レルムのRDBMSSecurityStore)、Beanが現在存在しない場合は、対応する作成フォーム・リリースへのリンクも戻されます。リンクのrelプロパティは、createに設定されています。たとえば、セキュリティ・レルムの裁決プロバイダ上でGETをコールすると、次も戻されます。

{
links: [
{
rel: "create",
href: "http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/myrealm/adjudicatorCreateForm"
}
]
}

子Beanリンク

WLS Beanの包含プロパティ(たとえば、子)は、RESTリソースを分離するためにマップされるため、JSONレスポンス・ボディのトップ・レベル・リンクとして戻されます。

各リンクのrelプロパティは、Beanプロパティの名前にマップされます。たとえば、Server-0上でGETをコールすると、次が戻されます。

{
links: [
// mandatory singleton child:
{
rel: "SSL",
href: "http://localhost:7001/management/weblogic/latest/servers/Server-0/SSL"
},
// writable collection of children:
{
rel: "networkAccessPoints",
href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0/networkAccessPoints"
}
]
}

子作成フォームのリンク

作成フォーム・リソースへのリンクは、作成できる包含プロパティ(シングルトンとコレクション)に対して戻されます。リンクのrelプロパティは、<singularPropertyName>CreateFormに設定されています。たとえば、Server-0上でGETをコールすると、次も戻されます。

{
links: [
{
rel: "networkAccessPointCreateForm",
href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0/networkAccessPointCreateForm"
}
]
}

シングルトンBean参照リンク

WLS Beanは、各々の非nullシングルトン参照に対してトップ・レベル・リンクを戻します。リンクのrelプロパティは、参照プロパティの名前に設定されます。たとえば、Server-0がMachine-0を参照する場合、次のようになります:

{
machine: [ "machines", "Machine-0" ],
links: [
{ rel: "machine", href: "http://localhost:7001/management/weblogic/latest/edit/machines/Machine-0" }
]
}

Server-0がマシン参照を持たない場合、次のようになります:

{
machine: null
}

Bean参照コレクション・リンク

WLS Beanは、参照コレクションの各参照に対してネストされたリンクを戻します。リンクのrelプロパティは、selfに設定されています。

たとえば、Application-0がターゲットServer-0およびCluster-0を参照する場合、次のようになります:

{
targets: [
{
identity: ["clusters", "Cluster-0" ],
links: [ { rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster-0" } ]
},
{
identity: ["servers", "Server-0" ],
links: [ { rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-0" } ]
}
}

操作リンク

リソースは、操作リソースへのトップ・レベル・リンクも戻します。リンクのrelプロパティはactionに設定され、リンクのタイトルは操作の名前に設定されます。たとえば、ServerRuntimeMBeanは次を戻します。

{
links: [
{
rel: "action",
title: "suspend",
href: "http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/suspend"
},
{
rel: "action",
title: "resume",
href: "http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/resume"
},
{
rel: "action",
title: "shutdown",
href: "http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/shutdown"
}
]
}

包含Beanのコレクションの表示

WLS Beanのコレクションを表示するには、対応するREST URLでHTTP GETメソッドを呼び出します。たとえば、すべてのサーバーの構成を取得する手順は、次のとおりです:

GET http://localhost:7001/management/weblogic/latest/edit/servers

GETは、標準WLS RESTレスポンス・ボディを戻します。itemsは子のプロパティを包含します。各アイテムは、その子のリソースにselfおよびcanonicalリンクを埋め込んでいます。

直下の子のみが戻されます。たとえば、サーバー・コレクションを取得する場合、各サーバーのプロパティは戻されますが、サーバーの子(SSLなど)は戻されません。

コレクション・アイテムについて

リソースは、コレクションの各々の子に対してJSONオブジェクトを戻します。これらのオブジェクトは、子のリソース上でのGETのコールから戻されたアイテムと同じデータを含みます。たとえば、ドメインBeanのserversコレクションを取得すると、次が戻されます。

{
items: [
{ name: "Server-1", listenPort: 7001, ... },
{ name: "Server-2", listenPort: 7003, ... }
]
}

コレクション・リンクについて

コレクション・リソースは、次のリンクを戻します。

- 自身へのselfおよびcanonicalリンク。

- 親へのリンク。

- コレクションが書込み可能の場合、対応する作成フォーム・リソースへのリンク。

- その各々の子への、ネストされたselfおよびcanonicalリンク。

たとえば、ドメインBeanのserversコレクションを取得すると、次が戻されます。

{
items: [
{
name: "Server-1",
listenPort: 7001,
links: [
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-1" }
{ rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-1" }
]
},
{
name: "Server-2",
listenPort: 7005,
links: [
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-1" }
{ rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/servers/Server-1" }
]
}
]
links: [
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers" }
{ rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/servers" }
{ rel: "parent", href: "http://localhost:7001/management/weblogic/latest/edit" }
{ rel: "create-form", href: "http://localhost:7001/management/weblogic/latest/edit/serverCreateForm" }
]
}

作成フォームの取得

新しいリソースを作成するために作成フォームを取得するには、対応する作成フォームREST URL上でHTTP GETメソッドを呼び出します。たとえば、新しいサーバーを作成するための作成フォームを取得する手順は、次のとおりです:

GET http://localhost:7001/management/weblogic/latest/edit/serverCreateForm

GETは、標準WLS RESTレスポンス・ボディを戻します。作成フォームのプロパティとlinksプロパティを含んでいるJSONオブジェクト(関連リソースへのリンクを含むJSON配列)を戻します。

作成フォーム・プロパティについて

戻されたJSONオブジェクトは、そのタイプの新しいリソースを作成するときに指定される場合がある、各書込み可能プロパティ(通常のプロパティおよび参照)に対するプロパティを含みます。プロパティの値は、そのタイプのBean情報(使用できる場合)からのデフォルト値、またはプロパティのタイプのデフォルト値(たとえば、intの場合は0)のいずれかです。参照プロパティの値は、常にnullです。たとえば、ドメインのserverCreateFormを取得すると、次が戻されます。

{
name: null, // identity - unique names are not generated
idleConnectionTimeout: 65, // from the default value in the bean info
replicationGroup: null, // default value for a String since the bean info does not provide a default value
machine: null, // singleton reference
candidateMachines: null, // reference collection
...
}

作成フォーム・リンクについて

作成フォームは、次のリンクを戻します。

- 自身へのselfおよびcanonicalリンク。

- 親へのリンク。

- このタイプのリソースを作成するために使用できる、対応するリソースへのcreateリンク。

たとえば、ドメインBeanのserverCreateFormを取得すると、次が戻されます。

{
links: [
{ rel: "parent", href: "http://localhost:7001/management/weblogic/latest/edit" },
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/serverCreateForm" },
{ rel: "canonical", href: "http://localhost:7001/management/weblogic/latest/edit/serverCreateForm" },
{ rel: "create", href: "http://localhost:7001/management/weblogic/latest/edit/servers" }
]
}

結果のフィルタリング

Bean、コレクション、作成フォーム・リソースGETメソッドは、次の問合せパラメータをサポートしているため、レスポンスからプロパティとリンクを省略できます。

パラメータ名

説明

fields

これらのプロパティのみ戻されます。

excludeFields

これらのプロパティを除くすべてのプロパティが戻されます。

links

これらのrel名を持つリンクのみが戻されます。

excludeLinks

これらのrel名を持つものを除くすべてのリンクが戻されます。

fieldsとexcludeFieldsは、linksとexcludeLinks同様に、相互に排他的です。値はすべて、カンマで区切られた名前のリストです。

たとえば、サーバーのselfおよびparentリンクと、nameおよびlistenPortプロパティの、取得のみを行う手順は、次のとおりです:

curl ... -X GET http://localhost:7001/management/weblogic/latest/edit/servers/myserver\
?fields=name,listenPort\&links=self,parent
{
links: [
{ rel: "parent", href: "http://localhost:7001/management/weblogic/latest/edit/servers" },
{ rel: "self", href: "http://localhost:7001/management/weblogic/latest/edit/servers/myserver" }
],
name: "myserver",
listenPort: 7001
}

WLS構成の変更

Beanを作成、変更、削除できるのは、編集ツリー内のみ(.../management/weblogic/<version>/edit/...)です。他のBeanツリーは読取り専用です。

WLS Bean編集はすべて、構成トランザクション内で実行する必要があります。

- トランザクションをすでに開始している場合、RESTの変更は同じトランザクションで行われます。ユーザーが引き続きトランザクションのコミットまたはロールバックを行います。

- トランザクションを開始していない場合、RESTリソースがかわりにトランザクションを開始し、変更を試み、変更が行われたかどうかに関係なく、トランザクションをコミットまたはロールバックします(自動トランザクション)。

- 他のユーザーがトランザクションをすでに開始している場合、RESTリソースはエラーを戻します(構成を変更しません)。

場合によっては、同じトランザクションで複数のBeanへの補完的な変更が行われないかぎり、構成トランザクションをコミットできません。その場合、自動トランザクションを使用せず、明示的にトランザクションを開始および終了する必要があります。

また、クライアントがトランザクションを管理する場合は、各RESTコールが変更を保存します(ただし、アクティブ化はしません)。保存操作時に発生するいくつかのMBean検証があり、障害の原因になることがあります。たとえば、JDBCシステム・リソースを作成する場合、その子JDBCリソース名が設定されるまで、変更を保存できません。このような場合は、saveChanges=false問合せパラメータを使用します。

詳細は、Oracle WebLogic Server RESTful編集リファレンスで、changeManagerリソースを参照してください。

WLS構成Beanの変更

WLS Beanを変更するには、変更する値を含むJSONオブジェクトを構築し、対応するREST URL上でHTTP POSTメソッドを呼び出して、リクエスト・ボディとしてそのJSONオブジェクトを渡します。

たとえば、サーバーのリスニング・ポートと管理ポートを変更する手順は、次のとおりです:

curl ... -d "{
listenPort: 7007,
administrationPort: 9007
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers/Server-0

これは、Beanのプロパティのすべてを毎回渡す必要はなく、Beanの一部のみを変更すればよい点で、HTTP PATCH操作に類似しています。

JSONオブジェクト・リクエスト・ボディについて

変更する値を含むJSONオブジェクトを構築します。一部のWLS Beanプロパティは読取り専用です(たとえば、サーバーの名前)。読取り専用プロパティは無視されます。

Beanのすべてのプロパティを渡す必要はありません。渡されないプロパティはすべて、現在の値を保持します。「暗号化されたプロパティ」で説明されているように、非null値を持つ暗号化された文字列プロパティの場合、GETは値@Oracle_Confidential_Property_Set_V1.1#を戻します。この値をPOSTして戻す場合、プロパティは現在の値を保持します。暗号化されたプロパティの値を変更する場合、たとえば次のように、クリアテキスト文字列に希望の値を設定します。

{ defaultIIOPPassword: "admin123" }

参照を変更するには、そのアイデンティティを渡します。参照コレクションの場合も同様です。これにより、参照コレクションが追加されるのでなく、参照コレクションが置き換えられます。たとえば、サーバーのマシンをMachine-0に、候補マシンをMachine-0およびMachine-1に設定する手順は、次のとおりです:

{
machine: [ 'machines', 'Machine-0' ] },
candidateMachines: [
{ identity: [ 'machines', 'Machine-0' ] },
{ identity: [ 'machines', 'Machine-1' ] }
]
}

また、参照を削除するにはnullを使用します。たとえば、サーバーのマシンと候補マシンの参照を削除する手順は、次のとおりです:

{
machine: null,
candidateMachines: null
}

有効および無効な値を混合して渡すと、有効なものは書き込まれ、無効なものにはエラーが戻され、全体として、RESTメソッドはOKステータス・コードを戻します。例:

curl ... -d "{
listenPort: 7007,
administrationPort: 'foo'
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers/Server-0
HTTP/1.1 200 OK
{
messages: [
{
severity: "FAILURE",
field: "administrationPort",
message: "Something about the value needs to be an integer"
}
]
}

この例では、リスニング・ポートは変更されますが、管理ポートは変更されません。メソッドは、OKステータス・コードを戻しました。

複数の編集セッションの使用

WLS 12.2.1では、複数の編集セッションが導入されました。(『WebLogic Server MTの使用』の、名前付同時編集セッションの管理に関する項を参照してください。)これらの編集セッションは、スコープが指定されています。スコープは、ドメイン・レベル編集セッションに対して1つ、パーティションに対して1つ存在します。各スコープは、デフォルトの編集セッションを持っています。編集セッション名は、スコープ内で一意ですが、複数のスコープにはおよびません。

editツリーのすべてのRESTリソースに対して、使用する編集セッション(スコープの名前とそのスコープ内の編集セッションの名前)を指定する必要があります。

編集セッション・スコープ名は、URLから導出されます。パーティション化されていないREST URLを使用する場合、RESTはドメイン・レベル・スコープを使用します。パーティション化されたREST URLを使用する場合、RESTはそのパーティションのスコープを使用します。

そのスコープ内で、RESTは、使用する編集セッションを認識している必要があります。使用する編集セッションを正確に記述したヘッダーを指定することも、デフォルト・ルールを使用してRESTに選択させることもできます。

クライアント指定の編集セッション

weblogic.edit.sessionヘッダーをリクエストに含めることによって、編集セッションを選択することができます。ヘッダーの値が編集セッション名として使用されます。例:

curl ... -H weblogic.edit.session=MySession ...

各編集セッション・スコープは、defaultという名のデフォルト編集セッションを持っています。スコープのデフォルト編集セッションを明示的に選択する手順は、次のとおりです:

curl ... -H weblogic.edit.session=default ...

デフォルトの編集セッション

weblogic.edit.sessionヘッダーを含めなかった場合、RESTリソースは次のルールを使用して編集セッションを選択します。

- 現在、スコープにロックされた1つの編集セッションがある場合、RESTはそれを使用します。

- または、スコープに1つの編集セッションを作成している場合、RESTはそれを使用します。

- それ以外の場合、RESTはスコープのデフォルト編集セッションを使用します。

WLS構成Beanの作成

新しいBeanのプロパティを含んでいるJSON構造とともにPOSTをコールして、新しいWLS構成Beanを作成します。簡単にするために、対応する作成フォーム・リソースを使用して、様々な書込み可能プロパティのデフォルト値が移入されたテンプレートJSON構造を取得することができます。

WLS構成Beanの作成のためのURL

コレクションの子を作成するには、コレクションのURL(たとえば、http://localhost:7001/management/weblogic/latest/edit/servers)でPOSTをコールします。

オプションのシングルトンの子を作成するには、提案された子のURL(たとえば、http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/myRealm/adjudicator)でPOSTをコールします。

作成フォームを取得するには、対応する作成フォーム・リソース上でGETメソッドをコールします。

http://localhost:7001/management/weblogic/latest/edit/serverCreateForm

および

http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/myRealm/adjudicatorCreateForm

JSONテンプレートの取得

基礎となるWLS Beanは、多くのプロパティのデフォルト値を持っています。通常はこれらのデフォルト値を表示、場合によりカスタマイズし、新しいWLS Beanを作成するために使用します。対応する作成フォーム・リソース上でGETをコールすることによって、これらのデフォルト値を取得できます。例:

curl ... -X GET http://localhost:7001/management/weblogic/latest/edit/serverCreateForm
HTTP/1.1 200 OK
{
listenPort: 7001,
...
}
}

Beanの作成

WLS構成Beanを作成するには、新しいBeanのプロパティを含んでいるJSONオブジェクト上でPOSTをコールします。

JSONオブジェクトは、可能なプロパティをすべて含んでいる必要はありません。未指定のプロパティはデフォルト値に設定されます。コレクションである子は、すべてコレクション内で一意のアイデンティティを割り当てられる必要があり、たとえば、サーバーは一意の名を必要とします。このため、identityプロパティは、オプションではありません。

レスポンスは、リソースのURLを含んでいるlocationヘッダーを含みます。例:

curl ... -d "{
name: "Server-1",
defaultProtocol: "t3s"
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers
HTTP/1.1 201 Created
Location: http://localhost:7001/management/weblogic/latest/edit/servers/Server-1
curl -X GET http://localhost:7001/management/weblogic/latest/edit/servers/id/Server-1
HTTP/1.1 200 OK
{
item: {
identity: [ "domain", "servers", "Server-1" ],
name: "Server-1",
defaultProtocol: "t3s", // specified by the caller
listenAddress: 7001     // not specified by the caller, therefore set to its default value
}
}

その名前を持つBeanがすでに存在する場合、リソースは障害メッセージに加えてBAD_REQUESTステータス・コードを戻します。例:

curl ... -d "{
name: "Server-1"
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers
HTTP/1.1 400 Bad Request
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "Bean already exists: \"weblogic.management.configuration.ServerMBeanImpl@31fa1656([mydomain]/Servers[Server-1])\"",
status: 400
}

WLS構成Beanの更新と同様に、有効な値と無効な値を混合して渡すことができます。Beanがサポートしない読取り専用プロパティおよびプロパティは、無視されます。プロパティの設定で例外があった場合、リソースはレスポンスに障害メッセージを追加します。すべてのプロパティを処理した後でなんらかのエラーが発生した場合、リソースは新しいBeanを削除し、BAD_REQUESTステータス・コードを戻そうとします。

例3-1 有効なプロパティと無効なプロパティの混合の例

curl ... -d "{
name: "Server-1",
listenPort: abc,
defaultProtocol: "no-such-protocol",
adminstrationProtocol: "iiop"
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers
HTTP/1.1 400 Bad Request
{
type: "http://oracle/TBD/WlsRestMessagesSchema",
title: "ERRORS",
status: 400,
wls:errorsDetails: [
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "no-such-protocol is not a legal value for DefaultProtocol.\
The value must be one of the following: [t3, t3s, http, https, iiop, iiops]",
o:errorPat: "defaultProtocol"
},
{
type: "http://oracle/TBD/WlsRestMessageSchema",
title: "FAILURE",
detail: "Type mismatch. Cannot convert abc to int",
o:errorPath: "listenPort"
}
]
}

例3-2 すべての有効プロパティ

curl ... -d "{
name: "Server-1",
listenPort: 7003,
defaultProtocol: "https",
adminstrationProtocol: "iiop"
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers
HTTP/1.1 201 Created
Location: http://localhost:7001/management/weblogic/latest/edit/servers/Server-1

WLS構成Beanの削除

対応するWLS Bean(コレクションの子と、オプションのシングルトンである子)を削除するには、REST URL上でHTTP DELETE操作をします。そのBeanへのいかなる参照も削除されます。たとえば、サーバーを削除する手順は、次のとおりです:

curl ... -X DELETE http://localhost:7001/management/weblogic/latest/edit/servers/Server-0

プロパティ設定の有無の管理

MBeanプロパティは、設定されているか未設定かのどちらかです。設定されている場合、値は永続化され(たとえば、config.xmlに)、ロックされています。未設定の場合は、デフォルト値が使用されます。値は、プロパティのタイプのデフォルト値、ハードコードされたデフォルト値または一部のカスタムJavaコードを実行する、計算されたデフォルト値のいずれかです。

デフォルトでは、リソース上でGETをコールすると、プロパティの現在の値を戻します。Stringプロパティの値をnullまたは空の文字列に設定すると、プロパティが設定解除されます(デフォルト値に戻ります)。

RESTでは、プロパティが設定されているかどうかを判断し、プロパティを明示的に設定するか、設定解除します。

リソース取得時にexpandedValues問合せパラメータをtrueに設定すると、各々の値は、setブール値プロパティと、現在の値を保持するvalueプロパティを持つJSONオブジェクトとして戻されます。たとえば、サーバーを取得すると、次が戻されます。

curl ... -X GET \
http://localhost:7001/management/weblogic/latest/edit/servers/myserver?&expandedValues=true
{
listenPortEnabled: { set: false, value: true }, // currently not set
name: { set: true, value: "myserver" }, // currently set
listenPort: { set: true, value: 7003 } // currently set
}

同様に、expandedValues問合せパラメータを使用して、値を明示的に設定または設定解除できます。たとえば、リスニング・ポートを設定解除して、リスニング・アドレスを空の文字列に設定する手順は、次のとおりです:

curl ... -d "{
listenPort: { set: false }, // value will be ignored if specified
listenAddress: { set: true, value: "" }
}" -X POST http://localhost:7001/management/weblogic/latest/edit/servers/myserver?expandedValues=true

操作の呼出し

各WLS Bean操作は、それ自身のREST URLにマップされます。オーバーロードされた操作の場合(たとえば、shutdown()に対するshutdown(int、boolean))、すべてのオーバーロードされた操作が同じURLにマップされ、リソースは、着信する引数を参照して、呼び出す操作を決定します。

操作が入力引数を必要とする場合、各引数のプロパティとともにJSONオブジェクト・リクエスト・ボディを渡すことによって指定します。プロパティの名前は、引数の名前に一致します。

操作が入力引数をとらない場合、JSONオブジェクトをプロパティなしで渡す必要があります。

同様に、操作が値を戻す場合、標準RESTレスポンス・ボディのJSONオブジェクトreturnプロパティで戻されます。操作がvoidである場合、レスポンス・ボディはreturnプロパティを含みません。

基礎となるMBean操作が例外を送出した場合、RESTメソッドは、例外のテキストを含むBAD REQUEST(404)レスポンスを戻します。

例3-3 引数のないvoid操作: void shutdown()

curl ... -d {} \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/shutdown
{
// response does not include a 'return' property since it's a void operation
}

例3-4 複数の引数を持つvoid操作: void shutdown(int timeout, boolean ignoreSessions)

curl ... -d { timeout: 500, ignoreSessions: false } \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/shutdown
{
// response does not include a 'return' property since it's a void operation
}

例3-5 1つの引数を持つ非void操作: String getURL(String protocol)

curl ... -d { protocol: "http" } \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Server-0/getURL
{
return: "http://localhost:7003"
}

問合せの使用

REST APIには強力な一括アクセス機能があり、1つのcallで戻せるBeanのツリーを動的に記述できます。各ツリー(たとえば、編集、ドメイン・ランタイムなど)は、ルートsearchリソースを持っています。これらのsearchリソースへの問合せをPOSTできます。問合せは、どのBean(およびプロパティとリンク)を戻すかを示し、示されたとおりに、Beanツリーの一部(「スライス」)を戻します。

一括アクセスは読取りにのみ使用できます。書込みには使用できません。

リソースの検索

各Beanツリーには、一括問合せ用のsearchリソースが含まれます。

「管理サーバー」で、次の手順を実行します。

URL

説明

.../management/edit/search

編集Beanツリー(まだディスクに保存されていない進行中の編集)のスライスを戻します。

.../management/domainConfig/search

ディスクに保存された最後の構成Beanツリーのスライスを戻します(サーバーが現在使用している構成でなく)。

.../management/domainRuntime/search

管理サーバーのドメイン・ランタイムBeanツリー(すべてのサーバーのランタイムBeanツリーを含む)のスライスを戻します。

.../management/serverConfig/search

管理サーバーの構成Beanツリー(管理サーバーの実行対象である構成)のスライスを戻します。

.../management/serverRuntime/search

管理サーバーのランタイムBeanツリーのスライスを戻します。

管理対象サーバー上で:

URL

説明

.../management/serverConfig/search

管理対象サーバーの構成Beanツリー(サーバーの実行対象である構成)のスライスを戻します。

.../management/serverRuntime/search

管理対象サーバーのランタイムBeanツリーのスライスを戻します。

問合せをPOSTしてリソースを検索すると、問合せはツリーのルートBeanで検索を開始します。リソースは、問合せの結果(Beanツリーのその「スライス」)を含むJSONレスポンスを戻します。

オブジェクト問合せ

オブジェクト問合せは、次のように、WLS Bean(あるいは、Beanのコレクション)に対して、どのデータが戻されるべきかを記述しています。

- Beanのプロパティのうち、どれを戻すか。

- Beanのリンクのうち、どれを戻すか。

- Beanの子のうち、どれを戻すか。

- コレクションの場合、その子のうちどれを戻すか。

検索はすべて、searchリソースのツリーのルートBeanで検索を開始する点に注意してください。たとえば、management/domain/runtimeに問合せをPOSTすると、ドメイン・ランタイム・ツリーのDomainRuntimeMBeanで検索を開始します。

FieldsとExcludeFields

fieldsは、どのBeanプロパティ(たとえば、スカラーと参照)を戻すかを指定します。これは、プロパティ名のJSON文字列配列です。たとえば、ドメインのnameおよびconfigurationVersionを戻す手順は、次のとおりです:

curl ... -d "{ fields: [ 'name', 'configurationVersion' ] }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/search

Beanがサポートしていないプロパティを問合せがリストした場合、問合せのその部分は無視されます(エラーを戻しません)。fieldsが指定されていない場合、すべてのプロパティが戻されます。

excludeFieldsは、戻さないフィールドのリストを指定します。他のプロパティはすべて戻されます。fieldsとexcludeFieldsは、排他的です。

問合せのfieldsおよびexcludeFieldsプロパティは、リソース上でGETをコールする場合に指定できるfieldsおよびexcludeFields問合せパラメータを反映している点に注意してください。違いは、問合せパラメータがカンマで区切られた名前を使用し、問合せが名前のJSON配列を使用する点です。

LinksとExcludeLinks

linksは、Beanのリンクのうち、どれを戻すかを指定します。これは、リンクrel名のJSON文字列配列です。たとえば、ドメインのselfおよびserversリンクを戻す手順は、次のとおりです:

curl ... -d "{ links: [ 'self', 'servers' ] }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/search

Beanがサポートしていないリンクを問合せがリストした場合、問合せのその部分は無視されます(エラーを戻しません)。

linksが指定されていない場合、すべてのリンクが戻されます(デフォルトでselfおよびcanonicalリンクのみを戻すコレクションの子を除く)。

同様に、excludeLinksは、戻さないリンクのリストを指定します。他のリンクはすべて戻されます。linksとexcludeLinksは、排他的です。

コレクションの子のリンクをすべて戻すには、excludeLinks: []を使用します。

問合せのlinksおよびexcludeLinksプロパティは、リソース上でGETをコールする場合に指定できるlinksおよびexcludeLinks問合せパラメータを反映している点に注意してください。

子

childrenは、どの子Beanプロパティを戻すかを指定します。これは、プロパティ名が戻す子の名前であり、値がオブジェクト問合せであるJSONオブジェクトです。たとえば、各サーバーの名前およびリスニング・ポートとともにドメインの名前を取得する手順は、次のとおりです:

curl ... -d "{
fields: [ 'name' ], // only return the domain's name
children: {
servers: { // fetch the domain's 'servers' collection
fields: [ 'name', 'listenPort' ] // only return each server's name and listen port
}
}
}" -X POST http://localhost:7001/management/weblogic/latest/edit/search

childrenが指定されていない場合、Beanの子はどれも戻されません。

アイデンティティ

場合により、コレクション内の特定のアイテム(たとえば、myserverおよびServer-0)のみを戻さなければならないことがあります。それぞれのコレクションの子は、そのアイデンティティを指定するプロパティを持っています。通常、これはnameプロパティです。問合せは、このプロパティ名を使用して、コレクションのどの子を戻すかを指定します。これはアイデンティティのJSON文字列配列です。fieldsおよびlinksは、これらの子それぞれに対して、どのプロパティとリンクを戻すかを制御するために使用することもできます。たとえば、サーバーServer-0およびServer-1の名前とリスニング・ポートを戻す手順は、次のとおりです:

curl ... -d "{
fields: [ 'name' ], // only return the domain's name
children: {
servers: { // fetch the domain's 'servers' collection
names: [ 'Server-0', 'Server-1' ], // only return the children whose 'name' is 'Server-0' or 'Server-1'
fields: [ 'name', 'listenPort' ] // only return each server's name and listen port
}
}
}" -X POST http://localhost:7001/management/weblogic/latest/edit/search

存在しないアイデンティティは無視されます(エラーを戻しません)。同様に、コンテキストがコレクションでない場合、問合せのこの部分は無視されます。デフォルトで、コレクションの子はすべて戻されます。

レスポンス・ボディ

レスポンス・ボディは通常のパターン(URLがBeanとコレクションのどちらに対するものかに応じて、インライン・プロパティまたはitems)に従います。子Beanは、ネストされたプロパティとして戻されます。例:

curl ... -d "{
fields: [], // don't return any domain level properties
links: [], // don't return any domain level links
children: {
servers: { // fetch the domain's 'servers' collection
names: [ 'Server-0', 'Server-1' ], // only return the children whose 'name' is 'Server-0' or 'Server-1'
fields: [ 'name' ], // only return each server's name
links: [], // don't return any per-server links
children: {
SSL: {
fields: [ 'listenPort' ], // only return each server's SSL listen port
links: [] // don't return any SSL level links
}
}
}
}
}" -X POST http://localhost:7001/management/weblogic/latest/edit/search
{code:JavaScript}
HTTP/1.1 200 OK
{
servers: {
items: [
{
name: "myserver",
SSL: { listenPort: 7002}
},
{
name: "AnotherServer",
SSL: { listenPort: 7002}
}
]
}
}

問合せの例

この例は、実行中のすべてのサーバー上で、特定のアプリケーションのコンポーネント・ランタイムを取得します。サーバー・ランタイムとアプリケーション・ランタイムでは親の名前のみ、コンポーネント・ランタイムではすべてのプロパティを戻します。

curl ... -d "{
fields: [], links: [], // don't return any domain runtime level properties or links
children: {
serverRuntimes: {
fields: [ 'name' ], links: [], // return each server's name.  don't return any server level links
children: {
applicationRuntimes: {
name: [ 'myapp', 'BasicApp' ], // only return apps 'myapp' and 'BasicApp'
fields: [ 'name' ], links: [], // return each app's name but no per-app links
children: {
componentRuntimes: { links: [] } // return all component runtime properties, but no links
}
}
}
}
}
}" -X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

この例は、すべての実行中サーバーにわたって、一群のアプリケーションのサーブレット・ランタイムとEJBランタイムの情報をすべて取得します。

curl ... -d "{
links: [],
fields: [],
children: {
serverRuntimes: {
links: [],
fields: [ 'name', 'state' ],
children: {
applicationRuntimes: {
name: [ 'myapp', 'BasicApp' ],
links: [],
fields: [ 'name', 'healthState' ],
children: {
componentRuntimes: {
links: [],
fields:[
'name',
'healthState',
'contextRoot',
'openSessionsCurrentCount',
'sessionsOpenedTotalCount'
],
children: {
EJBRuntimes: {
links: [],
fields: [
'EJBName',
'type'
],
children: {
transactionRuntime: {
links: [],
fields: [
'transactionsCommittedTotalCount',
'transactionsRolledBackTotalCount',
'transactionsTimedOutTotalCount'
]
},
poolRuntime: {
links: [],
fields: [
'accessTotalCount',
'missTotalCount',
'destroyedTotalCount',
'pooledBeansCurrentCount',
'beansInUseCurrentCount',
'waiterCurrentCount',
'timeoutTotalCount'
]
},
cacheRuntime: {
links: [],
fields: [
'cachedBeansCurrentCount',
'cacheAccessCount',
'cacheMissCount',
'activationCount',
'passivationCount'
]
},
lockingRuntime: {
links: [],
fields: [
'lockEntriesCurrentCount',
'lockManagerAccessCount',
'waiterTotalCount',
'waiterCurrentCount',
'timeoutTotalCount'
]
},
timerRuntime: {
links: [],
fields: [
'timeoutCount',
'cancelledTimerCount',
'activeTimerCount',
'disabledTimerCount'
]
}
}
},
servlets: {
links: [],
fields: [
'servletName',
'contextPath',
'reloadTotalCount',
'invocationTotalCount',
'executionTimeTotal',
'executionTimeHigh',
'executionTimeLow'
]
}
}
}
}
}
}
}
}
}" -X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

同期操作と非同期操作について

いくつかのMBean操作(たとえば、サーバー・ライフ・サイクルやデプロイメント)は、非同期です。ジョブがいつ完了したかを決定するために監視する必要があるジョブMBeanを戻します。

操作が完了したか、すぐに失敗した場合、非同期MBean操作は200 OK、201 Createdまたは400 Bad Requestを戻します。それ以外の場合は202 Acceptedが戻され、作業がいつ完了したかを検出するには、戻されたジョブ・リソースをポーリングする必要があります。RESTはデフォルトで、ベスト・エフォート型試行を行って作業の完了を待機しますが、およそ5分後に戻します。Preferヘッダーを指定して、RESTが作業の完了をどのくらい待機するかを制御できます。

表3-1は、Preferヘッダーの使用を説明しています。

表3-1 Preferヘッダーの使用

ヘッダー

説明

-X Prefer:respond-async

クライアントは、戻されたジョブ・リソースをポーリングします。非同期MBean操作がすぐに完了した場合、RESTは200 OK、201 Createdまたは400 Bad Requestを戻します。それ以外の場合は202 Acceptedを戻します。

-X Prefer:wait=#

たとえば、-X Prefer:wait=10

RESTリソースは、最大で指定された秒数までジョブを内部的にポーリングして、非同期MBean操作がその間に完了したら、200 OK、201 Createdまたは400 Bad Requestを戻します。それ以外の場合は、クライアントが(GETを介して)ポーリングして作業がいつ完了したかを検出できるRESTタスク・リソースのURLを含むLocationヘッダーとともに、202 Acceptedを戻します。

Preferヘッダーを指定しない場合、非同期MBean操作がおよそ5分以内に完了したら、RESTは200 OK、201 Createdまたは400 Bad Requestを戻し、それ以外の場合は202 Acceptedを戻します。

respond-asyncとwaitの両方を指定すると、respond-asyncは無視されます。

同期および非同期操作の例は、「ドメイン・レベルのREST API例」および「パーティション固有のREST API例」を参照してください。

アプリケーションとライブラリのデプロイ

デプロイされたアプリケーションとライブラリは編集ツリーに表示されます。それらをデプロイするにはコレクション上でPOSTを、アンデプロイするにはDELETEをコールします。同様に、デプロイメントMBeanは、サーバー相対パス名をとります。さらに、クライアントからサーバーにファイルをアップロードしてからそれをデプロイし、作成フォーム・リソースを使用してデプロイメントを調査(たとえば、優先名とバージョン番号を決定するために)できます。ドメイン指定およびパーティション指定のアプリケーションのデプロイの例は、「ドメイン・レベルのREST API例」および「パーティション固有のREST API例」を参照してください。

4 ドメイン・レベルREST APIの例

この章では、ドメイン・レベル・ロールにあるユーザーが、WebLogic Server REST APIsを使用して、一般的なドメインおよびパーティションの管理および監視タスクを実行するためのサンプル・スクリプトを示します。詳細は、「RESTリソースへのアクセス」を参照してください。

ここでのトピック

- ユーザーの追加

- サーバーの設定

- パーティションの作成

- システム・リソースの構成

- ドメイン・スコープ指定のアプリケーションのデプロイ

- ドメイン・リソースの監視

- ドメイン・スコープ指定のアプリケーションの起動と停止

- パーティションの起動と停止

- サーバーの起動と停止

ユーザーの追加

次のサンプル・スクリプトは、システム管理者が、どのようにオペレータ、デプロイヤおよびモニターといったユーザーを追加するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain admin configuring domain level users
----------------------------------------------------------------------

----------------------------------------------------------------------
Create a deployer
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'deployer',
password: 'deployer123',
description: 'A domain level deployer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser

HTTP/1.1 200 OK

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Deployers',
memberUserOrGroupName: 'deployer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Create an operator
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'operator',
password: 'operator123',
description: 'A domain level operator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser

HTTP/1.1 200 OK

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Operators',
memberUserOrGroupName: 'operator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Create a monitor
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'monitor',
password: 'monitor123',
description: 'A domain level monitor'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/createUser

HTTP/1.1 200 OK

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Monitors',
memberUserOrGroupName: 'monitor'
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverConfig/securityConfiguration/realms/myrealm/authenticationProviders/DefaultAuthenticator/addMemberToGroup

HTTP/1.1 200 OK

Response Body:
{}

サーバーの設定

次のサンプル・スクリプトは、クラスタにターゲット設定されたクラスタ、マシンおよび動的サーバーをシステム管理者がどのように作成するかを示します(管理対象サーバー用のリソース管理の設定を含む)。リソース管理の詳細は、『WebLogic Server MTの使用』の、リソース消費管理の構成に関する項を参照してください。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain admin configuring dynamic servers
----------------------------------------------------------------------

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

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new cluster
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusterCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"sessionStateQueryRequestTimeout": 30,
"notes": null,
"sessionFlushInterval": 180,
"txnAffinityEnabled": false,
"fencingGracePeriodMillis": 30000,
"serviceActivationRequestResponseTimeout": 10000,
"databaseLeasingBasisConnectionRetryCount": 1,
"millisToSleepBetweenAutoMigrationAttempts": 180000,
"migrationBasis": "database",
"oneWayRmiForReplicationEnabled": false,
"secureReplicationEnabled": false,
"WANSessionPersistenceTableName": "WLS_WAN_PERSISTENCE_TABLE",
"asyncSessionQueueTimeout": 30,
"clusterType": "none",
"databaseLeasingBasisConnectionRetryDelay": 1000,
"defaultLoadAlgorithm": "round-robin",
"frontendHTTPPort": 0,
"sessionFlushThreshold": 10000,
"httpTraceSupportEnabled": false,
"tags": null,
"replicationTimeoutEnabled": true,
"serviceAgeThresholdSeconds": 180,
"additionalAutoMigrationAttempts": 3,
"multicastBufferSize": 64,
"weblogicPluginEnabled": false,
"healthCheckIntervalMillis": 10000,
"jobSchedulerTableName": "WEBLOGIC_TIMERS",
"memberDeathDetectorEnabled": false,
"multicastTTL": 1,
"frontendHost": null,
"clusterAddress": null,
"interClusterCommLinkHealthCheckInterval": 30000,
"remoteClusterAddress": null,
"greedySessionFlushInterval": 3,
"replicationChannel": "ReplicationChannel",
"multicastAddress": "239.192.0.0",
"numberOfServersInClusterAddress": 3,
"persistSessionsOnShutdown": null,
"healthCheckPeriodsUntilFencing": 3,
"sessionStateQueryProtocolEnabled": false,
"clusterBroadcastChannel": null,
"multicastSendDelay": 3,
"multicastDataEncryption": false,
"messageOrderingEnabled": true,
"autoMigrationTableName": "ACTIVE",
"idlePeriodsUntilTimeout": 3,
"clientCertProxyEnabled": false,
"multicastPort": 7001,
"clusterMessagingMode": "unicast",
"frontendHTTPSPort": 0,
"dataSourceForSessionPersistence": null,
"dataSourceForJobScheduler": null,
"dataSourceForAutomaticMigration": null,
"coherenceClusterSystemResource": null,
"candidateMachinesForMigratableServers": [],
"name": null
}

----------------------------------------------------------------------
Configure a new cluster
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'Cluster1' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/clusters

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1

Response Body:
{}

----------------------------------------------------------------------
View the new cluster
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"clusters",
"Cluster1"
],
"sessionStateQueryRequestTimeout": 30,
"notes": null,
"sessionFlushInterval": 180,
"txnAffinityEnabled": false,
"fencingGracePeriodMillis": 30000,
"serviceActivationRequestResponseTimeout": 10000,
"type": "Cluster",
"databaseLeasingBasisConnectionRetryCount": 1,
"millisToSleepBetweenAutoMigrationAttempts": 180000,
"migrationBasis": "database",
"oneWayRmiForReplicationEnabled": false,
"id": 0,
"secureReplicationEnabled": false,
"WANSessionPersistenceTableName": "WLS_WAN_PERSISTENCE_TABLE",
"asyncSessionQueueTimeout": 30,
"clusterType": "none",
"databaseLeasingBasisConnectionRetryDelay": 1000,
"defaultLoadAlgorithm": "round-robin",
"frontendHTTPPort": 0,
"sessionFlushThreshold": 10000,
"httpTraceSupportEnabled": false,
"tags": [],
"replicationTimeoutEnabled": true,
"serviceAgeThresholdSeconds": 180,
"additionalAutoMigrationAttempts": 3,
"name": "Cluster1",
"sessionLazyDeserializationEnabled": false,
"multicastBufferSize": 64,
"weblogicPluginEnabled": false,
"healthCheckIntervalMillis": 10000,
"jobSchedulerTableName": "WEBLOGIC_TIMERS",
"memberDeathDetectorEnabled": false,
"multicastTTL": 1,
"frontendHost": null,
"clusterAddress": null,
"interClusterCommLinkHealthCheckInterval": 30000,
"remoteClusterAddress": null,
"greedySessionFlushInterval": 3,
"memberWarmupTimeoutSeconds": 0,
"replicationChannel": "ReplicationChannel",
"multicastAddress": "239.192.0.0",
"dynamicallyCreated": false,
"numberOfServersInClusterAddress": 3,
"persistSessionsOnShutdown": false,
"healthCheckPeriodsUntilFencing": 3,
"sessionStateQueryProtocolEnabled": false,
"clusterBroadcastChannel": null,
"multicastSendDelay": 3,
"multicastDataEncryption": false,
"messageOrderingEnabled": true,
"autoMigrationTableName": "ACTIVE",
"idlePeriodsUntilTimeout": 3,
"clientCertProxyEnabled": false,
"multicastPort": 7001,
"clusterMessagingMode": "unicast",
"frontendHTTPSPort": 0,
"dataSourceForSessionPersistence": null,
"dataSourceForJobScheduler": null,
"dataSourceForAutomaticMigration": null,
"coherenceClusterSystemResource": null,
"servers": [],
"migratableTargets": [],
"candidateMachinesForMigratableServers": []
}

----------------------------------------------------------------------
View the default values for a new machine
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machineCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"tags": null,
"name": null
}

----------------------------------------------------------------------
Configure a new machine
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name:'Machine1' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/machines

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/machines/Machine1

Response Body:
{}

----------------------------------------------------------------------
View the new machine
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"machines",
"Machine1"
],
"notes": null,
"name": "Machine1",
"id": 0,
"dynamicallyCreated": false,
"type": "Machine",
"tags": []
}

----------------------------------------------------------------------
View the default values for the machine's node manager configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"machines",
"Machine1",
"nodeManager"
],
"adapter": null,
"notes": null,
"NMType": "SSL",
"debugEnabled": false,
"userName": null,
"type": "NodeManager",
"tags": [],
"shellCommand": null,
"password": null,
"listenAddress": "localhost",
"name": "Machine1",
"nodeManagerHome": null,
"adapterVersion": null,
"adapterName": null,
"id": 0,
"dynamicallyCreated": false,
"listenPort": 5556
}

----------------------------------------------------------------------
Customize the machine's node manager configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
NMType:        'Plain',
listenAddress: 'localhost'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the modified node manager configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/machines/Machine1/nodeManager?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"machines",
"Machine1",
"nodeManager"
],
"adapter": null,
"notes": null,
"NMType": "Plain",
"debugEnabled": false,
"userName": null,
"type": "NodeManager",
"tags": [],
"shellCommand": null,
"password": null,
"listenAddress": "localhost",
"name": "Machine1",
"nodeManagerHome": null,
"adapterVersion": null,
"adapterName": null,
"id": 0,
"dynamicallyCreated": false,
"listenPort": 5556
}

----------------------------------------------------------------------
View the default values for a new server template
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/serverTemplateCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"maxOpenSockCount": -1,
"interfaceAddress": null,
"startupTimeout": 0,
"idleConnectionTimeout": 65,
"resolveDNSName": false,
"ignoreSessionsDuringShutdown": false,
"adminReconnectIntervalSeconds": 10,
"preferredSecondaryGroup": null,
"defaultSecureProtocol": "t3s",
"maxMessageSize": 10000000,
"stagingDirectoryName": null,
"outboundPrivateKeyEnabled": false,
"defaultTGIOPPassword": null,
"httpTraceSupportEnabled": false,
"tags": null,
"useEnhancedIncrementAdvisor": true,
"completeMessageTimeout": 60,
"managedServerIndependenceEnabled": true,
"retryIntervalBeforeMSIMode": 5,
"nativeIOEnabled": true,
"startupMode": "RUNNING",
"externalDNSName": null,
"JMSConnectionFactoryUnmappedResRefMode": "ReturnDefault",
"extraEjbcOptions": null,
"autoMigrationEnabled": null,
"tunnelingClientPingSecs": 45,
"instrumentStackTraceEnabled": true,
"customIdentityKeyStorePassPhrase": null,
"gracefulShutdownTimeout": 0,
"outboundEnabled": false,
"javaStandardTrustKeyStorePassPhrase": null,
"buzzAddress": null,
"classpathServletDisabled": false,
"healthCheckStartDelaySeconds": 120,
"clientCertProxyEnabled": false,
"defaultInternalServletsDisabled": false,
"customIdentityKeyStoreType": null,
"restartIntervalSeconds": 3600,
"notes": null,
"serverLifeCycleTimeoutVal": 30,
"httpdEnabled": true,
"javaCompilerPostClassPath": null,
"buzzPort": 0,
"keyStores": "DemoIdentityAndDemoTrust",
"defaultTGIOPUser": "guest",
"use81StyleExecuteQueues": false,
"uploadDirectoryName": null,
"tunnelingClientTimeoutSecs": 40,
"listenThreadStartDelaySecs": 60,
"tunnelingEnabled": false,
"listenAddress": null,
"acceptBacklog": 300,
"listenPortEnabled": true,
"eagerThreadLocalCleanup": false,
"connectTimeout": 0,
"printStackTraceInProduction": false,
"useFusionForLLR": null,
"clusterWeight": 100,
"customTrustKeyStorePassPhrase": null,
"restartDelaySeconds": 0,
"transactionLogFilePrefix": ".\/",
"maxConcurrentLongRunningRequests": 100,
"customTrustKeyStoreFileName": null,
"socketReaders": -1,
"threadPoolPercentSocketReaders": 33,
"JDBCLoginTimeoutSeconds": 0,
"customTrustKeyStoreType": null,
"loginTimeoutMillis": 5000,
"messageIdPrefixEnabled": true,
"healthCheckIntervalSeconds": 180,
"useEnhancedPriorityQueueForRequestManager": false,
"reverseDNSAllowed": false,
"periodLength": 60000,
"socketBufferSizeAsChunkSize": false,
"JDBCLLRTableName": null,
"buzzEnabled": false,
"weblogicPluginEnabled": false,
"useDetailedThreadName": false,
"stuckThreadTimerInterval": 60,
"TGIOPEnabled": true,
"listenersBindEarly": false,
"JNDITransportableObjectFactoryList": null,
"NMSocketCreateTimeoutInMillis": 180000,
"DGCIdlePeriodsUntilTimeout": 5,
"defaultIIOPUser": null,
"logRemoteExceptionsEnabled": false,
"transactionLogFileWritePolicy": "Direct-Write",
"defaultProtocol": "t3",
"replicationPorts": null,
"autoRestart": true,
"extraRmicOptions": null,
"customIdentityKeyStoreFileName": null,
"restartMax": 2,
"replicationGroup": null,
"defaultIIOPPassword": null,
"IIOPEnabled": true,
"maxConcurrentNewThreads": 100,
"numOfRetriesBeforeMSIMode": 3,
"JMSDefaultConnectionFactoriesEnabled": true,
"allowShrinkingPriorityRequestQueue": true,
"COMEnabled": false,
"javaCompilerPreClassPath": null,
"idlePeriodsUntilTimeout": 4,
"listenPort": 7001,
"javaCompiler": "javac",
"cluster": null,
"reliableDeliveryPolicy": null,
"machine": null,
"XMLEntityCache": null,
"XMLRegistry": null,
"coherenceClusterSystemResource": null,
"candidateMachines": [],
"name": null
}

----------------------------------------------------------------------
Configure a new server template for the cluster
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:           'ServerTemplate1',
listenPort:     7100,
listenAddress: 'localhost',
machine:        [ 'machines', 'Machine1' ],
cluster:        [ 'clusters', 'Cluster1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/serverTemplates

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1

Response Body:
{}

----------------------------------------------------------------------
Turn on resource management for the managed servers
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
arguments: '-XX:+UnlockCommercialFeatures -XX:+ResourceManagement'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1/serverStart

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the new server template
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/serverTemplates/ServerTemplate1?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverTemplates",
"ServerTemplate1"
],
"stagingMode": "stage",
"maxOpenSockCount": -1,
"interfaceAddress": null,
"hostsMigratableServices": true,
"startupTimeout": 0,
"idleConnectionTimeout": 65,
"resolveDNSName": false,
"ignoreSessionsDuringShutdown": false,
"type": "ServerTemplate",
"adminReconnectIntervalSeconds": 10,
"administrationPort": 9002,
"preferredSecondaryGroup": null,
"defaultSecureProtocol": "t3s",
"id": 0,
"maxMessageSize": 10000000,
"completeWriteTimeout": 60,
"stagingDirectoryName": "\/domains\/mydomain\/servers\/ServerTemplate1\/stage",
"outboundPrivateKeyEnabled": false,
"defaultTGIOPPassword": null,
"httpTraceSupportEnabled": false,
"tags": [],
"useEnhancedIncrementAdvisor": true,
"completeMessageTimeout": 60,
"managedServerIndependenceEnabled": true,
"retryIntervalBeforeMSIMode": 5,
"nativeIOEnabled": true,
"startupMode": "RUNNING",
"externalDNSName": null,
"JMSConnectionFactoryUnmappedResRefMode": "ReturnDefault",
"administrationProtocol": "t3s",
"extraEjbcOptions": null,
"autoMigrationEnabled": false,
"tunnelingClientPingSecs": 45,
"instrumentStackTraceEnabled": true,
"dynamicallyCreated": false,
"customIdentityKeyStorePassPhrase": null,
"gracefulShutdownTimeout": 0,
"outboundEnabled": false,
"javaStandardTrustKeyStorePassPhrase": null,
"useConcurrentQueueForRequestManager": false,
"buzzAddress": null,
"classpathServletDisabled": false,
"healthCheckStartDelaySeconds": 120,
"clientCertProxyEnabled": false,
"defaultInternalServletsDisabled": false,
"customIdentityKeyStoreType": null,
"restartIntervalSeconds": 3600,
"notes": null,
"serverLifeCycleTimeoutVal": 30,
"httpdEnabled": true,
"javaCompilerPostClassPath": null,
"buzzPort": 0,
"keyStores": "DemoIdentityAndDemoTrust",
"defaultTGIOPUser": "guest",
"use81StyleExecuteQueues": false,
"uploadDirectoryName": ".\/servers\/ServerTemplate1\/upload",
"tunnelingClientTimeoutSecs": 40,
"listenThreadStartDelaySecs": 60,
"tunnelingEnabled": false,
"listenAddress": "localhost",
"acceptBacklog": 300,
"listenPortEnabled": true,
"eagerThreadLocalCleanup": false,
"connectTimeout": 0,
"printStackTraceInProduction": false,
"scatteredReadsEnabled": false,
"muxerClass": "weblogic.socket.NIOSocketMuxer",
"useFusionForLLR": false,
"clusterWeight": 100,
"customTrustKeyStorePassPhrase": null,
"restartDelaySeconds": 0,
"transactionLogFilePrefix": ".\/",
"maxConcurrentLongRunningRequests": 100,
"customTrustKeyStoreFileName": null,
"socketReaders": -1,
"threadPoolPercentSocketReaders": 33,
"JDBCLoginTimeoutSeconds": 0,
"customTrustKeyStoreType": null,
"loginTimeoutMillis": 5000,
"messageIdPrefixEnabled": false,
"healthCheckIntervalSeconds": 180,
"useEnhancedPriorityQueueForRequestManager": false,
"name": "ServerTemplate1",
"reverseDNSAllowed": false,
"periodLength": 60000,
"socketBufferSizeAsChunkSize": false,
"JDBCLLRTableName": null,
"buzzEnabled": false,
"weblogicPluginEnabled": false,
"useDetailedThreadName": false,
"stuckThreadTimerInterval": 60,
"TGIOPEnabled": true,
"listenersBindEarly": false,
"JNDITransportableObjectFactoryList": [],
"NMSocketCreateTimeoutInMillis": 180000,
"DGCIdlePeriodsUntilTimeout": 5,
"defaultIIOPUser": null,
"logRemoteExceptionsEnabled": false,
"transactionLogFileWritePolicy": "Direct-Write",
"gatheredWritesEnabled": false,
"defaultProtocol": "t3",
"replicationPorts": null,
"autoRestart": true,
"extraRmicOptions": null,
"customIdentityKeyStoreFileName": null,
"restartMax": 2,
"replicationGroup": null,
"defaultIIOPPassword": null,
"IIOPEnabled": true,
"maxConcurrentNewThreads": 100,
"numOfRetriesBeforeMSIMode": 3,
"JMSDefaultConnectionFactoriesEnabled": true,
"allowShrinkingPriorityRequestQueue": true,
"addWorkManagerThreadsByCpuCount": false,
"COMEnabled": false,
"javaCompilerPreClassPath": null,
"idlePeriodsUntilTimeout": 4,
"listenPort": 7100,
"javaCompiler": "javac",
"cluster": [
"clusters",
"Cluster1"
],
"reliableDeliveryPolicy": null,
"machine": [
"machines",
"Machine1"
],
"XMLEntityCache": null,
"XMLRegistry": null,
"coherenceClusterSystemResource": null,
"candidateMachines": []
}

----------------------------------------------------------------------
View the default values for the cluster's dynamic servers configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"clusters",
"Cluster1",
"dynamicServers"
],
"notes": null,
"dynamicClusterSize": 0,
"machineNameMatchExpression": null,
"maxDynamicClusterSize": 8,
"serverNamePrefix": "Cluster1-",
"ignoreSessionsDuringShutdown": false,
"type": "DynamicServers",
"calculatedMachineNames": false,
"dynamicClusterShutdownTimeoutSeconds": 0,
"tags": [],
"waitForAllSessionsDuringShutdown": false,
"machineMatchExpression": null,
"calculatedListenPorts": true,
"name": "Cluster1",
"id": 0,
"dynamicallyCreated": false,
"machineMatchType": "name",
"minDynamicClusterSize": 1,
"dynamicClusterCooloffPeriodSeconds": 900,
"serverTemplate": null
}

----------------------------------------------------------------------
Customize the cluster's dynamic servers configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
serverTemplate:        [ 'serverTemplates', 'ServerTemplate1' ],
dynamicClusterSize:    2,
serverNamePrefix:      'Cluster1Server'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the modified dynamic servers configuration
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/clusters/Cluster1/dynamicServers?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"clusters",
"Cluster1",
"dynamicServers"
],
"notes": null,
"dynamicClusterSize": 2,
"machineNameMatchExpression": null,
"maxDynamicClusterSize": 8,
"serverNamePrefix": "Cluster1Server",
"ignoreSessionsDuringShutdown": false,
"type": "DynamicServers",
"calculatedMachineNames": false,
"dynamicClusterShutdownTimeoutSeconds": 0,
"tags": [],
"waitForAllSessionsDuringShutdown": false,
"machineMatchExpression": null,
"calculatedListenPorts": true,
"name": "Cluster1",
"id": 0,
"dynamicallyCreated": false,
"machineMatchType": "name",
"minDynamicClusterSize": 1,
"dynamicClusterCooloffPeriodSeconds": 900,
"serverTemplate": [
"serverTemplates",
"ServerTemplate1"
]
}

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

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Synchronously start the managed servers
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/start

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_0_start"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server1",
"tasks",
"_0_start"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553412814,
"name": "_0_start",
"progress": "success",
"description": "Starting Cluster1Server1 server ...",
"serverName": "Cluster1Server1",
"taskError": null,
"startTimeAsLong": 1443553389996,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:03:09.996-04",
"endTime": "2015-09-29T15:03:32.814-04"
}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/start

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_1_start"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_1_start"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553439477,
"name": "_1_start",
"progress": "success",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553419386,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:03:39.386-04",
"endTime": "2015-09-29T15:03:59.477-04"
}

----------------------------------------------------------------------
Verify that the managed servers are running
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server1"
],
"nodeManagerRestartCount": 0,
"middlewareHome": "\/Oracle_Home",
"name": "Cluster1Server1",
"weblogicHome": "\/Oracle_Home\/wlserver",
"state": "RUNNING",
"type": "ServerLifeCycleRuntime"
},
{
"identity": [
"serverLifeCycleRuntimes",
"AdminServer"
],
"nodeManagerRestartCount": 0,
"middlewareHome": "\/Oracle_Home",
"name": "AdminServer",
"weblogicHome": "\/Oracle_Home\/wlserver",
"state": "RUNNING",
"type": "ServerLifeCycleRuntime"
},
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2"
],
"nodeManagerRestartCount": 0,
"middlewareHome": "\/Oracle_Home",
"name": "Cluster1Server2",
"weblogicHome": "\/Oracle_Home\/wlserver",
"state": "RUNNING",
"type": "ServerLifeCycleRuntime"
}
]}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"name": "Cluster1Server1",
"state": "RUNNING"
},
{
"name": "AdminServer",
"state": "RUNNING"
},
{
"name": "Cluster1Server2",
"state": "RUNNING"
}
]}

パーティションの作成

次のサンプル・スクリプトは、システム管理者が次のようなパーティションをどのように作成するかを示します。

- パーティションの新規セキュリティ・レルム

- アプリケーションが実行されるクラスタの仮想ターゲット

- デプロイヤがシステム・リソースを作成でき、アプリケーションをデプロイできるような、管理サーバーの仮想ターゲット

- 各仮想ターゲットのリソース・グループ

- 管理者、デプロイヤ、モニターおよびオペレータの各ロールを持つパーティション・ユーザー

- 同じ場所にいるパーティション・ユーザーが共有するシステム・リソースを監視および制御するための、新規パーティションのリソース・マネージャの作成

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

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

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

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new security realm
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realmCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"maxWebLogicPrincipalsInCache": 500,
"enableWebLogicPrincipalValidatorCache": true,
"authMethods": null,
"validateDDSecurityData": false,
"combinedRoleMappingEnabled": true,
"delegateMBeanAuthorization": false,
"deployableProviderSynchronizationTimeout": 60000,
"deployableProviderSynchronizationEnabled": false,
"retireTimeoutSeconds": 60,
"securityDDModel": "DDOnly",
"certPathBuilder": null,
"name": null
}

----------------------------------------------------------------------
Create a security realm for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'Partition1Realm' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'DefaultAuthenticator',
type: 'weblogic.security.providers.authentication.DefaultAuthenticator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:        'DefaultIdentityAsserter',
type:        'weblogic.security.providers.authentication.DefaultIdentityAsserter',
activeTypes: [ 'AuthenticatedUser','weblogic-jwt-token']
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultIdentityAsserter

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:                          'SystemPasswordValidator',
type:                          'com.bea.security.providers.authentication.passwordvalidator.SystemPasswordValidator',
minPasswordLength:             8,
minNumericOrSpecialCharacters: 1
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/passwordValidators

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/passwordValidators/SystemPasswordValidator

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'XACMLRoleMapper',
type: 'weblogic.security.providers.xacml.authorization.XACMLRoleMapper'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/roleMappers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/roleMappers/XACMLRoleMapper

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'XACMLAuthorizer',
type: 'weblogic.security.providers.xacml.authorization.XACMLAuthorizer'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authorizers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/authorizers/XACMLAuthorizer

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'DefaultAdjudicator',
type: 'weblogic.security.providers.authorization.DefaultAdjudicator'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/adjudicator

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/adjudicator

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'DefaultCredentialMapper',
type: 'weblogic.security.providers.credentials.DefaultCredentialMapper'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/credentialMappers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/credentialMappers/DefaultCredentialMapper

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'WebLogicCertPathProvider',
type: 'weblogic.security.providers.pk.WebLogicCertPathProvider'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/certPathProviders

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm/certPathProviders/WebLogicCertPathProvider

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
certPathBuilder: [ 'securityConfiguration', 'realms', 'Partition1Realm', 'certPathProviders', 'WebLogicCertPathProvider' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new virtual target
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/virtualTargetCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"explicitPort": 0,
"notes": null,
"portOffset": 0,
"hostNames": null,
"uriPrefix": "\/",
"deploymentOrder": 1000,
"partitionChannel": "PartitionChannel",
"tags": null,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a virtual target for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:      'Partition1VirtualTarget',
hostNames: [ 'localhost' ],
uriPrefix: '/partition1',
targets:   [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/virtualTargets

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/virtualTargets/Partition1VirtualTarget

Response Body:
{}

----------------------------------------------------------------------
Create an admin server virtual target for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:      'Partition1AdminVirtualTarget',
hostNames: [ 'localhost' ],
uriPrefix: '/partition1',
targets:   [ { identity: [ 'servers', 'AdminServer' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/virtualTargets

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/virtualTargets/Partition1AdminVirtualTarget

Response Body:
{}

----------------------------------------------------------------------
Create a resource manager for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'Partition1ResourceManager' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'FileOpen' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'CpuUtilization' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization

Response Body:
{}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ name: 'HeapRetained' }" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained

Response Body:
{}

----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition has 4 or more files open
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:   'NotifyTrigger',
value:  4,
action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen/triggers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/fileOpen/triggers/NotifyTrigger

Response Body:
{}

----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition uses 50% of the CPU
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:   'NotifyTrigger',
value:  50,
action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers/NotifyTrigger

Response Body:
{}

----------------------------------------------------------------------
Create a trigger that slows down traffic to the new partition if it uses 60% or more of the CPU
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:   'SlowTrigger',
value:  60,
action: 'slow'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/cpuUtilization/triggers/SlowTrigger

Response Body:
{}

----------------------------------------------------------------------
Create a trigger that notifies the domain admin if the new partition uses more than 200 megabytes of the heap
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:   'NotifyTrigger',
value:  200,
action: 'notify'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained/triggers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/resourceManagement/resourceManagers/Partition1ResourceManager/heapRetained/triggers/NotifyTrigger

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitionCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"batchJobsExecutorServiceName": null,
"jobSchedulerTableName": "WEBLOGIC_TIMERS",
"notes": null,
"parallelDeployApplications": true,
"startupTimeout": 0,
"maxConcurrentLongRunningRequests": 50,
"ignoreSessionsDuringShutdown": false,
"maxConcurrentNewThreads": 50,
"tags": null,
"gracefulShutdownTimeout": 0,
"RCMHistoricalDataBufferLimit": 250,
"uploadDirectoryName": null,
"eagerTrackingOfResourceMetricsEnabled": false,
"parallelDeployApplicationModules": false,
"partitionLifeCycleTimeoutVal": 30,
"resourceDeploymentPlanPath": null,
"batchJobsDataSourceJndiName": null,
"dataSourceForJobScheduler": null,
"resourceManagerRef": null,
"realm": null,
"partitionWorkManagerRef": null,
"defaultTargets": [],
"availableTargets": [],
"name": null
}

----------------------------------------------------------------------
Create the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1',
realm: [ 'securityConfiguration', 'realms', 'Partition1Realm' ],
resourceManagerRef: [ 'resourceManagement', 'resourceManagers', 'Partition1ResourceManager' ],
availableTargets: [
{ identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] },
{ identity: [ 'virtualTargets', 'Partition1AdminVirtualTarget' ] }
],
defaultTargets: [
{ identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] },
{ identity: [ 'virtualTargets', 'Partition1AdminVirtualTarget' ] }
]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/partitions

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new resource group in this partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroupCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"uploadDirectoryName": null,
"notes": null,
"useDefaultTarget": true,
"tags": null,
"resourceGroupTemplate": null,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a resource group for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:    'Partition1ResourceGroup',
targets: [ { identity: [ 'virtualTargets', 'Partition1VirtualTarget' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups

HTTP/1.1 201 Created

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

Response Body:
{}

----------------------------------------------------------------------
Create an admin resource group for the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:    'Partition1AdminResourceGroup',
targets: [ { identity: [ 'virtualTargets', 'Partition1AdminVirtualTarget' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1AdminResourceGroup

Response Body:
{}

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

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/edit/changeManager/activate

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Create an administrator, deployer, operator and monitor for the new partition
----------------------------------------------------------------------

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Start the new partition
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_4_START"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_4_START"
],
"running": false,
"partitionName": "Partition1",
"systemTask": false,
"endTimeAsLong": 1443553461533,
"name": "_4_START",
"progress": "success",
"description": "Starting Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553460000,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "START",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:04:20.000-04",
"endTime": "2015-09-29T15:04:21.533-04"
}

----------------------------------------------------------------------
View the new security realm
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/securityConfiguration/realms/Partition1Realm?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"securityConfiguration",
"realms",
"Partition1Realm"
],
"autoRestartOnNonDynamicChanges": true,
"credentialMapperTypes": [
"com.bea.security.saml2.providers.SAML2CredentialMapper",
"weblogic.security.providers.credentials.DefaultCredentialMapper",
"weblogic.security.providers.credentials.PKICredentialMapper",
"weblogic.security.providers.saml.SAMLCredentialMapperV2"
],
"maxWebLogicPrincipalsInCache": 500,
"enableWebLogicPrincipalValidatorCache": true,
"roleMapperTypes": [
"weblogic.security.providers.authorization.DefaultRoleMapper",
"weblogic.security.providers.xacml.authorization.XACMLRoleMapper"
],
"adjudicatorTypes": ["weblogic.security.providers.authorization.DefaultAdjudicator"],
"auditorTypes": ["weblogic.security.providers.audit.DefaultAuditor"],
"authMethods": null,
"authenticationProviderTypes": [
"com.bea.security.saml2.providers.SAML2IdentityAsserter",
"weblogic.security.providers.authentication.ActiveDirectoryAuthenticator",
"weblogic.security.providers.authentication.CustomDBMSAuthenticator",
"weblogic.security.providers.authentication.DefaultAuthenticator",
"weblogic.security.providers.authentication.DefaultIdentityAsserter",
"weblogic.security.providers.authentication.IPlanetAuthenticator",
"weblogic.security.providers.authentication.LDAPAuthenticator",
"weblogic.security.providers.authentication.LDAPX509IdentityAsserter",
"weblogic.security.providers.authentication.NegotiateIdentityAsserter",
"weblogic.security.providers.authentication.NovellAuthenticator",
"weblogic.security.providers.authentication.OpenLDAPAuthenticator",
"weblogic.security.providers.authentication.OracleInternetDirectoryAuthenticator",
"weblogic.security.providers.authentication.OracleUnifiedDirectoryAuthenticator",
"weblogic.security.providers.authentication.OracleVirtualDirectoryAuthenticator",
"weblogic.security.providers.authentication.ReadOnlySQLAuthenticator",
"weblogic.security.providers.authentication.SQLAuthenticator",
"weblogic.security.providers.authentication.VirtualUserAuthenticator",
"weblogic.security.providers.saml.SAMLAuthenticator",
"weblogic.security.providers.saml.SAMLIdentityAsserterV2"
],
"validateDDSecurityData": false,
"combinedRoleMappingEnabled": true,
"delegateMBeanAuthorization": false,
"authorizerTypes": [
"weblogic.security.providers.authorization.DefaultAuthorizer",
"weblogic.security.providers.xacml.authorization.XACMLAuthorizer"
],
"deployableProviderSynchronizationTimeout": 60000,
"passwordValidatorTypes": ["com.bea.security.providers.authentication.passwordvalidator.SystemPasswordValidator"],
"certPathProviderTypes": [
"weblogic.security.providers.pk.CertificateRegistry",
"weblogic.security.providers.pk.WebLogicCertPathProvider"
],
"deployableProviderSynchronizationEnabled": false,
"name": "Partition1Realm",
"retireTimeoutSeconds": 60,
"securityDDModel": "DDOnly",
"certPathBuilder": [
"securityConfiguration",
"realms",
"Partition1Realm",
"certPathProviders",
"WebLogicCertPathProvider"
]
}

----------------------------------------------------------------------
View the new virtual targets
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/virtualTargets?links=none

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"identity": [
"virtualTargets",
"Partition1VirtualTarget"
],
"explicitPort": 0,
"notes": null,
"portOffset": 0,
"hostNames": ["localhost"],
"name": "Partition1VirtualTarget",
"uriPrefix": "\/partition1",
"id": 0,
"deploymentOrder": 1000,
"dynamicallyCreated": false,
"type": "VirtualTarget",
"partitionChannel": "PartitionChannel",
"tags": [],
"targets": [{"identity": [
"clusters",
"Cluster1"
]}]
},
{
"identity": [
"virtualTargets",
"Partition1AdminVirtualTarget"
],
"explicitPort": 0,
"notes": null,
"portOffset": 0,
"hostNames": ["localhost"],
"name": "Partition1AdminVirtualTarget",
"uriPrefix": "\/partition1",
"id": 0,
"deploymentOrder": 1000,
"dynamicallyCreated": false,
"type": "VirtualTarget",
"partitionChannel": "PartitionChannel",
"tags": [],
"targets": [{"identity": [
"servers",
"AdminServer"
]}]
}
]}

----------------------------------------------------------------------
View the new partition's resource groups
----------------------------------------------------------------------

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

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup"
],
"uploadDirectoryName": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/",
"notes": null,
"useDefaultTarget": false,
"name": "Partition1ResourceGroup",
"id": 0,
"dynamicallyCreated": false,
"type": "ResourceGroup",
"tags": [],
"resourceGroupTemplate": null,
"targets": [{"identity": [
"virtualTargets",
"Partition1VirtualTarget"
]}]
},
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1AdminResourceGroup"
],
"uploadDirectoryName": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/",
"notes": null,
"useDefaultTarget": false,
"name": "Partition1AdminResourceGroup",
"id": 0,
"dynamicallyCreated": false,
"type": "ResourceGroup",
"tags": [],
"resourceGroupTemplate": null,
"targets": [{"identity": [
"virtualTargets",
"Partition1AdminVirtualTarget"
]}]
}
]}

----------------------------------------------------------------------
View all the resource manager configurations
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
resourceManagement: {
links: [], fields: [],
children: {
resourceManagers: {
links: [], fields: [ 'name' ],
children: {
fileOpen: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
heapRetained: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
cpuUtilization: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
}
}
}
},
partitions: {
links: [], fields: [ 'name', 'resourceManagerRef' ],
children: {
resourceManager: {
links: [], fields: [],
children: {
fileOpen: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
heapRetained: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
cpuUtilization: {
links: [], fields: [],
children: {
triggers: { links: [], fields: [ 'name', 'action', 'value' ] }
}
},
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/search

HTTP/1.1 100 Continue HTTP/1.1 200 OK

Response Body:
{
"partitions": {"items": [{
"name": "Partition1",
"resourceManagerRef": [
"resourceManagement",
"resourceManagers",
"Partition1ResourceManager"
],
"resourceManager": null
}]},
"resourceManagement": {"resourceManagers": {"items": [{
"name": "Partition1ResourceManager",
"fileOpen": {"triggers": {"items": [{
"name": "NotifyTrigger",
"action": "notify",
"value": 4
}]}},
"cpuUtilization": {"triggers": {"items": [
{
"name": "NotifyTrigger",
"action": "notify",
"value": 50
},
{
"name": "SlowTrigger",
"action": "slow",
"value": 60
}
]}},
"heapRetained": {"triggers": {"items": [{
"name": "NotifyTrigger",
"action": "notify",
"value": 200
}]}}
}]}}
}

----------------------------------------------------------------------
View the new partition
----------------------------------------------------------------------

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

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"partitions",
"Partition1"
],
"batchJobsExecutorServiceName": null,
"jobSchedulerTableName": "WEBLOGIC_TIMERS",
"notes": null,
"parallelDeployApplications": true,
"startupTimeout": 0,
"partitionID": "2a957a7e-82c3-43a7-9401-8932213208a8",
"maxConcurrentLongRunningRequests": 50,
"ignoreSessionsDuringShutdown": false,
"type": "Partition",
"maxConcurrentNewThreads": 50,
"tags": [],
"gracefulShutdownTimeout": 0,
"RCMHistoricalDataBufferLimit": 250,
"uploadDirectoryName": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/",
"primaryIdentityDomain": "idd_Partition1",
"eagerTrackingOfResourceMetricsEnabled": false,
"parallelDeployApplicationModules": false,
"partitionLifeCycleTimeoutVal": 30,
"name": "Partition1",
"resourceDeploymentPlanPath": null,
"id": 0,
"batchJobsDataSourceJndiName": null,
"dynamicallyCreated": false,
"dataSourceForJobScheduler": null,
"resourceManagerRef": [
"resourceManagement",
"resourceManagers",
"Partition1ResourceManager"
],
"realm": [
"securityConfiguration",
"realms",
"Partition1Realm"
],
"partitionWorkManagerRef": null,
"defaultTargets": [
{"identity": [
"virtualTargets",
"Partition1VirtualTarget"
]},
{"identity": [
"virtualTargets",
"Partition1AdminVirtualTarget"
]}
],
"availableTargets": [
{"identity": [
"virtualTargets",
"Partition1VirtualTarget"
]},
{"identity": [
"virtualTargets",
"Partition1AdminVirtualTarget"
]}
]
}

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

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1"
],
"partitionID": "2a957a7e-82c3-43a7-9401-8932213208a8",
"name": "Partition1",
"type": "DomainPartitionRuntime"
}

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime"
],
"name": "Partition1",
"state": "RUNNING",
"type": "PartitionLifeCycleRuntime"
}

----------------------------------------------------------------------
Search for all of the new partition's partitionRuntimes
----------------------------------------------------------------------

curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name', 'state', 'restartRequired' ]
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"restartRequired": false,
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"restartRequired": false,
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"restartRequired": false,
"name": "Partition1",
"state": "RUNNING"
}]}
}
]}}

システム・リソースの構成

次のサンプル・スクリプトは、デプロイヤがどのようにJDBCおよびJMSシステム・リソースを構成するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain deployer configuring system resources
----------------------------------------------------------------------

----------------------------------------------------------------------
View the default values for a new global JDBC system resource
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResourceCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"compatibilityName": null,
"deploymentOrder": 100,
"tags": null,
"targets": [],
"name": null,
"descriptorFileName": null
}

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

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
Create a new global JDBC system resource and set its name
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'JDBCDataSource1',
targets: [ { identity: [ clusters, 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources?saveChanges=false

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1

Response Body:
{}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'JDBCDataSource1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource

HTTP/1.1 200 OK

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
JNDINames: [ 'JDBCDataSource1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDataSourceParams

HTTP/1.1 200 OK

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
driverName: 'org.apache.derby.jdbc.ClientXADataSource',
url:        'jdbc:derby://localhost:1527/demo'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams

HTTP/1.1 200 OK

Response Body:
{}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:  'portNumber',
value: '1527'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/portNumber

Response Body:
{}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:  'databaseName',
value: 'demo;create=true'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/databaseName

Response Body:
{}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:  'serverName',
value: 'localhost'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/serverName

Response Body:
{}

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

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

HTTP/1.1 200 OK

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"JDBCSystemResources",
"JDBCDataSource1"
],
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"descriptorFileName": "jdbc\/JDBCDataSource1-6865-jdbc.xml",
"name": "JDBCDataSource1",
"compatibilityName": null,
"id": 0,
"deploymentOrder": 100,
"dynamicallyCreated": false,
"type": "JDBCSystemResource",
"sourcePath": ".\/config\/jdbc\/JDBCDataSource1-6865-jdbc.xml",
"tags": [],
"resource": [
"JDBCSystemResources",
"JDBCDataSource1",
"JDBCResource"
],
"targets": [{"identity": [
"clusters",
"Cluster1"
]}]
}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"JDBCSystemResources",
"JDBCDataSource1",
"JDBCResource"
],
"datasourceType": null,
"name": "JDBCDataSource1",
"id": 0,
"version": null
}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDataSourceParams?links=none

HTTP/1.1 200 OK

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams?links=none

HTTP/1.1 200 OK

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JDBCSystemResources/JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties?links=none

HTTP/1.1 200 OK

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

----------------------------------------------------------------------
Search for all of the new JDBC data source's runtimes
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCServiceRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : {
links: [], fields: [ 'name', 'state' ],
name: [ 'JDBCDataSource1' ]
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"JDBCServiceRuntime": {
"name": "Cluster1Server1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"state": "Running",
"name": "JDBCDataSource1"
}]}
}
},
{
"name": "AdminServer",
"JDBCServiceRuntime": {
"name": "AdminServer",
"JDBCDataSourceRuntimeMBeans": {"items": []}
}
},
{
"name": "Cluster1Server2",
"JDBCServiceRuntime": {
"name": "Cluster1Server2",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"state": "Running",
"name": "JDBCDataSource1"
}]}
}
}
]}}

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

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

HTTP/1.1 200 OK

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new global JMS file store
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/fileStoreCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"fileLockingEnabled": true,
"distributionPolicy": "Distributed",
"partialClusterStabilityDelaySeconds": -1,
"deploymentOrder": 1000,
"directory": null,
"initialBootDelaySeconds": -1,
"ioBufferSize": -1,
"minWindowBufferSize": -1,
"failbackDelaySeconds": -1,
"cacheDirectory": null,
"numberOfRestartAttempts": 6,
"initialSize": 0,
"logicalName": null,
"maxFileSize": 1342177280,
"synchronousWritePolicy": "Direct-Write",
"blockSize": -1,
"tags": null,
"maxWindowBufferSize": -1,
"migrationPolicy": "Off",
"secondsBetweenRestarts": 30,
"restartInPlace": true,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a new global file store
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:               'FileStore1',
targets:            [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/fileStores

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/fileStores/FileStore1

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new global JMS server
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSServerCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"messagesThresholdHigh": -1,
"hostingTemporaryDestinations": true,
"temporaryTemplateName": null,
"notes": null,
"maximumMessageSize": 2147483647,
"allowsPersistentDowngrade": false,
"storeMessageCompressionEnabled": false,
"deploymentOrder": 1000,
"pagingMessageCompressionEnabled": false,
"messageBufferSize": -1,
"expirationScanInterval": 30,
"bytesThresholdLow": -1,
"messagesThresholdLow": -1,
"blockingSendPolicy": "FIFO",
"pagingBlockSize": -1,
"insertionPausedAtStartup": "default",
"pagingMaxWindowBufferSize": -1,
"bytesThresholdHigh": -1,
"pagingMaxFileSize": 1342177280,
"productionPausedAtStartup": "default",
"pagingFileLockingEnabled": true,
"tags": null,
"bytesMaximum": -1,
"temporaryTemplateResource": null,
"messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
"pagingMinWindowBufferSize": -1,
"pagingIoBufferSize": -1,
"messagesMaximum": -1,
"consumptionPausedAtStartup": "default",
"pagingDirectory": null,
"storeEnabled": true,
"persistentStore": null,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a new global JMS server and hook it up to the cluster and file store
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:            'JMSServer1',
messagesMaximum: 10000,
bytesMaximum:    10000000,
targets:         [ { identity: [ 'clusters', 'Cluster1' ] } ],
persistentStore: [ 'fileStores', 'FileStore1' ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSServers

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JMSServers/JMSServer1

Response Body:
{}

----------------------------------------------------------------------
View the default values for a new global JMS system resource
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResourceCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"compatibilityName": null,
"deploymentOrder": 100,
"tags": null,
"targets": [],
"name": null,
"descriptorFileName": null
}

----------------------------------------------------------------------
Create a new global JMS system resource and hook it up to the cluster
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:    'JMSSystemResource1',
targets: [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeploymentCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"moduleType": null,
"compatibilityName": null,
"untargeted": false,
"tags": null,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a new JMS subdeployment and hook it up to the JMS server
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:    'JMSSubDeployment1',
targets: [ { identity: [ 'JMSServers', 'JMSServer1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeployments

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/subDeployments/JMSSubDeployment1

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactoryCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"JNDIName": null,
"defaultTargetingEnabled": false,
"localJNDIName": null,
"name": null
}

----------------------------------------------------------------------
Create a new JMS connection factory and hook it up to the JMS subdeployment
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:              'ConnectionFactory1',
subDeploymentName: 'JMSSubDeployment1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactories

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactories/ConnectionFactory1

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueueCreateForm?links=none

HTTP/1.1 200 OK

Response Body:
{
"notes": null,
"JNDIName": null,
"unitOfOrderRouting": "Hash",
"resetDeliveryCountOnForward": true,
"defaultUnitOfOrder": false,
"defaultTargetingEnabled": false,
"incompleteWorkExpirationTime": -1,
"loadBalancingPolicy": "Round-Robin",
"forwardDelay": -1,
"JMSCreateDestinationIdentifier": null,
"localJNDIName": null,
"template": null,
"quota": null,
"name": null
}

----------------------------------------------------------------------
Create a new JMS uniform distributed queue and hook it up to the JMS subdeployment
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:              'UniformDistributedQueue1',
subDeploymentName: 'JMSSubDeployment1'
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueues

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueues/UniformDistributedQueue1

Response Body:
{}

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

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

HTTP/1.1 200 OK

Response Body:
{}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/fileStores?links=none

HTTP/1.1 200 OK

Response Body:
{"items": [{
"identity": [
"fileStores",
"FileStore1"
],
"notes": null,
"fileLockingEnabled": true,
"distributionPolicy": "Distributed",
"partialClusterStabilityDelaySeconds": -1,
"deploymentOrder": 1000,
"type": "FileStore",
"directory": null,
"initialBootDelaySeconds": -1,
"ioBufferSize": -1,
"minWindowBufferSize": -1,
"failbackDelaySeconds": -1,
"cacheDirectory": null,
"id": 0,
"dynamicallyCreated": false,
"XAResourceName": null,
"numberOfRestartAttempts": 6,
"initialSize": 0,
"logicalName": null,
"maxFileSize": 1342177280,
"synchronousWritePolicy": "Direct-Write",
"blockSize": -1,
"tags": [],
"maxWindowBufferSize": -1,
"name": "FileStore1",
"migrationPolicy": "Off",
"secondsBetweenRestarts": 30,
"restartInPlace": true,
"targets": [{"identity": [
"clusters",
"Cluster1"
]}]
}]}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/JMSServers?links=none

HTTP/1.1 200 OK

Response Body:
{"items": [{
"identity": [
"JMSServers",
"JMSServer1"
],
"messagesThresholdHigh": -1,
"hostingTemporaryDestinations": true,
"temporaryTemplateName": null,
"notes": null,
"maximumMessageSize": 2147483647,
"allowsPersistentDowngrade": false,
"storeMessageCompressionEnabled": false,
"deploymentOrder": 1000,
"type": "JMSServer",
"pagingMessageCompressionEnabled": false,
"messageBufferSize": -1,
"expirationScanInterval": 30,
"bytesThresholdLow": -1,
"messagesThresholdLow": -1,
"blockingSendPolicy": "FIFO",
"id": 0,
"dynamicallyCreated": false,
"pagingBlockSize": -1,
"insertionPausedAtStartup": "default",
"pagingMaxWindowBufferSize": -1,
"bytesThresholdHigh": -1,
"pagingMaxFileSize": 1342177280,
"productionPausedAtStartup": "default",
"pagingFileLockingEnabled": true,
"tags": [],
"bytesMaximum": 10000000,
"temporaryTemplateResource": null,
"messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
"pagingMinWindowBufferSize": -1,
"pagingIoBufferSize": -1,
"messagesMaximum": 10000,
"name": "JMSServer1",
"consumptionPausedAtStartup": "default",
"pagingDirectory": null,
"storeEnabled": true,
"persistentStore": [
"fileStores",
"FileStore1"
],
"targets": [{"identity": [
"clusters",
"Cluster1"
]}]
}]}

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

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

HTTP/1.1 200 OK

Response Body:
{"JMSSystemResources": {"items": [{
"identity": [
"JMSSystemResources",
"JMSSystemResource1"
],
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"descriptorFileName": "jms\/jmssystemresource1-jms.xml",
"name": "JMSSystemResource1",
"compatibilityName": null,
"id": 0,
"deploymentOrder": 100,
"dynamicallyCreated": false,
"type": "JMSSystemResource",
"sourcePath": ".\/config\/jms\/jmssystemresource1-jms.xml",
"tags": [],
"resource": [
"JMSSystemResources",
"JMSSystemResource1",
"JMSResource"
],
"targets": [{"identity": [
"clusters",
"Cluster1"
]}],
"subDeployments": {"items": [{
"identity": [
"JMSSystemResources",
"JMSSystemResource1",
"subDeployments",
"JMSSubDeployment1"
],
"notes": null,
"moduleType": null,
"name": "JMSSubDeployment1",
"compatibilityName": null,
"untargeted": false,
"id": 0,
"dynamicallyCreated": false,
"type": "SubDeployment",
"tags": [],
"targets": [{"identity": [
"JMSServers",
"JMSServer1"
]}]
}]},
"JMSResource": {"connectionFactories": {"items": [{
"identity": [
"JMSSystemResources",
"JMSSystemResource1",
"JMSResource",
"connectionFactories",
"ConnectionFactory1"
],
"notes": null,
"JNDIName": null,
"defaultTargetingEnabled": false,
"name": "ConnectionFactory1",
"subDeploymentName": "JMSSubDeployment1",
"id": 0,
"localJNDIName": null
}]}}
}]}}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
JMSRuntime: {
links: [], fields: [ 'name', 'healthState' ],
children: {
JMSServers: {
links: [], fields: [ 'name', 'healthState' ],
children: {
destinations: {
links: [], fields: [ 'name', 'state' ],
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1.jms",
"JMSServers": {"items": [{
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.JMSServer1@Cluster1Server1",
"partitionName": null,
"symptoms": []
},
"name": "JMSServer1@Cluster1Server1",
"destinations": {"items": [{
"state": "started",
"name": "JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1"
}]}
}]}
}
},
{
"name": "AdminServer",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer.jms",
"JMSServers": {"items": []}
}
},
{
"name": "Cluster1Server2",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2.jms",
"JMSServers": {"items": [{
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.JMSServer1@Cluster1Server2",
"partitionName": null,
"symptoms": []
},
"name": "JMSServer1@Cluster1Server2",
"destinations": {"items": [{
"state": "started",
"name": "JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1"
}]}
}]}
}
}
]}}

ドメイン・スコープ指定のアプリケーションのデプロイ

次のサンプル・スクリプトは、デプロイヤがどのようにドメイン指定のアプリケーションをデプロイするかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain deployer deploying apps
----------------------------------------------------------------------

----------------------------------------------------------------------
Synchronously deploy a domain-scoped server-side application to the cluster
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name:       'fairShare',
sourcePath: '/deployments/fairShare.war',
targets:    [ { identity: [ 'clusters', 'Cluster1' ] } ]
}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments

HTTP/1.1 201 Created

Location: http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553482475,
"deploymentMessages": [
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server1\".",
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server2\".",
"[Deployer:149192]Operation \"deploy\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
"[Deployer:149192]Operation \"deploy\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
],
"name": "fairShare",
"operationType": 3,
"startTimeAsLong": 1443553477448,
"state": "STATE_COMPLETED",
"id": "0",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:04:37.448-04",
"endTime": "2015-09-29T15:04:42.475-04"
}

----------------------------------------------------------------------
Asynchronously upload a domain-scoped application from the client and deploy it to the cluster
----------------------------------------------------------------------

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:multipart/form-data \
-F "model={
name:    'basicapp',
targets: [ { identity: [ 'clusters' , 'Cluster1' ] } ]
}" \
-F "sourcePath=@/deployments/BasicApp/app/BasicApp.ear" \
-F "planPath=@/deployments/BasicApp/plan/Plan.xml" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments

HTTP/1.1 100 Continue HTTP/1.1 202 Accepted

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

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/basicapp"
}],
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"deploymentMessages": [],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1443553483250,
"state": "STATE_RUNNING",
"id": "1",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:04:43.250-04"
}

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

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

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"deploymentMessages": [],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1443553483250,
"state": "STATE_RUNNING",
"id": "1",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:04:43.250-04"
}

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

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

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"endTimeAsLong": 1443553486019,
"deploymentMessages": [
"[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\".",
"[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server2\".",
"[Deployer:149192]Operation \"deploy\" on application \"basicapp\" is in progress on \"Cluster1Server1\".",
"[Deployer:149192]Operation \"deploy\" on application \"basicapp\" is in progress on \"Cluster1Server2\".",
"[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server2\"."
],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1443553483250,
"state": "STATE_COMPLETED",
"id": "1",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:04:43.250-04",
"endTime": "2015-09-29T15:04:46.019-04"
}

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"appDeployments",
"fairShare"
],
"stagingMode": null,
"absoluteSourcePath": "\/deployments\/fairShare.war",
"notes": null,
"absoluteAltDescriptorPath": null,
"deploymentOrder": 100,
"type": "AppDeployment",
"installDir": null,
"id": 0,
"altDescriptorDir": null,
"dynamicallyCreated": false,
"sourcePath": "\/deployments\/fairShare.war",
"applicationName": "fairShare",
"absoluteAltDescriptorDir": null,
"moduleType": "war",
"planStagingMode": null,
"cacheInAppDirectory": false,
"absoluteInstallDir": null,
"compatibilityName": null,
"absolutePlanPath": null,
"untargeted": false,
"planDir": null,
"validateDDSecurityData": false,
"applicationIdentifier": "fairShare",
"tags": [],
"planPath": null,
"versionIdentifier": null,
"deploymentPrincipalName": null,
"absolutePlanDir": null,
"name": "fairShare",
"parallelDeployModules": false,
"securityDDModel": "DDOnly",
"targets": [{"identity": [
"clusters",
"Cluster1"
]}]
}

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/edit/appDeployments/basicapp?links=none

HTTP/1.1 200 OK

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

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

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

HTTP/1.1 200 OK

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

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

HTTP/1.1 200 OK

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

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

curl -v \
--user deployer:deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [],
name: [ 'fairShare', 'basicapp' ]
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"applicationRuntimes": {"items": [
{
"identity": [
"applicationRuntimes",
"fairShare"
],
"applicationVersion": null,
"internal": false,
"partitionName": null,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "fairShare"
},
{
"identity": [
"applicationRuntimes",
"basicapp"
],
"applicationVersion": null,
"internal": false,
"partitionName": null,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "basicapp"
}
]}
},
{
"name": "AdminServer",
"applicationRuntimes": {"items": []}
},
{
"name": "Cluster1Server2",
"applicationRuntimes": {"items": [
{
"identity": [
"applicationRuntimes",
"fairShare"
],
"applicationVersion": null,
"internal": false,
"partitionName": null,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "fairShare"
},
{
"identity": [
"applicationRuntimes",
"basicapp"
],
"applicationVersion": null,
"internal": false,
"partitionName": null,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "basicapp"
}
]}
}
]}}

ドメイン・リソースの監視

次のサンプル・スクリプトは、オペレータがどのようにドメイン全体(パーティションを含む)およびリソース・マネージャを監視するかを示します。リソース・マネージャは、同じ場所にあるパーティション・ユーザーによってシステム・リソース共有を監視および制御します。リソース管理の詳細は、『WebLogic Server MTの使用』の、リソース消費管理の構成に関する項を参照してください。

サンプル・スクリプトは、データ・ソースとJMSを監視する方法も示しています。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain monitor monitoring the domain
----------------------------------------------------------------------

----------------------------------------------------------------------
Monitor the servers
----------------------------------------------------------------------

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,overallHealthState,healthState,state,openSocketsCurrentCount,activationTime

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"openSocketsCurrentCount": 5,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1",
"state": "RUNNING",
"activationTime": 1443553412625
},
{
"openSocketsCurrentCount": 17,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer",
"state": "RUNNING",
"activationTime": 1443553352628
},
{
"openSocketsCurrentCount": 5,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2",
"state": "RUNNING",
"activationTime": 1443553439201
}
]}

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

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name', 'state', 'overallHealthState', 'subsystemHealthStates' ]
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp(Adapter)",
"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(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp$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": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"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": "jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$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-notran-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "Cluster1Server2.jms",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server2.saf",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp$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": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
}
]}}

----------------------------------------------------------------------
Monitor the JDBC system resources
----------------------------------------------------------------------

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCServiceRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
}
},
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCPartitionRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JDBCPartitionRuntime",
"JDBCDataSourceRuntimeMBeans",
"Partition1JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 0,
"reserveRequestCount": 0,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 8,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
}]},
"JDBCServiceRuntime": {
"name": "Cluster1Server1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"JDBCServiceRuntime",
"JDBCDataSourceRuntimeMBeans",
"JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 0,
"reserveRequestCount": 0,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 1191,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": null
}]},
"JDBCServiceRuntime": {
"name": "AdminServer",
"JDBCDataSourceRuntimeMBeans": {"items": []}
}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JDBCPartitionRuntime",
"JDBCDataSourceRuntimeMBeans",
"Partition1JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 0,
"reserveRequestCount": 0,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 19,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
}]},
"JDBCServiceRuntime": {
"name": "Cluster1Server2",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"JDBCServiceRuntime",
"JDBCDataSourceRuntimeMBeans",
"JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 0,
"reserveRequestCount": 0,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 1163,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
}
]}}

----------------------------------------------------------------------
Test a domain level data source
----------------------------------------------------------------------

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Cluster1Server2/JDBCServiceRuntime/JDBCDataSourceRuntimeMBeans/JDBCDataSource1/testPool

HTTP/1.1 200 OK

Response Body:
{"return": null}

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

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/Cluster1Server2/partitionRuntimes/Partition1/JDBCPartitionRuntime/JDBCDataSourceRuntimeMBeans/Partition1JDBCDataSource1/testPool

HTTP/1.1 200 OK

Response Body:
{"return": null}

----------------------------------------------------------------------
Monitor the JMS system resources
----------------------------------------------------------------------

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
JMSRuntime: {
links: [],
children: {
JMSServers: {
links: [],
children: {
destinations: {
links: [],
}
}
}
}
},
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JMSRuntime: {
links: [],
children: {
JMSServers: {
links: [],
children: {
destinations: {
links: [],
}
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "Partition1JMSServer1@Cluster1Server1",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server1",
"destinations",
"Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
}]},
"JMSRuntime": {
"identity": ["JMSRuntime"],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"JMSServers",
"JMSServer1@Cluster1Server1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.JMSServer1@Cluster1Server1",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "JMSServer1@Cluster1Server1",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"JMSServers",
"JMSServer1@Cluster1Server1",
"destinations",
"JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "JMSSystemResource1!JMSServer1@Cluster1Server1@UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 0,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer.jms",
"JMSServersCurrentCount": 0,
"type": "JMSRuntime",
"JMSServersTotalCount": 0,
"connectionsCurrentCount": 0,
"JMSServers": {"items": []}
}
}]},
"JMSRuntime": {
"identity": ["JMSRuntime"],
"JMSServersHighCount": 0,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer.jms",
"JMSServersCurrentCount": 0,
"type": "JMSRuntime",
"JMSServersTotalCount": 0,
"connectionsCurrentCount": 0,
"JMSServers": {"items": []}
}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server2"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "Partition1JMSServer1@Cluster1Server2",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server2",
"destinations",
"Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
}]},
"JMSRuntime": {
"identity": ["JMSRuntime"],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"JMSServers",
"JMSServer1@Cluster1Server2"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.JMSServer1@Cluster1Server2",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "JMSServer1@Cluster1Server2",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"JMSServers",
"JMSServer1@Cluster1Server2",
"destinations",
"JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "JMSSystemResource1!JMSServer1@Cluster1Server2@UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
}
]}}

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

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
},
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"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": "Partition1JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp"
}
]}
}]},
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_deployment_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_cluster_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "JMSSystemResource1"
},
{
"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-notran-adp"
}
]}
},
{
"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": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
}
]}
}]},
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_deployment_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_management_internal2"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "mejb"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
}
]}
},
{
"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"
},
{
"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": "basicapp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSSystemResource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
}
]}
}]},
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_deployment_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_cluster_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "JMSSystemResource1"
}
]}
}
]}}

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

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name' ],
name: [ 'fairShare', 'basicapp' ],
children: {
componentRuntimes: {
links: [], fields: [ 'name', 'type' ],
children: {
servlets: {
links: [],
fields: [
'name',
'executionTimeHigh',
'executionTimeLow',
'executionTimeAverage',
'invocationTotalCount'
]
}
}
}
}
},
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name' ],
name: [ 'fairShare', 'basicapp' ],
children: {
componentRuntimes: {
links: [], fields: [ 'name', 'type' ],
children: {
servlets: {
links: [],
fields: [
'name',
'executionTimeHigh',
'executionTimeLow',
'executionTimeAverage',
'invocationTotalCount'
]
}
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 100 Continue HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
}]},
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Cluster1Server1_\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Cluster1Server1_\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": []}
}]},
"applicationRuntimes": {"items": []}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
}]},
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Cluster1Server2_\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Cluster1Server2_\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
}
]}}

----------------------------------------------------------------------
Monitor the resource managers
----------------------------------------------------------------------

curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
resourceManagerRuntime: {
links: [],
children: {
resourceRuntimes: {
links: [],
children: {
triggerRuntimes: { links: [] },
fairShareConstraintRuntime:  { links: [] }
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/search

HTTP/1.1 200 OK

Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"resourceManagerRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime"
],
"name": "Partition1ResourceManager",
"type": "ResourceManagerRuntime",
"resourceRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen"
],
"usage": 2,
"name": "FileOpen",
"type": "ResourceRuntime",
"resourceType": "file-open",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.153-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.156-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.342-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.342-04",
"action": "notify",
"active": false,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:04:23.156-04",
"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": "2015-09-29T15:04:21.839-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:21.842-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:22.109-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:22.110-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:06.114-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:06.115-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:06.217-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:06.217-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:11.232-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:11.233-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:11.338-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:11.338-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:13.516-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:13.517-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:13.609-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:13.610-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:32.345-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:32.345-04",
"action": "notify",
"active": true,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:05:32.345-04",
"type": "TriggerRuntime",
"activated": true
}]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization"
],
"usage": 6,
"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": 15,
"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": [
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.139-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.142-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.338-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.338-04",
"action": "notify",
"active": false,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:04:23.142-04",
"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": 8,
"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
}
]}
}
}]}
}
]}}

ドメイン・スコープ指定のアプリケーションの起動と停止

次のサンプル・スクリプトは、オペレータがドメイン指定のアプリケーションをどのように起動および停止するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping a domain scoped app
----------------------------------------------------------------------

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

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

HTTP/1.1 200 OK

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

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

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

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553547947,
"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": 1443553547824,
"state": "STATE_COMPLETED",
"id": "4",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:47.824-04",
"endTime": "2015-09-29T15:05:47.947-04"
}

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

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

HTTP/1.1 200 OK

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

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

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

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553548598,
"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": 1443553548436,
"state": "STATE_COMPLETED",
"id": "5",
"type": "DeploymentProgressObject",
"targets": ["Cluster1"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:48.436-04",
"endTime": "2015-09-29T15:05:48.598-04"
}

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

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

HTTP/1.1 200 OK

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

パーティションの起動と停止

次のサンプル・スクリプトは、オペレータがパーティションをどのように起動および停止するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping a partition
----------------------------------------------------------------------

----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{
"name": "Partition1",
"state": "RUNNING"
}

----------------------------------------------------------------------
Synchronously gracefully shut down the partition
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
timeout: 10, ignoreSessions: true
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/shutdown

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_8_SHUTDOWN"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_8_SHUTDOWN"
],
"running": false,
"partitionName": "Partition1",
"systemTask": false,
"endTimeAsLong": 1443553557019,
"name": "_8_SHUTDOWN",
"progress": "success",
"description": "Shutting down Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553551169,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "SHUTDOWN",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:51.169-04",
"endTime": "2015-09-29T15:05:57.019-04"
}

----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{
"name": "Partition1",
"state": "SHUTDOWN"
}

----------------------------------------------------------------------
Synchronously start the partition
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_12_START"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_12_START"
],
"running": false,
"partitionName": "Partition1",
"systemTask": false,
"endTimeAsLong": 1443553560870,
"name": "_12_START",
"progress": "success",
"description": "Starting Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553558326,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "START",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:58.326-04",
"endTime": "2015-09-29T15:06:00.870-04"
}

----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{
"name": "Partition1",
"state": "RUNNING"
}

----------------------------------------------------------------------
Asynchronously force shutdown the partition
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/forceShutdown

HTTP/1.1 202 Accepted

Location: http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_16_FORCE_SHUTDOWN"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_16_FORCE_SHUTDOWN"
],
"running": true,
"partitionName": "Partition1",
"systemTask": false,
"name": "_16_FORCE_SHUTDOWN",
"progress": "processing",
"description": "Force Shutting down Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553562545,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "FORCE_SHUTDOWN",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:02.545-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_16_FORCE_SHUTDOWN?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_16_FORCE_SHUTDOWN"
],
"running": false,
"partitionName": "Partition1",
"systemTask": false,
"endTimeAsLong": 1443553562926,
"name": "_16_FORCE_SHUTDOWN",
"progress": "success",
"description": "Force Shutting down Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553562545,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "FORCE_SHUTDOWN",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:02.545-04",
"endTime": "2015-09-29T15:06:02.926-04"
}

----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{
"name": "Partition1",
"state": "SHUTDOWN"
}

----------------------------------------------------------------------
Asynchronously start the partition
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/start

HTTP/1.1 202 Accepted

Location: http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/partitionLifeCycleRuntime\/tasks\/_20_START"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_20_START"
],
"running": true,
"partitionName": "Partition1",
"systemTask": false,
"name": "_20_START",
"progress": "processing",
"description": "Starting Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553566386,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "START",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:06.386-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_20_START"
],
"running": true,
"partitionName": "Partition1",
"systemTask": false,
"name": "_20_START",
"progress": "processing",
"description": "Starting Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553566386,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "START",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:06.386-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime/tasks/_20_START?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"partitionLifeCycleRuntime",
"tasks",
"_20_START"
],
"running": false,
"partitionName": "Partition1",
"systemTask": false,
"endTimeAsLong": 1443553568749,
"name": "_20_START",
"progress": "success",
"description": "Starting Partition1 ...",
"taskError": null,
"startTimeAsLong": 1443553566386,
"type": "PartitionLifeCycleTaskRuntime",
"operation": "START",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:06.386-04",
"endTime": "2015-09-29T15:06:08.749-04"
}

----------------------------------------------------------------------
View the partition's state
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/partitionLifeCycleRuntime?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{
"name": "Partition1",
"state": "RUNNING"
}

サーバーの起動と停止

次のサンプル・スクリプトは、オペレータがサーバーをどのように起動および停止するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
Demonstrate a domain operator starting and stopping servers
----------------------------------------------------------------------

----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"name": "Cluster1Server1",
"state": "RUNNING"
},
{
"name": "AdminServer",
"state": "RUNNING"
},
{
"name": "Cluster1Server2",
"state": "RUNNING"
}
]}

----------------------------------------------------------------------
Synchronously shutdown a server
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
timeout: 10, ignoreSessions: true
}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/shutdown

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_2_shutdown"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server1",
"tasks",
"_2_shutdown"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553592717,
"name": "_2_shutdown",
"progress": "success",
"description": "Shutting down Cluster1Server1 server ...",
"serverName": "Cluster1Server1",
"taskError": null,
"startTimeAsLong": 1443553585840,
"type": "ServerLifeCycleTaskRuntime",
"operation": "shutdown",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:25.840-04",
"endTime": "2015-09-29T15:06:32.717-04"
}

----------------------------------------------------------------------
Asynchronously force shutdown a server
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/forceShutdown

HTTP/1.1 202 Accepted

Location: http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_3_forceShutdown"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_3_forceShutdown"
],
"running": true,
"systemTask": false,
"name": "_3_forceShutdown",
"progress": "processing",
"description": "Forcefully shutting down Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553593418,
"type": "ServerLifeCycleTaskRuntime",
"operation": "forceShutdown",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:33.418-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_3_forceShutdown"
],
"running": true,
"systemTask": false,
"name": "_3_forceShutdown",
"progress": "processing",
"description": "Forcefully shutting down Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553593418,
"type": "ServerLifeCycleTaskRuntime",
"operation": "forceShutdown",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:33.418-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_3_forceShutdown?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_3_forceShutdown"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553599753,
"name": "_3_forceShutdown",
"progress": "success",
"description": "Forcefully shutting down Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553593418,
"type": "ServerLifeCycleTaskRuntime",
"operation": "forceShutdown",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:33.418-04",
"endTime": "2015-09-29T15:06:39.753-04"
}

----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"name": "Cluster1Server1",
"state": "SHUTDOWN"
},
{
"name": "AdminServer",
"state": "RUNNING"
},
{
"name": "Cluster1Server2",
"state": "SHUTDOWN"
}
]}

----------------------------------------------------------------------
Synchronously start a server
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server1/start

HTTP/1.1 200 OK

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server1\/tasks\/_4_start"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server1",
"tasks",
"_4_start"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553645937,
"name": "_4_start",
"progress": "success",
"description": "Starting Cluster1Server1 server ...",
"serverName": "Cluster1Server1",
"taskError": null,
"startTimeAsLong": 1443553612344,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:06:52.344-04",
"endTime": "2015-09-29T15:07:25.937-04"
}

----------------------------------------------------------------------
Asynchronously start a server
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/start

HTTP/1.1 202 Accepted

Location: http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/management\/weblogic\/latest\/domainRuntime\/serverLifeCycleRuntimes\/Cluster1Server2\/tasks\/_5_start"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_5_start"
],
"running": true,
"systemTask": false,
"name": "_5_start",
"progress": "processing",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553649390,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:07:29.390-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_5_start"
],
"running": true,
"systemTask": false,
"name": "_5_start",
"progress": "processing",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553649390,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:07:29.390-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_5_start"
],
"running": true,
"systemTask": false,
"name": "_5_start",
"progress": "processing",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553649390,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:07:29.390-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_5_start"
],
"running": true,
"systemTask": false,
"name": "_5_start",
"progress": "processing",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553649390,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK IN PROGRESS",
"parentTask": null,
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:07:29.390-04"
}

----------------------------------------------------------------------
Get status for job domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster1Server2/tasks/_5_start?links=none

HTTP/1.1 200 OK

Response Body:
{
"identity": [
"serverLifeCycleRuntimes",
"Cluster1Server2",
"tasks",
"_5_start"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1443553680969,
"name": "_5_start",
"progress": "success",
"description": "Starting Cluster1Server2 server ...",
"serverName": "Cluster1Server2",
"taskError": null,
"startTimeAsLong": 1443553649390,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:07:29.390-04",
"endTime": "2015-09-29T15:08:00.969-04"
}

----------------------------------------------------------------------
View the servers' states
----------------------------------------------------------------------

curl -v \
--user operator:operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes?links=none&fields=name,state

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"name": "Cluster1Server1",
"state": "RUNNING"
},
{
"name": "AdminServer",
"state": "RUNNING"
},
{
"name": "Cluster1Server2",
"state": "RUNNING"
}
]}

5 パーティション固有のREST APIの例

この章では、パーティション・レベル・ロールにあるユーザーが、WebLogic Server REST APIsを使用して、一般的なパーティションの管理および監視タスクを実行するためのサンプル・スクリプトを示します。詳細は、「RESTリソースへのアクセス」を参照してください。

ここでのトピック

- パーティション指定のシステム・リソースの作成

- パーティション指定のアプリケーションのデプロイ

- パーティション・リソースの監視

- パーティション指定のアプリケーションの起動および停止

パーティション指定のシステム・リソースの作成

次のサンプル・スクリプトは、デプロイヤがどのようにパーティション指定のデータ・ソースとJMSシステム・リソースを作成するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
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/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/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources?saveChanges=false

HTTP/1.1 201 Created

Location: http://localhost:7001/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/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/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/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties

HTTP/1.1 201 Created

Location: http://localhost:7001/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/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/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/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/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/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/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/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/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/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": -1,
"deploymentOrder": 1000,
"directory": null,
"initialBootDelaySeconds": -1,
"ioBufferSize": -1,
"minWindowBufferSize": -1,
"failbackDelaySeconds": -1,
"cacheDirectory": null,
"numberOfRestartAttempts": 6,
"initialSize": 0,
"logicalName": null,
"maxFileSize": 1342177280,
"synchronousWritePolicy": "Direct-Write",
"blockSize": -1,
"tags": null,
"maxWindowBufferSize": -1,
"migrationPolicy": "Off",
"secondsBetweenRestarts": 30,
"restartInPlace": true,
"targets": [],
"name": null
}

----------------------------------------------------------------------
Create a new 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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores

HTTP/1.1 201 Created

Location: http://localhost:7001/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/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers

HTTP/1.1 201 Created

Location: http://localhost:7001/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/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources

HTTP/1.1 201 Created

Location: http://localhost:7001/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/JMSSystemResource1/subDeploymentCreateForm?links=none

HTTP/1.1 404 Not Found

Response Body:
{
"status": 404,
"type": "http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.4.1",
"title": "FAILURE",
"detail": "'JMSSystemResource1' was not found."
}

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeployments

HTTP/1.1 201 Created

Location: http://localhost:7001/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/JMSSystemResource1/JMSResource/connectionFactoryCreateForm?links=none

HTTP/1.1 404 Not Found

Response Body:
{
"status": 404,
"type": "http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.4.1",
"title": "FAILURE",
"detail": "'JMSSystemResource1' was not found."
}

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactories

HTTP/1.1 201 Created

Location: http://localhost:7001/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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/JMSSystemResource1/JMSResource/uniformDistributedQueueCreateForm?links=none

HTTP/1.1 404 Not Found

Response Body:
{
"status": 404,
"type": "http:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html#sec10.4.1",
"title": "FAILURE",
"detail": "'JMSSystemResource1' was not found."
}

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueues

HTTP/1.1 201 Created

Location: http://localhost:7001/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/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/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": -1,
"deploymentOrder": 1000,
"type": "FileStore",
"directory": null,
"initialBootDelaySeconds": -1,
"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": true,
"targets": []
}]}

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

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/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/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
}]}}
}]}
},
{
"name": "Partition1AdminResourceGroup",
"JMSSystemResources": {"items": []}
}
]}
}]}}

----------------------------------------------------------------------
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/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"
}]}
}]}
}
}]}
}
]}}

パーティション指定のアプリケーションのデプロイ

次のサンプル・スクリプトは、デプロイヤがどのようにパーティション指定のアプリケーションをデプロイするかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments

HTTP/1.1 202 Accepted

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

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/basicapp"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"deploymentMessages": [],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1443553513512,
"state": "STATE_RUNNING",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:13.512-04"
}

----------------------------------------------------------------------
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/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": 1443553513512,
"state": "STATE_RUNNING",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:13.512-04"
}

----------------------------------------------------------------------
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/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": 1443553515503,
"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": 1443553513512,
"state": "STATE_COMPLETED",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:13.512-04",
"endTime": "2015-09-29T15:05:15.503-04"
}

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments

HTTP/1.1 100 Continue HTTP/1.1 201 Created

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

Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553538672,
"deploymentMessages": [
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server1\".",
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server2\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
],
"name": "fairShare",
"operationType": 3,
"startTimeAsLong": 1443553532675,
"state": "STATE_COMPLETED",
"id": "weblogic.deploy.configChangeTask.5",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:32.675-04",
"endTime": "2015-09-29T15:05:38.672-04"
}

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

curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/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/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/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/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/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"
}
]}
}]}
}
]}}

パーティション・リソースの監視

次のサンプル・スクリプトは、モニターがサーバー、パーティション、アプリケーション、JMS、およびパーティション内のデータ・ソースをどのように監視するかを示します(リソース・マネージャの監視を含む)。リソース管理の詳細は、『WebLogic Server MTの使用』の、リソース消費管理の構成に関する項を参照してください。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/domainRuntime/serverRuntimes?links=none

HTTP/1.1 200 OK

Response Body:
{"items": [
{
"identity": [],
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.2.0.0 Tue Sep 29 01:23:35 PDT 2015 1717256",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"name": "Cluster1Server1",
"defaultURL": "t3:\/\/localhost:7101",
"adminServerListenPort": 7001
},
{
"identity": [],
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.2.0.0 Tue Sep 29 01:23:35 PDT 2015 1717256",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"name": "AdminServer",
"defaultURL": "t3:\/\/localhost:7001",
"adminServerListenPort": 7001
},
{
"identity": [],
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.2.0.0 Tue Sep 29 01:23:35 PDT 2015 1717256",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"name": "Cluster1Server2",
"defaultURL": "t3:\/\/localhost:7102",
"adminServerListenPort": 7001
}
]}

----------------------------------------------------------------------
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/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(Adapter)",
"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(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp$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": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"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": "jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$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-notran-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "Cluster1Server2.jms",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server2.saf",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp$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": []
},
{
"state": "ok",
"subsystemName": "wls-management-services$Partition1(Application)",
"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/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,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 8,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 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,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 19,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"numUnavailable": 0,
"activeConnectionsAverageCount": 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/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/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",
"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",
"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/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": "jms-internal-xa-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSSystemResource1"
},
{
"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": "basicapp"
}
]}
}]}
},
{
"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": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp"
}
]}
}]}
},
{
"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"
},
{
"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": "basicapp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSSystemResource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp"
}
]}
}]}
}
]}}

----------------------------------------------------------------------
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/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"
}
]}
}
]}
}]}
}
]}}

----------------------------------------------------------------------
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/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": [
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.153-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.156-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.342-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.342-04",
"action": "notify",
"active": false,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:04:23.156-04",
"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": "2015-09-29T15:04:21.839-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:21.842-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:22.109-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:22.110-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:06.114-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:06.115-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:06.217-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:06.217-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:11.232-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:11.233-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:11.338-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:11.338-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:13.516-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:13.517-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:05:13.609-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:05:13.610-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:05:32.345-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:05:32.345-04",
"action": "notify",
"active": true,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:05:32.345-04",
"type": "TriggerRuntime",
"activated": true
}]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization"
],
"usage": 6,
"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": 17,
"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": [
{
"initiated": true,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.139-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2015-09-29T15:04:23.142-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.338-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2015-09-29T15:04:23.338-04",
"action": "notify",
"active": false,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2015-09-29T15:04:23.142-04",
"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": 8,
"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
}
]}
}
}]}
}
]}}

パーティション指定のアプリケーションの起動および停止

次のサンプル・スクリプトは、オペレータがパーティション指定のアプリケーションをどのように起動および停止するかを示します。

注意:
長いURLを表示するには、セクションの下にあるスクロール・バーを使用します。

----------------------------------------------------------------------
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/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/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\/partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553549679,
"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": 1443553549614,
"state": "STATE_COMPLETED",
"id": "6",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:49.614-04",
"endTime": "2015-09-29T15:05:49.679-04"
}

----------------------------------------------------------------------
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/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/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\/partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1443553550292,
"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": 1443553550143,
"state": "STATE_COMPLETED",
"id": "7",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2015-09-29T15:05:50.143-04",
"endTime": "2015-09-29T15:05:50.292-04"
}

----------------------------------------------------------------------
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/partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState

HTTP/1.1 200 OK

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

オラクルの法律上の注意点について

コピーライトについて

Copyright © 1994-2016, Oracle and/or its affiliates.All rights reserved.

ライセンス制約の保証と結果的に生じる損害の免責

このソフトウェアおよび関連ドキュメントの使用と開示は、ライセンス契約の制約条件に従うものとし、知的財産に関する法律により保護されています。ライセンス契約で明示的に許諾されている場合もしくは法律によって認められている場合を除き、形式、手段に関係なく、いかなる部分も使用、複写、複製、翻訳、放送、修正、ライセンス供与、送信、配布、発表、実行、公開または表示することはできません。このソフトウェアのリバース・エンジニアリング、逆アセンブル、逆コンパイルは互換性のために法律によって規定されている場合を除き、禁止されています。

保証免責

ここに記載された情報は予告なしに変更される場合があります。また、誤りが無いことの保証はいたしかねます。誤りを見つけた場合は、オラクルまでご連絡ください。

制限付権利について

このソフトウェアまたは関連ドキュメントを、米国政府機関もしくは米国政府機関に代わってこのソフトウェアまたは関連ドキュメントをライセンスされた者に提供する場合は、次の通知が適用されます。

U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.No other rights are granted to the U.S. Government.

危険な用途への使用について

このソフトウェアまたはハードウェアは様々な情報管理アプリケーションでの一般的な使用のために開発されたものです。このソフトウェアまたはハードウェアは、危険が伴うアプリケーション(人的傷害を発生させる可能性があるアプリケーションを含む)への用途を目的として開発されていません。このソフトウェアまたはハードウェアを危険が伴うアプリケーションで使用する際、安全に使用するために、適切な安全装置、バックアップ、冗長性(redundancy)、その他の対策を講じることは使用者の責任となります。このソフトウェアまたはハードウェアを危険が伴うアプリケーションで使用したことに起因して損害が発生しても、Oracle Corporationおよびその関連会社は一切の責任を負いかねます。

商標と登録商標について

OracleおよびJavaはオラクルおよびその関連会社の登録商標です。その他の社名、商品名等は各社の商標または登録商標である場合があります。

Intel、Intel Xeonは、Intel Corporationの商標または登録商標です。すべてのSPARCの商標はライセンスをもとに使用し、SPARC International, Inc.の商標または登録商標です。AMD、Opteron、AMDロゴ、AMD Opteronロゴは、Advanced Micro Devices, Inc.の商標または登録商標です。UNIXは、The Open Groupの登録商標です。

第三者のコンテンツ、製品、サービスに対する免責事項

このソフトウェアまたはハードウェア、そしてドキュメントは、第三者のコンテンツ、製品、サービスへのアクセス、あるいはそれらに関する情報を提供することがあります。適用されるお客様とOracle Corporationとの間の契約に別段の定めがある場合を除いて、Oracle Corporationおよびその関連会社は、第三者のコンテンツ、製品、サービスに関して一切の責任を負わず、いかなる保証もいたしません。適用されるお客様とOracle Corporationとの間の契約に定めがある場合を除いて、Oracle Corporationおよびその関連会社は、第三者のコンテンツ、製品、サービスへのアクセスまたは使用によって損失、費用、あるいは損害が発生しても一切の責任を負いかねます。

アルファ版およびベータ版ドラフト・ドキュメントについて

このドキュメントが試作版の場合:

このドキュメントは試作版であり、デモおよび暫定使用のみを目的としたものです。このソフトウェアを使用するハードウェアに限定するものではありません。Oracle Corporationおよびその関連会社は、このドキュメントに関して一切の責任を負わず、いかなる保証もいたしません。また、このドキュメントを使用したことによって損失、費用、あるいは損害が発生しても、一切の責任を負いかねます。

非公開のアルファ版およびベータ版ドラフト・ドキュメントについて

このドキュメントが非公開の試作版の場合:

このドキュメントに含まれる情報は、情報の共有のみを目的としたものであって、顧客諮問委員会(Customer Advisory Board)のメンバーとしてのお客様の立場でのみ、またはお客様のベータ・トライアル契約のみに従って検討されるべきものとします。マテリアル、コード、または機能の提供をお約束するものではなく、購入決定を行う際の判断材料とすべきではありません。このドキュメントに記載されている特徴または機能の開発、リリースおよび時期については、オラクルの裁量により決定されます。

このドキュメントには、ソフトウェアまたは印刷物などの形式を問わず、オラクルが独占的な権利を有する財産的情報が含まれています。この機密資料へのアクセスと使用は、お客様とオラクルとの間で締結され、お客様が遵守に同意した、Oracle Master Agreement、Oracle License and Oracle Services Agreement (オラクル・ライセンスおよびサービスに関する契約書)、Oracle PartnerNetwork Agreement、Oracle Distribution Agreementまたはその他のライセンス契約の条件に従うものとします。このドキュメントとその内容の開示、コピー、複製および配布には、オラクルによる事前の承諾を必要とします。このドキュメントはライセンス契約の一部となるものではなく、オラクルおよびその子会社や関連会社との契約を構成するものではありません。

ドキュメントのアクセシビリティについて

オラクルのアクセシビリティについての詳細情報は、Oracle Accessibility ProgramのWebサイトhttp://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc を参照してください。

Oracle Supportへのアクセス

サポートをご契約のお客様には、My Oracle Supportを通して電子支援サービスを提供しています。詳細情報はhttp://www.oracle.com/pls/topic/lookup?ctx=acc&id=infoか、聴覚に障害のあるお客様はhttp://www.oracle.com/pls/topic/lookup?ctx=acc&id=trsを参照してください。