start ()
post
/management/weblogic/{version}/domainRuntime/serverLifeCycleRuntimes/{name}/start
ノード・マネージャを使用して管理対象サーバーを起動します。
このメソッドは、非同期呼出しとベスト・エフォート同期呼出しの両方をサポートします。動作は'Prefer'ヘッダーによって制御されます。
リクエスト
パス・パラメータ
- name: string
コレクション内のインスタンスのnameプロパティ。
- version: string
WebLogic RESTインタフェースのバージョン。
ヘッダー・パラメータ
- Prefer (オプション): string
'Prefer'ヘッダー・パラメータを使用すると、このメソッドの実行方法に関するプリファレンスを指定できます。値を'respond-async'にすると、リクエストを発行し、完了を待機せずにすぐに返すというプリファレンスになります。また、値を'wait =#seconds'にすると、メソッドが完了するまで#seconds間待機してから返すというプリファレンスになります。Preferヘッダーが指定されていないか無効な場合、待機時間は300秒になります。
- X-Requested-By: string
'X - Requested - By'ヘッダーは、クロスサイト・リクエスト・フォージェリ(CSRF)攻撃からの保護に使用されます。値は、'MyClient'など任意の名前です。
セキュリティ
- Admin: basic
タイプ:
Basic説明:A user in the Admin security role. - オペレータ: basic
タイプ:
Basic説明:A user in the Operator security role.
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
次のフィールドを返します。
ルート・スキーマ: Return
型:
objectタイトル:
ソースを表示
Return- return (オプション): array Server Life Cycle Task Runtime Reference
タイトル:
Server Life Cycle Task Runtime Referenceサーバー・ライフサイクル・タスク・ランタイム参照が含まれます。アクションの結果を返します。
例
startアクションを同期的に呼び出します。
この例では、POSTメソッドを使用してstartアクションの同期呼出しを行います。
リクエストの例
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/serverLifeCycleRuntimes/Cluster-0-Server-1/start
レスポンスの例
HTTP/1.1 200 OK
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\//localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster-0-Server-1/tasks/_4_start"
}],
"identity": [
"serverLifeCycleRuntimes",
"Cluster-0-Server-1",
"tasks",
"_4_start"
],
"running": false,
"systemTask": false,
"endTimeAsLong": 1549548772324,
"name": "_4_start",
"progress": "success",
"description": "Starting Cluster-0-Server-1 server ...",
"serverName": "Cluster-0-Server-1",
"taskError": null,
"startTimeAsLong": 1549548759596,
"type": "ServerLifeCycleTaskRuntime",
"operation": "start",
"taskStatus": "TASK COMPLETED",
"parentTask": null,
"completed": true,
"intervalToPoll": 1000,
"startTime": "2019-02-07T09:12:39.596-05:00",
"endTime": "2019-02-07T09:12:52.324-05:00"
}
startアクションを非同期的に呼び出します。
この例では、POSTメソッドを使用してstartアクションの非同期呼出しを行います。
リクエストの例
curl -v \
--user admin:admin123 \
-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/Cluster-0-Server-1/start?links=job,abort&fields=completed,progress,serverName,operation,taskStatus
レスポンスの例
HTTP/1.1 202 Accepted
Location: http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster-0-Server-1/tasks/_16_start
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\//localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/Cluster-0-Server-1/tasks/_16_start"
}],
"progress": "processing",
"serverName": "Cluster-0-Server-1",
"operation": "start",
"taskStatus": "TASK IN PROGRESS",
"completed": false
}
トップに戻る