Subscribe

WFA Clone and export workflow using REST

Hi,

 

Is it possible to Clone, apply template and export multiple workflows into one DAR file using REST API in WFA 2.2?

I'm looking for it, because I would like to prepare automated preparation of packages for production.

 

So far I found possiblity only to export one workflow into dar, or to export all workflows in dar. I'm not able to choose particular workflows to export.

 

Thanks for any advice.

Re: WFA Clone and export workflow using REST

As of now there is no REST interface to do this.

Re: WFA Clone and export workflow using REST

The creation of dars is a designer feature.

Any reason why you want to create the dars thru the REST APIs?

We would like to understand the use-case better.

It will be great if you can provide little more details.


Regards

Abhi

Re: WFA Clone and export workflow using REST

Hi Abhit,

We have several environments where we develop our workflows (DEV/STAGING/TESTING).As soon as everything is tested successfully we send it to PRODUCTION environment. We are preparing package files for tresting and production environment where responsible person install it according to pdf guide. We create this package file manually by exporting workflows/functions/data_sources/..., adding custom powershell scripts, new db schemas, we zip ip and send it to production team. We have currently about 15 workflows and 10 of them are clones of master workflow with different templates assigned.

Manual preparation of the package takes hours of manual work and it is error prone. Scripting these steps with REST api would be great improvment.

 

I would like to have on script which would clone workflows, implement templates, export workflows to dar, add all custom scripts/sql schemes and zip it. It would save horendous amount of clicking and deployment would be easier with less errors.

 

Kamil

Re: WFA Clone and export workflow using REST

Hi Kamil:


Thanks for your reply.

Regarding cloning of workflows and applying the templates, we would recommend to use the designer.

 

However, you stated "So far I found possiblity only to export one workflow into dar, or to export all workflows in dar. I'm not able to choose particular workflows to export".

Would you like to see an API,  thru which a set of workflows can be specified to be exported into a single dar.

Will it solve some of the issues which you have mentioned.


Regards

Abhi

 

Re: WFA Clone and export workflow using REST

Hi Abhit,

 

Manual work in designer is most time consuming task. If you recommmned use deisgner, does it mean, that there is no way or no plan to add automation of cloning and applying template actions?

 

API for export specific workflow would be definitely helpful for me.

 

Kamil

Re: WFA Clone and export workflow using REST

Hi Everyone,

 

I am working with the WFA version 3.1 and want to automatize workflow integretaion from TEST WFA to the PRODUCTION WFA via some scripts (similiar to kamil).

 

The last post on this was posted almost a year ago.

Are there any changes to the subject by now?

Are there any APIs which allow me to export a specific workflow or are there any plans known on including this feature in a future WFA version?

 

Thanks for any ideas, advice and insight on this subject.

 

Regards,

Antimon

Re: WFA Clone and export workflow using REST

[ Edited ]

Antimon,

 

WFA3.1 already has an API to export the specific workflow.

 

API: DarResource

Method: GET

Mount Point: /dars/<workflow-UUID>

 

Example: http://<wfa-server>/rest/dars/12345-343434-3434-3432322323

 

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: WFA Clone and export workflow using REST

Hello sinhaa,

 

Thank you very much for your quick response, your answer helped already a lot.

 

Is there also a way to import dar files and/or save workflows with a different name and/or delete workflows?

Are there any documentations about existing REST API's?

 

Regards, Antimon

Re: WFA Clone and export workflow using REST

Are there any documentations about existing REST API's?

 

http://localhost/rest/docs/ . Localhost is the same machine where you have installed WFA.

 

Besides that you can look into this post:

http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Articles-and-Resources/WFA-release-document-WFA-Web-services-primer-and-reference...

 

Regards

Abhi