执行工作流脚本并返回结果。所有工作流参数都必须传递到正文中的 JSON 对象。成功后,将返回 HTTP 状态 202 (Accepted) 以及包含单个结果属性的 JSON 对象,此属性包含工作流输出。
请求示例:
PUT /api/workflow/v1/workflows/6c2b6545-fa78-cc7b-8cc1-ff88bd628e7d/execute 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" }