Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

Suspend multiple users API

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
elicast
Posts: 15
Joined: Mon Jul 20, 2015 12:09 am
Contact:
Contact elicast
Website

Suspend multiple users API

Post by elicast » Mon Oct 05, 2015 7:05 pm

to suspend more than one user through the api

thus works hand control through

create bin v-suspend-mulit-user

Code: Select all

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

Code: Select all

execute: v-suspend-mulit-user user1 user2 user3
code by: tjebbeke
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: [Manual] suspend multiple users API (!)

Post by skurudo » Sun Oct 11, 2015 4:18 pm

Nice recipe!
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password