[Openstack] [Mistral] : Rest API POST v2/execution body

Sameer Kulkarni ksameersrk at gmail.com
Tue May 30 04:15:54 UTC 2017


Hi All,

I have a VM running mistral api server at port 8989 on it. I was trying out
the API's. I was able to do

Request :
[GET] 192.168.56.103:8989/v2/executions

Response :
{
  "executions": [
    {
      "state_info": null,
      "created_at": "2017-04-17 08:34:39",
      "description": "",
      "state": "SUCCESS",
      "workflow_name": "my_workflow",
      "task_execution_id": null,
      "updated_at": "2017-04-17 08:34:40",
      "workflow_id": "8104b38b-a493-4b75-b6c5-02f7d7cbe3ba",
      "params": "{}",
      "input": "{\"names\": [\"John\", \"Mistral\", \"Ivan\",
\"Crystal\"]}",
      "id": "ecec10fe-3b7c-4d45-b83d-3f5d9f25fe93"
    },
    {
      "state_info": null,
      "created_at": "2017-04-17 08:40:12",
      "description": "",
      "state": "SUCCESS",
      "workflow_name": "my_workflow",
      "task_execution_id": null,
      "updated_at": "2017-04-17 08:40:14",
      "workflow_id": "8104b38b-a493-4b75-b6c5-02f7d7cbe3ba",
      "params": "{}",
      "input": "{\"names\": [\"John\", \"Mistral\", \"Ivan\",
\"Crystal\"]}",
      "id": "d01db85d-d627-4a84-b006-a138ec29f207"
    },
    {
      "state_info": null,
      "created_at": "2017-05-29 08:35:04",
      "description": "",
      "state": "SUCCESS",
      "workflow_name": "my_workflow",
      "task_execution_id": null,
      "updated_at": "2017-05-29 08:35:07",
      "workflow_id": "8104b38b-a493-4b75-b6c5-02f7d7cbe3ba",
      "params": "{}",
      "input": "{\"names\": [\"John\", \"Mistral\", \"Ivan\",
\"Crystal\"]}",
      "id": "389247d6-c9be-40b7-a19b-0c47adaffbc6"
    }
  ]
}

Now, I wanted to do [POST] 192.168.56.103:8989/v2/executions.


I don't know what wf_ex parameter is. Can someone suggest me with the
sample POST body for the above API?‚Äč


Cheers,
Sameer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170530/7b41365e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-05-30 at 9.44.21 AM.png
Type: image/png
Size: 22812 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170530/7b41365e/attachment.png>


More information about the Openstack mailing list