Change Account Group

Top  Previous  Next

SUMMARY

Modify a user account by changing the user's group.

 

SCRIPT

/usr/ngasi/apiclient/bin/ncli.sh -user=admin -password=coolgeek -url=http://localhost:8666 -command=changeaccountgroup -account=myuser -group=jvmpackage1 [-remoteserverid=server1 -vpsid=101]

 

JAVA API

Properties properties = new Properties();

properties.put("url","http://localhost:8666");

properties.put("user","admin");

properties.put("password","coolgeek");

properties.put("command","changeaccountgroup");

properties.put("account","myuser");

properties.put("group","jvmpackage1");

//properties.put("remoteserverid","server1");

//properties.put("vpsid","101");

String result = NGAPIClient.exec(properties);