Changing stored passwords using restman
book
Article ID: 103691
calendar_today
Updated On:
Products
CA API Gateway (Layer 7)
SA94 to API SECURITY
STARTER PACK-7
CA Rapid App Security
MOBILE API GATEWAY
CA Mobile - API Gateway
CA API Gateway
Issue/Introduction
How can I change the value of the stored passwords using restman?
Environment
Release:
Component: APIGTW
Resolution
Get the password's ID:
list <connection properties> -t SECURE_PASSWORD
Then get the resource:
restman <connection properties> -m GET --p /1.0/passwords/<id> --response password.xml --unwrapItem
Edit to add in the new password:
add password element after the name element <l7:Password>newPassword</l7:Password>
Update the resource:
restman <connection properties> -m PUT --p /1.0/passwords/<id> --request password.xml
Feedback
thumb_up
Yes
thumb_down
No