Data Infrastructure Management Software Discussions

Scripting Gap Analysis

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.


Re: Scripting Gap Analysis

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




Re: Scripting Gap Analysis

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 = ""

$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 ) {





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

Re: Scripting Gap Analysis

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

Cloud Volumes ONTAP
Review Banner
All Community Forums