Go to main content
Oracle® ZFS Storage Appliance RESTful API ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

ワークフローの実行

ワークフロースクリプトを実行して結果を返します。ワークフローパラメータは、本文内の JSON オブジェクトで渡される必要があります。成功すると、HTTP ステータス 202 (Accepted) が、ワークフローの出力を含む単一の結果プロパティーを持つ JSON オブジェクトとともに返されます。

リクエストの例:

PUT /api/workflow/v1/workflows/6c2b6545-fa78-cc7b-8cc1-ff88bd628e7d/run HTTP/1.1
Authorization: Basic abcefgMWE=
Host: zfssa.example.com:215
Accept: application/json
Content-Type: application/json
Content-Length: 28

{"song": "tweet tweet tweet"}

結果例:

HTTP/1.1 202 Accepted
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 34

{
    "result": "tweet tweet tweet\n"
}