start ()

post

/management/weblogic/{version}/domainRuntime/serverLifeCycleRuntimes/{name}/start

ノード・マネージャを使用して管理対象サーバーを起動します。

このメソッドは、非同期呼出しとベスト・エフォート同期呼出しの両方をサポートします。動作は'Prefer'ヘッダーによって制御されます。

リクエスト

パス・パラメータ
ヘッダー・パラメータ
  • 'Prefer'ヘッダー・パラメータを使用すると、このメソッドの実行方法に関するプリファレンスを指定できます。値を'respond-async'にすると、リクエストを発行し、完了を待機せずにすぐに返すというプリファレンスになります。また、値を'wait =#seconds'にすると、メソッドが完了するまで#seconds間待機してから返すというプリファレンスになります。Preferヘッダーが指定されていないか無効な場合、待機時間は300秒になります。
  • 'X - Requested - By'ヘッダーは、クロスサイト・リクエスト・フォージェリ(CSRF)攻撃からの保護に使用されます。値は、'MyClient'など任意の名前です。
セキュリティ
トップに戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

次のフィールドを返します。

本文 ()
ルート・スキーマ: Return
型: object
タイトル: Return
ソースを表示
ネストされたスキーマ: Server Life Cycle Task Runtime Reference
型: array
タイトル: 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": 1578492257256,
    "name": "_4_start",
    "progress": "success",
    "description": "Starting Cluster-0-Server-1 server ...",
    "serverName": "Cluster-0-Server-1",
    "taskError": null,
    "startTimeAsLong": 1578492251159,
    "type": "ServerLifeCycleTaskRuntime",
    "operation": "start",
    "taskStatus": "TASK COMPLETED",
    "parentTask": null,
    "completed": true,
    "intervalToPoll": 1000,
    "startTime": "2020-01-08T09:04:11.159-05:00",
    "endTime": "2020-01-08T09:04:17.256-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
}
トップに戻る