Page 1 of 1

Suspened Users API

Posted: Sun Sep 27, 2015 3:25 pm
by elicast
someone could tell me how to create a function to block multiple User by api vestacp

Re: Suspened Users API

Posted: Sun Sep 27, 2015 3:41 pm
by tjebbeke
tjebbeke wrote: Create this with name 'v-suspend-mutli-user' and execute: v-suspend-mulit-user user1 user2 user3 ...

Code: Select all

#!/bin/bash
for user in "$@"
do
    echo "Suspend user $user"
    v-suspend-user $user
done

Re: Suspened Users API

Posted: Fri Sep 23, 2016 12:38 pm
by skurudo
API documentation and examples:
http://vestacp.com/docs/API.pdf

CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt

-> viewtopic.php?f=18&t=12610