* Add flow framework documentation Signed-off-by: Fanit Kolchina <[email protected]> * Tech review comments Signed-off-by: Fanit Kolchina <[email protected]> * Update _automating-workflows/api/create-workflow.md Co-authored-by: Owais Kazi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Add callout of edges being optional Signed-off-by: Fanit Kolchina <[email protected]> * Add unregister to word list Signed-off-by: Fanit Kolchina <[email protected]> * Add registering local pretrained and custom models Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Apply suggestions from code review Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _automating-workflows/api/deprovision-workflow.md Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _automating-workflows/workflow-steps.md Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Apply suggestions from code review Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Added Flow Framework plugin to Vale Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * More editorial comments Signed-off-by: Fanit Kolchina <[email protected]> * Update _automating-workflows/api/get-workflow-status.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _automating-workflows/api/get-workflow-status.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Add note about provisioning Signed-off-by: Fanit Kolchina <[email protected]> * Update _automating-workflows/index.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Update _automating-workflows/workflow-steps.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * More editorial comments Signed-off-by: Fanit Kolchina <[email protected]> * Removed code font from headings Signed-off-by: Fanit Kolchina <[email protected]> * Add agent documentation links Signed-off-by: Fanit Kolchina <[email protected]> * Add experimental label and more links Signed-off-by: Fanit Kolchina <[email protected]> * Add sample templates link Signed-off-by: Fanit Kolchina <[email protected]> * Added a tracking issue to warning Signed-off-by: Fanit Kolchina <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Owais Kazi <[email protected]> Co-authored-by: Melissa Vagi <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1.7 KiB
layout, title, parent, nav_order
| layout | title | parent | nav_order |
|---|---|---|---|
| default | Get a workflow | Workflow APIs | 20 |
Get a workflow
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress of the feature or if you want to leave feedback, see the associated GitHub issue.
{: .warning}
The Get Workflow API retrieves the workflow template.
Path and HTTP methods
GET /_plugins/_flow_framework/workflow/<workflow_id>
Path parameters
The following table lists the available path parameters.
| Parameter | Data type | Description |
|---|---|---|
workflow_id |
String | The ID of the workflow to be retrieved. Required. |
Example request
GET /_plugins/_flow_framework/workflow/8xL8bowB8y25Tqfenm50
{% include copy-curl.html %}
Example response
To retrieve a template in YAML format, specify Content-Type: application/yaml in the request header:
curl -XGET "http://localhost:9200/_plugins/_flow_framework/workflow/8xL8bowB8y25Tqfenm50" -H 'Content-Type: application/yaml'
To retrieve a template in JSON format, specify Content-Type: application/json in the request header:
curl -XGET "http://localhost:9200/_plugins/_flow_framework/workflow/8xL8bowB8y25Tqfenm50" -H 'Content-Type: application/json'
OpenSearch responds with the stored template containing the same content as the body of the create workflow request. The order of fields in the returned template may not exactly match the original template but will function identically.