워크플로우 스크립트를 실행하고 결과를 반환합니다. 워크플로우 매개변수는 본문 내 JSON 객체에 전달됩니다. 성공 시 HTTP 상태 202(Accepted)가 워크플로우 출력을 포함하는 단일 결과 등록 정보가 있는 JSON 객체와 함께 반환됩니다.
요청 예:
PUT /api/workflow/v1/workflows/6c2b6545-fa78-cc7b-8cc1-ff88bd628e7d/run HTTP/1.1 Authorization: Basic Tm8gcGVla2luZyE= Host: zfs-storage.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" }