Update Group

Top  Previous  Next

SUMMARY

Modify a Group by changing the group's attribute.

 

SCRIPT

/usr/ngasi/apiclient/bin/ncli.sh -user=admin -password=coolgeek -url=http://localhost:8666 -command=updategroup -name=jvmpackage1 -maxMemory=256m [-webhosting=0 -maxjvms=1]

 

JAVA API

Properties properties = new Properties();

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

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

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

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

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

properties.put("maxMemory","256m");

//properties.put("webhosting","0");

//properties.put("maxjvms","1");

String result = NGAPIClient.exec(properties);