List or search Installatron Server's users.
curl -X POST https://{SERVER_IP}/users \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'X-HTTP-Method-Override: GET' \
-H 'Accept: application/json'
{
"total_count": 3,
"has_more": false,
"data":[
{
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
},
{
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
},
{
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
}
]
}