| Oracle® Fusion Middleware Oracle WebLogic Server RESTful管理インタフェース・リファレンス 12c (12.2.1.1.0) E77245-01 |
|
![]() 前 |
![]() 次 |
このドキュメントでは、Oracle WebLogic Server RESTfulライフ・サイクル管理リソースについて説明します。
WLS RESTリファレンス・ドキュメントとその説明の一覧は、RESTful管理サービスによるOracle WebLogic Serverの管理を参照してください。
バージョン・リソースは、現在のWLSドメインでアクティブでありサポートされているライフサイクルRESTインタフェースのバージョンに関する情報を含みます。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、サポートされているこのRESTインタフェースの各バージョンに関する情報を返します。
レスポンス本文
返されるレスポンス本文には、サポートされているこのRESTインタフェースのバージョンのVersionエンティティのリストが含まれます。返される情報には、最新バージョンと、各バージョンがアクティブかどうかが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/lifecycle/12.2.1.0 rel=current
例
この例では、GETメソッドを使用して使用可能なバージョンをリストします。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/12.2.1.0"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/12.2.1.0"
}
],
"version": "12.2.1.0",
"isLatest": true,
"lifecycle": "active"
}],
"links": [
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/"
},
{
"rel": "current",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/12.2.1.0"
}
]
}
バージョン・リソースは、WLSドメインによってサポートされるライフサイクルRESTインタフェースの最新バージョンに関する情報を含みます。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、サポートされているこのRESTインタフェースのバージョンに関する情報を返します。
レスポンス本文
返されるレスポンス本文には、現在のWLSリリースでアクティブでありサポートされている最新のサポート対象のRESTライフサイクル・インタフェース・バージョンに関する情報を含むVersionエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/lifecycle/{version}/environmentCreateForm rel=environmentCreateForm
uri=/lifecycle/{version}/environments rel=environments
uri=/lifecycle/{version}/plugins rel=plugins
uri=/lifecycle/{version}/runtimeCreateForm rel=runtimeCreateForm
uri=/lifecycle/{version}/runtimes rel=runtimes
uri=/lifecycle/{version}/tenantCreateForm rel=tenantCreateForm
uri=/lifecycle/{version}/tenants rel=tenants
例
この例では、GETメソッドを使用してバージョンを記述します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"version": "12.2.1.0",
"isLatest": true,
"lifecycle": "active",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/"
},
{
"rel": "environmentCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environmentCreateForm"
},
{
"rel": "environments",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments"
},
{
"rel": "runtimeCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimeCreateForm"
},
{
"rel": "runtimes",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes"
},
{
"rel": "tenantCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenantCreateForm"
},
{
"rel": "tenants",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants"
},
{
"rel": "plugins",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins"
}
]
}
このリソースは、環境の作成に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、環境用の空のフォームを返します。
レスポンス本文
返されるレスポンス本文には、環境の作成時に指定する必要があるフィールドに関する情報を含むEnvironmentエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/environments rel=/environments
例
この例では、GETメソッドを使用して環境作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environmentCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environmentCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environmentCreateForm"
},
{
"rel": "environments",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments"
}
]
}
このリソースは、環境を管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、環境のリストを返します。
例
この例では、GETメソッドを使用して環境を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
}
],
"name": "sprite"
}],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environmentCreateForm"
}
]
}
POSTメソッドは、環境を作成します。
例
この例では、POSTメソッドを使用して空の環境を作成します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d "{ "name": "sprite" }" \
-X POST http://localhost:7001/management/lifecycle/latest/environments
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/environments/sprite
Response Body:
{}
この例では、POSTメソッドを使用してオーケストレーションに基づく環境を作成し、最初にパーティションが作成されてから環境に追加されるようにします。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name": "coke",
"orchestration": {"name": "orchestration1",
"args": [
{"name": "wls",
"properties": [
{"name": "partitionName", "value": "wlspartition1"},
{"name": "runtimeName", "value": "WLSTestRuntime"},
{"name": "partitionProperties",
"properties": [
{ "name" : "resourceGroups",
"properties" : [
{ "name" : "g1",
"properties" : [
{ "name" : "resourceGroupTemplate", "value" : "template1" },
{ "name" : "targets" , "value" : "VirtualHost-0"}]}]},
{"name" : "availableTargets" , "value" : "VirtualHost-0"}]
}]}]}}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/environments/sprite
Response Body:
{}
このリソースは、環境を管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別される環境に関する情報を返します。
例
この例では、GETメソッドを使用して特定の環境に関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments/sprite
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": "sprite",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
},
{
"rel": "partitionCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/test1\/partitionCreateForm"
},
{
"rel": "partitions",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/test1\/partitions"
},
{
"rel": "associatePartitions",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/test1\/associatePartitions"
}
]
}
このリソースは、2つの環境パーティションを相互に関連付けるために使用されます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、2つの環境パーティションを相互に関連付けます。
例
この例では、POSTメソッドを使用して2つのパーティションを相互に関連付けます。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{
"partition1Name": "SpritePartition",
"partition1RuntimeName": "WLSRuntime",
"partition2Name": "SpritePDB",
"partition2RuntimeName": "DBRuntime",
"properties":[
{"name": "jdbcSystemResource", "properties" : [
{"name": "resourceGroups", "properties": [
{"name": "g1", "value": "SpritePDB"}]}]},
{"name": "jdbcSystemResourceOverride", "value": "SpritePDB" }]}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/associatePartitions
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、すべての環境をプロビジョニング解除します。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、すべての環境を同期するか、定期的な同期を構成します。
例
すべての環境を同期します。この例では、POSTメソッドを使用してすべての環境を同期します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d '{
-X POST http://localhost:7001/management/lifecycle/latest/environments/cokeenv/deprovision
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
すべての環境の定期的な同期を構成します。この例では、POSTメソッドを使用してすべての環境の定期的な同期を構成します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d '{
"orchestration": {"name": "deleteAll",
"args": [
{"name": "wls",
"properties": [
{"name": "component", "properties": [
{"name": "componentName", "value": "MockComponent"},
{"name": "configurableAttributes", "properties": [
{"name": "name", "value": "MockComponent"},
{"name": "configurableAttributes", "properties": [
{"name": "mockUser", "value": "jennifer"}
]}
]}
]},
{"name": "partitionName", "value": "wlspartition1"}
]}
]}
}' -X POST http://localhost:7001/management/lifecycle/latest/environments/cokeenv/deprovision
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースでは、関連付けられたパーティションの関連付けを解除できます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、2つのパーティションの関連付けを解除します。
例
この例では、POSTメソッドを使用して2つのパーティションの関連付けを解除します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{
"partition1Name": "SpritePartition",
"partition1RuntimeName": "WLSRuntime",
"partition2Name": "SpritePDB",
"partition2RuntimeName": "DBRuntime",
"properties":[
{"name": "jdbcSystemResource", "properties" : [
{"name": "resourceGroups", "properties": [
{"name": "g1", "value": "SpritePDB"}]}]},
{"name": "jdbcSystemResourceOverride", "value": "SpritePDB" }]}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/dissociatePartitions
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、環境へのパーティションの追加に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、パーティション用の空のフォームを返します。
レスポンス本文
返されるレスポンス本文には、環境にパーティションを追加する際に指定する必要があるフィールドに関する情報を含むEnvironmentPartitionエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/partitions rel=/partitions
例
この例では、GETメソッドを使用してパーティション作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments/sprite/partitionCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"runtimeName": null,
"name": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitionCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitionCreateForm"
},
{
"rel": "partitions",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitions"
}
]
}
このリソースは、環境パーティションを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別される環境のパーティションのリストを返します。
例
この例では、GETメソッドを使用して特定の環境のパーティションを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments/sprite/partitions
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [
{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
}
],
"runtimeName": "WLSRuntime",
"name": "SpritePartition"
}
],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitions"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitions"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitionCreateForm"
}
]
}
POSTメソッドは、リソースURLで識別される環境にパーティションを追加します。
例
この例では、POSTメソッドを使用して環境にパーティションを追加します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name": "SpritePartition", "runtimeName": "WLSRuntime"}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/partitions
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition
Response Body:
{}
このリソースは、環境パーティションを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるパーティションを削除します。
例
この例では、DELETEメソッドを使用して特定のパーティションを削除します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるパーティションに関する情報を返します。
例
この例では、GETメソッドを使用して特定のパーティションに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"runtimeName": "WLSRuntime",
"name": "SpritePartition",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/partitions"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
}
]
}
このリソースは、パーティションを移行します。
リソースでは、次のメソッドがサポートされます。
このリソースのPOSTメソッドは、リソースURLによって識別されるパーティションを移行します。
例
この例では、POSTメソッドを使用して特定のパーティションを移行します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{ "runtimeName": "WLSRuntime", "phase": "", "properties": [] }' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、パーティション・タスクを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるタスクを取り消します。
例
この例では、DELETEメソッドを使用して特定のタスクを取り消します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition/quiesce/task/quiescePartition/SpritePartition/_1_STOP
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるタスクのステータスを返します。
例
この例では、GETメソッドを使用して特定のタスクに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition/quiesce/task/quiescePartition/SpritePartition/_1_STOP
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "TASK COMPLETED",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition\/quiesce\/task\/quiescePartition\/SpritePartition\/_1_STOP"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition\/quiesce\/task\/quiescePartition\/SpritePartition\/_1_STOP"
}
]
}
このリソースは、パーティションを静止します。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したパーティションに対して静止処理を実行します。
例
この例では、POSTメソッドを使用してパーティションを静止します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"phase": "", "properties" : []}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition/quiesce
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition\/quiesce\/task\/quiescePartition\/SpritePartition\/_1_STOP"
}]}
このリソースは、パーティションの再起動に使用されます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したパーティションに対して再起動処理を実行します。
例
この例では、POSTメソッドを使用してパーティションを再起動します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d '{"phase": "", "properties" : []}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/cokeenv/partitions/wlspartition1/restart
レスポンスの例
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/cokeenv\/partitions\/wlspartition1\/restart\/task\/restartPartition\/wlspartition1\/_1_FORCE_RESTART"
}]}
このリソースは、パーティションの起動に使用されます。パーティションを起動すると、すべてのアプリケーション・デプロイメントおよびリソースがアクティブになり、エンド・ユーザーおよびその他のコンポーネントに応答するようになります。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したパーティションに対して起動処理を実行します。
例
この例では、POSTメソッドを使用してパーティションを起動します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"phase": "", "properties" : []}' \
-X POST http://localhost:7001/management/lifecycle/latest/environments/sprite/runtimes/WLSRuntime/partitions/SpritePartition/start
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/sprite\/runtimes\/WLSRuntime\/partitions\/SpritePartition\/start\/task\/startPartition\/SpritePartition\/_2_START"
}]}
このリソースは、プラグインを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、登録済プラグインのリストを返します。
例
この例では、GETメソッドを使用して登録済プラグインのリストを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/plugins
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [
{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar"
}
],
"name": "com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar",
"path": "\/opt\/wls\/src1214_build\/Oracle_Home\/wlserver\/modules\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar"
}
],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins"
}
]
}
POSTメソッドは、プラグインを登録します。
例
この例では、POSTメソッドを使用してプラグインを登録します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{ "path": "/opt/wls/src1214_build/Oracle_Home/wlserver/modules/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar" }' \
-X POST http://localhost:7001/management/lifecycle/latest/plugins
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、プラグインを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるプラグインの登録を解除します。
例
この例では、DELETEメソッドを使用して特定のプラグインの登録を解除します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/plugins/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるプラグインに関する情報を返します。
例
この例では、GETメソッドを使用して特定のプラグインに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/plugins/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": "com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar",
"path": "\/opt\/wls\/src1214_build\/Oracle_Home\/wlserver\/modules\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/plugins\/com.oracle.weblogic.lifecycle.plugin.wls_1.0.0.0.jar"
}
]
}
このリソースは、ランタイムの登録に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、ランタイム用の空のフォームを返します。
レスポンス本文
返されるレスポンス本文には、ランタイムの登録時に指定する必要があるフィールドに関する情報を含むRuntimeエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/runtimes rel=/runtimes
例
この例では、GETメソッドを使用してランタイム作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimeCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": null,
"properties": [],
"type": null,
"port": null,
"hostName": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimeCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimeCreateForm"
},
{
"rel": "runtimes",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes"
}
]
}
このリソースは、ランタイムを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、ランタイムのリストを返します。
例
この例では、GETメソッドを使用してランタイムのリストを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [
{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
}
],
"name": "WLSRuntime",
"properties": [
{
"name": "password",
"value": "password"
},
{
"name": "username",
"value": "username"
}
],
"type": "wls",
"protocol": "http",
"port": "7001",
"hostName": "localhost"
}
],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimeCreateForm"
}
]
}
POSTメソッドは、ランタイムを登録します。
例
この例では、POSTメソッドを使用してランタイムを登録します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name": "WLSRuntime", "type": "wls", "protocol": "http", "hostName": "localhost", "port": "7001", "properties": [{"name": "username", "value": "username"}, {"name": "password", "confidentialValue": "password"}]}'
-X POST http://localhost:7001/management/lifecycle/latest/runtimes
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime
Response Body:
{}
このリソースは、ランタイムを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別されるランタイムに関する情報を返します。
例
この例では、GETメソッドを使用して特定のランタイムに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": "WLSRuntime",
"properties": [
{
"name": "password",
"confidentialValue": "@_Oracle_Confidential_Property_Set_V1.1_#"
},
{
"name": "username",
"value": "username"
}
],
"type": "wls",
"protocol": "http",
"port": "7001",
"hostName": "localhost",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "partitionCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitionCreateForm"
},
{
"rel": "partitions",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions"
}
]
}
POSTメソッドは、リソースURLで識別されるランタイムを更新します。
例
この例では、POSTメソッドを使用して特定のランタイムを更新します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"hostName": "localhost", "port": "7001", "properties": [{"name": "username", "value": "username"}, {"name": "password", "value": "password"}]}'
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、パーティションの作成に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、パーティション用の空のフォームを返します。
レスポンス本文
返されるレスポンス本文には、パーティションの作成時に指定する必要があるフィールドに関する情報を含むRuntimePartitionエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/partitions rel=/partitions
例
この例では、GETメソッドを使用してパーティション作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitionCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": null,
"properties": [],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitionCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitionCreateForm"
},
{
"rel": "partitions",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions"
}
]
}
このリソースは、ランタイム・パーティションを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、名前で識別されるパーティションの登録を解除します。
例
この例では、DELETEメソッドを使用してパーティションの登録を解除します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions?name=SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるランタイムのパーティションのリストを返します。
例
この例では、GETメソッドを使用して特定のランタイムのパーティションのリストを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
}
],
"name": "SpritePartition",
"id": "429aaa5a-058d-452d-b256-ce874d6e8583"
}],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitionCreateForm"
}
]
}
POSTメソッドは、リソースURLで識別されるランタイムでパーティションを作成または登録します。モデル・プロパティでパーティションIDが渡されている場合、パーティションが登録されます。それ以外の場合は、作成されます。
例
この例では、POSTメソッドを使用してランタイムにパーティションを作成します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name":"SpritePartition",
"properties" : [
{ "name" : "resourceGroups",
"properties" : [
{ "name" : "g1",
"properties" : [
{ "name" : "useDefaultTarget", "value" : "false" },
{ "name" : "resourceGroupTemplate", "value" : "template1" },
{ "name" : "targets" , "values" : ["VirtualHost-0"]}]}]},
{"name" : "availableTargets" , "values" : ["VirtualHost-0"]}]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions/SpritePartition
Response Body:
{}
この例では、POSTメソッドを使用してランタイムに既存のパーティションを登録します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name":"SpritePartition",
"id":"4f138249-5e6b-40fe-9c42-a675f027cd9b"}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions/SpritePartition
Response Body:
{}
このリソースは、ランタイム・パーティションを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるパーティションを削除します。
例
この例では、DELETEメソッドを使用して特定のパーティションを削除します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるパーティションに関する情報を返します。
レスポンス本文
返されるレスポンス本文には、指定したパーティションに関する情報を含むRuntimePartitionエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/lifecycle/{version}/environments/{environment-name}/partitions/{partition-name} rel=environment
uri=/lifecycle/{version}/tenants/{tenant-name} rel=tenant
例
この例では、GETメソッドを使用して特定のパーティションに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSTestRuntime/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"name": "SpritePartition",
"id": "429aaa5a-058d-452d-b256-ce874d6e8583",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/partitions\/SpritePartition"
},
{
"rel": "environment",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/environments\/srpite",
"title": "name"
}
]
}
POSTメソッドは、リソースURLで識別されるパーティションを更新します。
例
この例では、POSTメソッドを使用して特定のパーティションを更新します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d "{"properties" : [
{ "name" : "resourceGroups",
"properties" : [
{ "name" : "g1",
"properties" : [
{ "name" : "useDefaultTarget", "value" : "false" }
]}
]}
]}" \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/partitions/SpritePartition
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、ランタイムを静止します。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したランタイムに対して静止処理を実行します。
例
この例では、POSTメソッドを使用してランタイムを静止します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"phase": "", "properties" : [{"name": "managedserver", "value": "managedserver"}]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/quiesce
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/quiesce\/task\/managedserver\/_0_shutdown"
}]}
このリソースは、ランタイム静止タスクを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるタスクを取り消します。
例
この例では、DELETEメソッドを使用して特定のタスクを取り消します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/quiesce/task/managedserver/_0_shutdown
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるタスクのステータスを返します。
例
この例では、GETメソッドを使用して特定のタスクに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/quiesce/task/managedserver/_0_shutdown
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "TASK COMPLETED",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/start\/task\/managedserver\/_0_shutdown"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/start\/task\/managedserver\/_0_shutdown"
}
]
}
このリソースは、ランタイムのスケール・ダウンに使用されます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したランタイムに対してスケール・ダウン処理を実行します。ランタイムをスケール・ダウンすると、ランタイムに関連付けられたオリジン・サーバーがオリジン・サーバー・プールから削除されます。
例
この例では、POSTメソッドを使用してランタイムをスケール・ダウンします。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"scaleFactor": "2", "properties" : [{"name": "cluster-name", "value" : "wls_cluster"]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/scaleDown
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management/lifecycle\/latest\/runtimes\/WLSRuntime\/scaleDown\/task\/wls-cluster\/ScaleDown_2"
}]}
このリソースは、ランタイムのスケール・アップに使用されます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したランタイムに対してスケール・アップ処理を実行します。ランタイムをスケール・アップすると、Oracle Traffic Directorにより新規オリジン・サーバーが作成され、既存のオリジン・サーバー・プールに追加されます。
例
この例では、POSTメソッドを使用してランタイムをスケール・アップします。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"scaleFactor": "2", "properties" : [{"name": "cluster-name", "value" : "wls_cluster"]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/scaleUp
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/scaleUp\/task\/wls-cluster\/ScaleUp_1"
}]}
このリソースは、スケール・アップ済タスクを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるタスクを取り消します。
例
この例では、DELETEメソッドを使用して特定のタスクを取り消します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/scaleUp/task/wls-cluster/ScaleUp_1
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるタスクのステータスを返します。
例
この例では、GETメソッドを使用して特定のタスクに関するステータス情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/ScaleUp/task/wls-cluster/ScaleUp_1
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "TASK COMPLETED",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/scaleDown\/task\/wls-cluster\/ScaleUp_1"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/scaleDown\/task\/wls-cluster\/ScaleUp_1"
}
]
}
このリソースは、ランタイムの起動に使用されます。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、指定したランタイムに対して起動処理を実行します。
例
この例では、POSTメソッドを使用してランタイムを起動します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"phase": "", "properties" : [{"name": "managedserver", "value": "managedserver"}]}' \
-X POST http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/start
レスポンスの例
HTTP/1.1 202 Accepted
Response Body:
{"links": [{
"rel": "task",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/start\/task\/managedserver\/_1_start"
}]}
このリソースは、スケール・アップ済タスクを管理します。
リソースでは、次のメソッドがサポートされます。
DELETEメソッドは、リソースURLで識別されるタスクを取り消します。
例
この例では、DELETEメソッドを使用して特定のタスクを取り消します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X DELETE http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/start/task/managedserver/_1_start
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースのGETメソッドは、リソースURLによって識別されるタスクのステータスを返します。
例
この例では、GETメソッドを使用して特定のタスクに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/runtimes/WLSRuntime/start/task/managedserver/_1_start
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "TASK COMPLETED",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/start\/task\/managedserver\/_1_start"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/runtimes\/WLSRuntime\/start\/task\/managedserver\/_1_start"
}
]
}
このリソースは、すべての環境を同期します。
リソースでは、次のメソッドがサポートされます。
POSTメソッドは、すべての環境を同期するか、定期的な同期を構成します。
例
すべての環境を同期します。この例では、POSTメソッドを使用してすべての環境を同期します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -d '' \ -X POST http://localhost:7001/management/lifecycle/latest/sync
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
すべての環境の定期的な同期を構成します。この例では、POSTメソッドを使用してすべての環境の定期的な同期を構成します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{
"sync": "true",
"syncInterval": "1"}' \
-X POST http://localhost:7001/management/lifecycle/latest/sync
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、テナントの登録に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
レスポンス本文
返されるレスポンス本文には、テナントの登録時に指定する必要があるフィールドに関する情報を含むTenantエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/tenants rel=/tenants
このリソースのGETメソッドは、テナント用の空のフォームを返します。
例
この例では、GETメソッドを使用してテナント作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenantCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"topLevelDir": null,
"name": null,
"id": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenantCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenantCreateForm"
},
{
"rel": "tenants",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants"
}
]
}
このリソースは、テナントを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、テナントのリストを返します。
例
この例では、GETメソッドを使用してテナントを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/lifecycle/latest/tenants
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/lifecycle\/latest\/tenants\/Sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/lifecycle\/latest\/tenants\/Sprite"
}
],
"topLevelDir": "Sprite\/top\/level\/dir",
"name": "Sprite",
"id": "123"
}],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/lifecycle\/latest\/tenants"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/lifecycle\/latest\/tenants"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/lifecycle\/latest\/tenantCreateForm"
}
]
}
POSTメソッドは、テナントを登録します。
例
この例では、POSTメソッドを使用してテナントを登録します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"uuid" : "55ec0a13-7152-4040-8352-ad1e7726bad9", "name" : "Sprite", "topLevelDir": "Sprite/top/level/dir" }' \
-X POST http://localhost:7001/lifecycle/latest/tenants
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/lifecycle/latest/tenants/Sprite
Response Body:
{}
このリソースは、テナントを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別されるテナントに関する情報を返します。
例
この例では、GETメソッドを使用して特定のテナントに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/Sprite
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"topLevelDir": "Sprite\/top\/level\/dir",
"name": "Sprite",
"id": "123",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite"
},
{
"rel": "serviceCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/serviceCreateForm"
},
{
"rel": "services",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services"
}
]
}
POSTメソッドは、リソースURLで識別されるテナントを更新します。
例
この例では、POSTメソッドを使用して特定のテナントを更新します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"topLevelDir": "Sprite/top/level/dir" }' \
-X POST http://localhost:7001/management/lifecycle/latest/tenants/Sprite
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、サービスへのテナントのオンボードに必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
レスポンス本文
返されるレスポンス本文には、テナントをサービスにオンボードする際に指定する必要があるフィールドに関する情報を含むServiceエンティティが含まれます。
このメソッドは次のリンクを返すことができます。
uri=/services rel=/services
このリソースのGETメソッドは、サービス用の空のフォームを返します。
例
この例では、GETメソッドを使用してサービス作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/sprite/serviceCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"environmentRef": null,
"name": null,
"type": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/serviceCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/serviceCreateForm"
},
{
"rel": "services",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services"
}
]
}
このリソースは、テナントのサービスを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLで識別されるテナントのサービスのリストを返します。
例
この例では、GETメソッドを使用してテナントのサービスを表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"items": [{
"links": [
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite"
}
],
"topLevelDir": "Sprite\/top\/level\/dir",
"name": "Sprite",
"id": "123"
}],
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenantCreateForm"
}
]
}
POSTメソッドは、テナントをサービスにオンボードします。
例
この例では、POSTメソッドを使用してテナントをサービスにオンボードします。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"uuid" : "30ec0a13-7102-4040-8352-ad1e7726bad9", "name" : "HCMProd", "type" : "HCMService", "environmentRef" : "sprite", "topLevelDir": "sprite/top/level/dir"}' \
-X POST http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd
Response Body:
{}
このリソースは、テナントのサービスを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別されるサービスに関する情報を返します。
例
この例では、GETメソッドを使用して特定のサービスに関する情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"uuid": "30ec0a13-7102-4040-8352-ad1e7726bad9",
"topLevelDir": "sprite\/top\/level\/dir",
"environmentRef": "sprite",
"name": "HCMProd",
"type": "HCMService",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd"
},
{
"rel": "PDBCreateForm",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd\/PDBCreateForm"
},
{
"rel": "PDB",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd\/PDB"
}
]
}
POSTメソッドは、リソースURLで識別されるサービスを更新します。
例
この例では、POSTメソッドを使用して特定のサービスを更新します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d '{"topLevelDir": "sprite/top/level/dir"}' \
-X POST http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{}
このリソースは、サービスのPDBを管理します。
リソースでは、次のメソッドがサポートされます。
このリソースのGETメソッドは、リソースURLによって識別されるサービスのPDBに関する情報を返します。
例
この例では、GETメソッドを使用して特定のサービスに関するPDB情報を表示します。
リクエストの例
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd/PDB
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "ACTIVE",
"name": "SpriteHCMPDBProd",
"id": "444",
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd\/PDB"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd\/PDB"
},
{
"rel": "create-form",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/Sprite\/services\/HCMProd\/PDBCreateForm"
}
]
}
POSTメソッドは、リソースURLで識別されるサービスに対してPDBを追加します。
例
この例では、POSTメソッドを使用してサービスに対してPDBを追加します。
リクエストの例
curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-d '{"name" : "spriteHCMPDBProd", "id" : "444", "status" : "ACTIVE"}' \
-X POST http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd/PDB
レスポンスの例
HTTP/1.1 201 Created
Location: http://localhost:7001/management/lifecycle/latest/tenants/Sprite/services/HCMProd/PDB
Response Body:
{}
このリソースは、サービスへのPDBの追加に必要な情報を記述します。
リソースでは、次のメソッドがサポートされます。
例
この例では、GETメソッドを使用してPDB作成フォームを取得します。
リクエストの例
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/lifecycle/latest/tenants/sprite/services/CRMProd/PDBCreateForm
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"status": "ACTIVE",
"name": null,
"id": null,
"links": [
{
"rel": "parent",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services\/CRMProd"
},
{
"rel": "self",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services\/CRMProd\/PDBCreateForm"
},
{
"rel": "canonical",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services\/CRMProd\/PDBCreateForm"
},
{
"rel": "PDB",
"href": "http:\/\/localhost:7001\/management\/lifecycle\/latest\/tenants\/sprite\/services\/CRMProd\/PDB"
}
]
}