Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology

Can I change root password via REST API call?

I can change any standard adminstrator account such as :-

# cat password.txt
{"password": "abcde12345"}
# curl -X PUT -H 'Content-Type: application/json' -k -u admin:myadminpassword -d@password.txt

That works fine, but if I use the same command for root :-

# curl -X PUT -H 'Content-Type: application/json' -k -u admin:myadminpassword -d@password.txt
{"code":404,"message":"the \"root\" account may not be modified, the password may be changed with the \"modify auth password\" command","errorStack":[]}

I can obviously use modify auth password in a TMSH shell but I am trying to automate the process.

Any advice appreciated please.



Rate this Discussion

Replies to this Discussion