Forum Discussion
oded_mass_23314
Nimbostratus
Dec 26, 2017list localdb-users
how to retrieve the list of localdb-users via the rest api
nitass_89166
Noctilucent
Dec 26, 2017e.g.
// user creation
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) create auth user santa password santa partition-access add { all-partitions { role operator }}
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) create auth user dasher password dasher partition-access add { all-partitions { role guest }}
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) list auth user
auth user admin {
description "Admin User"
encrypted-password $6$AhgyrnEG$cTQ.WtWY9qEbCcM2xy5FzU8DEmFNNrme4koQCN4A14XIqKgEmI4sm2h8vvALZGre8h4jSfVVvIYsJsoOK3IDw.
partition Common
partition-access {
all-partitions {
role admin
}
}
shell none
}
auth user dasher {
description dasher
encrypted-password $6$zY3kn0qg$LVzxid2UayJvZJoW.lxBWVpXhQhswVSCCiX/quk5ALnEqJyE1qYKSNyBeFSX04ZBnUJuqPwQ09nyW/RvXbSo21
partition Common
partition-access {
all-partitions {
role guest
}
}
shell none
}
auth user santa {
description santa
encrypted-password $6$ufPs5vrK$hCew9WcysBQDrZBvNAMN.IswgPV8YKFFjiCUA05rbpMB3FDRRnbkuTjqdmNgOcZnLHfsuPNFj8FITilImLOoF1
partition Common
partition-access {
all-partitions {
role operator
}
}
shell none
}
// rest
[root@bip1a:Active:In Sync] config curl -sk -u admin:admin https://localhost/mgmt/tm/auth/user |jq '.items[]|{name, role: .partitionAccess[].role}'
{
"name": "admin",
"role": "admin"
}
{
"name": "dasher",
"role": "guest"
}
{
"name": "santa",
"role": "operator"
}
nitass_89166
Noctilucent
Dec 26, 2017oops sorry i did not notice apm tag.
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