Page 1 of 1

Documentation about [FORMAT] ?

Posted: Wed Jul 11, 2018 2:39 pm
by Spheerys
Hi,

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] ?

Posted: Sun Jul 15, 2018 8:31 pm
by skamasle
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] ?

Posted: Mon Jul 16, 2018 8:57 pm
by Spheerys
Can you please give an example of valid json format ?

Re: Documentation about [FORMAT] ?

Posted: Wed Aug 29, 2018 4:25 pm
by skamasle
Spheerys wrote:
Mon Jul 16, 2018 8:57 pm
Can you please give an example of valid json 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"
    }
}