Active IQ Unified Manager Discussions

Update/Create WFA credentials within a workflow

olson

Hello,

          What would a soap command to update the credentials in wfa look like?

1 ACCEPTED SOLUTION

ranjeetr

Hi Oslon,

Here is the REST API to update the WFA credential:

URI: /credentials/{identifierIp}

Method: PUT

input data :

<?xml version="1.0" encoding="UTF-8"?>
<credential>
  <ip>...</ip>
  <connectionType>...</connectionType>
  <matchType>...</matchType>
  <name>...</name>
  <userName>...</userName>
  <password>...</password> 
</credential>

here is the possible values for connectionType and matchType

<xs:simpleType name="commandCredentialMatchType">
<xs:restriction base="xs:string">
<xs:enumeration value="EXACT"/>
<xs:enumeration value="PATTERN"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="connectionType">
<xs:restriction base="xs:string">
<xs:enumeration value="ONTAP"/>
<xs:enumeration value="DFM"/>
<xs:enumeration value="VIRTUAL_CENTER"/>
<xs:enumeration value="OTHER"/>
</xs:restriction>
</xs:simpleType>

View solution in original post

5 REPLIES 5

sinhaa

Olson,

     There are REST APIs provided to Create/Update/Delete/Get a WFA user in WFA. They are available at /rest/docs under UserResource. They can only be called by an Admin user.

If you want a WFA workflow that creates a new WFA User, you would need the following:

1. Create a new command which can call this Rest API. Powershell 3.0 provides Invoke-RestMethod cmdlet which can very easily do it.

2. For creating/Updating a user you need call Invoke-RestMethod, method post/put for creating/updating a user and providing the Admin credentials for -Credentials parameter and an xml file with user details content. And you are done.

3.  If you don't have powershell3.0, you'll need to create an HTTPWebRequest, manually add credentials, create a cookie container object and add it then call the API. Long process.

If you want a sample command for Powershell3.0, I'll give you one soon. (somehow unable to find where I saved it )

warm regards,

Abhishek

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

ranjeetr

Hi Oslon,

Here is the REST API to update the WFA credential:

URI: /credentials/{identifierIp}

Method: PUT

input data &colon;

<?xml version="1.0" encoding="UTF-8"?>
<credential>
  <ip>...</ip>
  <connectionType>...</connectionType>
  <matchType>...</matchType>
  <name>...</name>
  <userName>...</userName>
  <password>...</password> 
</credential>

here is the possible values for connectionType and matchType

<xs:simpleType name="commandCredentialMatchType">
<xs:restriction base="xs:string">
<xs:enumeration value="EXACT"/>
<xs:enumeration value="PATTERN"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="connectionType">
<xs:restriction base="xs:string">
<xs:enumeration value="ONTAP"/>
<xs:enumeration value="DFM"/>
<xs:enumeration value="VIRTUAL_CENTER"/>
<xs:enumeration value="OTHER"/>
</xs:restriction>
</xs:simpleType>

View solution in original post

sinhaa

Wait a sec? By Credentials you mean WFA User Credentials or  The Credentials page in Execution tab?

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

olson

Abhishek,    

               I am talking about the storage credentials stored within WFA. Thanks for all the help I think ranjeetr answered my question.

Is there any way to mask parameters sent to the log files?


adaikkap

You mean the credentials ?

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