Forum Discussion
oded_mass_23314
Nimbostratus
Dec 26, 2017list localdb-users
how to retrieve the list of localdb-users via the rest api
nitass
Employee
Dec 26, 2017i am not much familiar with apm but this is what i found.
there is rfe but not yet implemented. ID441055 [APM][RFE] LocalDB Enhancements
i do not feel this is right but i understand we may run ldbutil via rest call.
// ldbtuil
[root@B10200-R8-S37:Active:In Sync (Sync Only)] config ldbutil --list
uid="34765" uname="dasher" instance="/Common/instance1" password="{SSHA}V/trBAh3hn8pi9hhkesG7rvMZOUbFyQr" user_groups="" login_failures="0" passwd_expire="NULL" lockout_start="0" ttl="1514289883" dynamic_user="0" deleted="0" suspended="0" locked_out="0" change_passwd="0" last_modified="2017-12-26 20:04:43" first_name="" last_name="" email=""
uid="58564" uname="santa" instance="/Common/instance1" password="{SSHA}WoRGo2uLGMaPN6EYbViVJ6olFpdep4G6" user_groups="" login_failures="0" passwd_expire="NULL" lockout_start="0" ttl="1514282636" dynamic_user="0" deleted="0" suspended="0" locked_out="0" change_passwd="0" last_modified="2017-12-26 18:03:56" first_name="" last_name="
// rest
] curl -sk -u admin:admin -X POST -H 'content-type: application/json' -d '
{
"command": "run",
"utilCmdArgs": "-c \"ldbutil --list\""
}
' https://172.24.8.37/mgmt/tm/util/bash |jq .commandResult |awk '{for(i=1;i<=NF;i++) {t=match($i,/uname=(.*)?/); if(t) {print $i}}}'
uname=\"dasher\"
uname=\"santa\"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects