We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Documentation about [FORMAT] ? Topic is solved
Documentation about [FORMAT] ?
Hi,
I wonder what the [FORMAT] option on CLI is it for and how to use it.
Where is the doc about this ?
Example :
I wonder what the [FORMAT] option on CLI is it for and how to use it.
Where is the doc about this ?
Example :
Code: Select all
Usage: v-list-mail-accounts USER DOMAIN [FORMAT]
Re: Documentation about [FORMAT] ?
Format maybe PLAIN or JSON and not remember if there are third option, but is just for do a format in the output text, you can use plan for cli, but vesta use JSON from php
Re: Documentation about [FORMAT] ?
Can you please give an example of valid json format ?
Re: Documentation about [FORMAT] ?
Code: Select all
# /usr/local/vesta/bin/v-list-web-domains admin json
{
"tests.home": {
"IP": "200.31.13.63",
"IP6": "",
"U_DISK": "0",
"U_BANDWIDTH": "0",
"TPL": "default",
"ALIAS": "www.tests.home",
"STATS": "",
"STATS_USER": "",
"SSL": "no",
"SSL_HOME": "same",
"LETSENCRYPT": "no",
"FTP_USER": "",
"FTP_PATH": "",
"AUTH_USER": "",
"BACKEND": "",
"PROXY": "default",
"PROXY_EXT": "jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm",
"SUSPENDED": "no",
"TIME": "09:19:27",
"DATE": "2018-08-29"
}
}
Re: Documentation about [FORMAT] ?
skamasle wrote: ↑Wed Aug 29, 2018 4:25 pmCode: Select all
# /usr/local/vesta/bin/v-list-web-domains admin json { "tests.home": { "IP": "200.31.13.63", "IP6": "", "U_DISK": "0", "U_BANDWIDTH": "0", "TPL": "default", "ALIAS": "www.tests.home", "STATS": "", "STATS_USER": "", "SSL": "no", "SSL_HOME": "same", "LETSENCRYPT": "no", "FTP_USER": "", "FTP_PATH": "", "AUTH_USER": "", "BACKEND": "", "PROXY": "default", "PROXY_EXT": "jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm", "SUSPENDED": "no", "TIME": "09:19:27", "DATE": "2018-08-29" } }
Re: Documentation about [FORMAT] ?
There are 3 kind of outputs for the listings:
with "plain" parameter:
with "json" parameter:
Hope it helps !
- shell (default)
- plain
- json
Code: Select all
v-list-mail-accounts user domain.com
ACCOUNT ALIAS FWD DISK DATE
------- ----- --- ---- ----
info no no 0 2019-09-28
sales no no 0 2019-09-28
news no no 0 2019-09-28
Code: Select all
v-list-mail-accounts user domain.com plain
info no unlimited 0 no 06:21:14 2019-09-28
sales no unlimited 0 no 06:21:35 2019-09-28
news no unlimited 0 no 06:22:06 2019-09-28
Code: Select all
v-list-mail-accounts user domain.com json
{
"info": {
"ALIAS": "",
"FWD": "",
"FWD_ONLY": "",
"AUTOREPLY": "no",
"QUOTA": "unlimited",
"U_DISK": "0",
"SUSPENDED": "no",
"TIME": "06:21:14",
"DATE": "2019-09-28"
},
"sales": {
"ALIAS": "",
"FWD": "",
"FWD_ONLY": "",
"AUTOREPLY": "no",
"QUOTA": "unlimited",
"U_DISK": "0",
"SUSPENDED": "no",
"TIME": "06:21:35",
"DATE": "2019-09-28"
},
"news": {
"ALIAS": "",
"FWD": "",
"FWD_ONLY": "",
"AUTOREPLY": "no",
"QUOTA": "unlimited",
"U_DISK": "0",
"SUSPENDED": "no",
"TIME": "06:22:06",
"DATE": "2019-09-28"
}
}