Active IQ Unified Manager Discussions

Scripting Gap Analysis

dmccray
3,789 Views

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

adaikkap
3,789 Views

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

sinhaa
3,789 Views

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.

ktim
3,789 Views

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

Public