Changing stored passwords using restman

book

Article ID: 103691

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security 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