Active IQ Unified Manager Discussions

Scripting Gap Analysis

dmccray

Is there any way to extract a list of canned workflows from the latest version of WFA along with a description what they do? IHAC, that would like a gap analysis to see if there will be any scripting required on their part when the canned workflows in WFA are matched against current processes and procedures.  We have a production instance of Provisioning/Protection manager to get information from if this would help us.

3 REPLIES 3

ktim

If you're after the descriptions, parameters, etc of workflows, commands (including code), etc, you can use the WFA online Help | Reference Manual page.

- Tim

sinhaa

Multiple ways to do it. Powershell3.0 and Rest API is the easiest one I think. The following is the sample code.

====

#Credentials of WFA. Modify as per your setup

$user = "admin"

$pass = "admin"

#Address: Modify as per your settings.

$add = "http://1.2.3.4/rest/workflows"

$secpasswd = ConvertTo-SecureString $pass -AsPlainText -Force

$cred = New-Object System.Management.Automation.PSCredential ($user, $secpasswd)

$wf=Invoke-RestMethod -Uri $add -Method Get -Credential $creds -ContentType "application/xml" -Headers @{"Authorization"="Basic YWRtaW46YWRtaW4="}

$workflow  = $wf.collection.workflow

foreach ( $wfk in $workflow ) {

$wfk.name

$wfk.description

}

=====

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

adaikkap

You can access the WFs of WFA using REST with the following url and use them in your scripts

http://<wfaserver-or-localhost>:<port>/rest/workflows/

Regards

adai

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public