Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
Hello,
What would a soap command to update the credentials in wfa look like?
Solved! See The Solution
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>
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
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>
Wait a sec? By Credentials you mean WFA User Credentials or The Credentials page in Execution tab?
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?
You mean the credentials ?
Regards
adai