Hi,
One possibility to use XMI message to update the info.
The XMI (SOAP) message could be sent by a program (cUR, Java, Python, etc.) from some computer
on the same network as the DataPower.
Here is the format, shown in bold below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <dp:request xmlns:dp="http://www.datapower.com/schemas/management" domain="TestDomain"> <dp:modify-config> <PasswordAlias name="TestPasswordAlias"> <Password>mynewpassword</Password> </PasswordAlias> </dp:modify-config>
</dp:request> </soapenv:Body></soapenv:Envelope>The response would look something like:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:response xmlns:dp="http://www.datapower.com/schemas/management">
<dp:timestamp>2022-06-27T15:27:30+02:00</dp:timestamp>
<dp:result>OK</dp:result>
</dp:response>
</env:Body>
</env:Envelope>
If the request is in a file change-password.xml, you could use curl to do this:
curl -d @change-password.xml
https://dp-mgt-ip:5550/service/mgmt/current -uadmin:adminPassword -k
Please let me know:
- if this is what you want
- if this works
Many thanks,
Steve Edwards
DataPower Specialist
------------------------------
Steve Edwards
Director
Escala Ltd
Southampton
02380783802
------------------------------
Original Message:
Sent: Fri June 24, 2022 04:23 AM
From: AVINASH VUNDALE
Subject: Dynamically setting USer agent Basic Auth Password during deployment.
Hi All,
I have a web Service Proxy where I have created and user agent with in Proxy settings tab. For this user agent I am setting basic auth by matching the back end url which requires username and password for authentication. Here, I have provided username and password alias which contains password set manually after deploying the service through build process.
But when I redeploy the same service as part of build process the password gets erased. Hence, I need to manually add the password on to existing password alias.
Here is my question, I wanted to set the password to be set dynamically during deployment process. My question over here is that what value of deployment policy I need to create and pass in the values for setting the password alias automatically as part of deployment in order to avoid manually setting the value after deployment.
Thanks and Regards
Avinash
------------------------------
AVINASH VUNDALE
------------------------------