Obtain the list of system domains Topic is solved

Questions regarding the API
Application Programming Interface
www.rinku31
Posts: 21
Joined: Thu Jun 04, 2015 9:22 am

Obtain the list of system domains

Postby www.rinku31 » Wed Mar 09, 2016 2:11 pm

I can see, their are two commands available to display domain:
1. v-list-web-domain
2. v-list-web-domains

i need to pass user name to retrieve domain list.

I want to obtain the list of system domains without detailed information.

As v-list-sys-users retrieve system users without detailed information.

Just similarly, i want to obtain the list of system domains without detailed information.

Please help.

skamasle
Posts: 336
Joined: Mon Feb 29, 2016 6:36 pm

Re: Obtain the list of system domains

Postby skamasle » Wed Mar 09, 2016 6:58 pm

Try

Code: Select all

v-list-web-domains admin |cut -d " " -f1

www.rinku31
Posts: 21
Joined: Thu Jun 04, 2015 9:22 am

Re: Obtain the list of system domains

Postby www.rinku31 » Thu Mar 10, 2016 3:47 pm

This will return all domains of only admin.

i want to list all domains without detailed information.

skamasle
Posts: 336
Joined: Mon Feb 29, 2016 6:36 pm

Re: Obtain the list of system domains

Postby skamasle » Thu Mar 10, 2016 8:59 pm

Remove admin from comand:

Code: Select all

v-list-web-domains  |cut -d " " -f1

www.rinku31
Posts: 21
Joined: Thu Jun 04, 2015 9:22 am

Re: Obtain the list of system domains

Postby www.rinku31 » Thu Mar 17, 2016 5:59 am

Not working

Code: Select all

root@master:~# v-list-web-domains  |cut -d " " -f1
Error:
Usage:

tjebbeke
Collaborator
Posts: 714
Joined: Mon May 11, 2015 8:43 am
Contact:

Re: Obtain the list of system domains  Topic is solved

Postby tjebbeke » Thu Mar 17, 2016 8:47 am

Try something with this:

Code: Select all

v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash

or

v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash | awk '{ print $1}'

skurudo
VestaCP Team
Posts: 7483
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Obtain the list of system domains

Postby skurudo » Fri Sep 23, 2016 12:47 pm

API documentation and examples:
http://vestacp.com/docs/API.pdf

CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “Scripting / API”



Who is online

Users browsing this forum: No registered users and 1 guest