Remove Assigned Database

Top  Previous  Next

SUMMARY

Remove an assigned database. Assigned database is a specific database for a user account to have access to when installing applications through the Application Factory. This is an additional option to the default

assignments.

 

SCRIPT

/usr/ngasi/apiclient/bin/ncli.sh -user=admin -password=coolgeek -url=http://localhost:8666 -command=removeassigneddb -account=myuser -dbuser=user

 

JAVA API

Properties properties = new Properties();

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

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

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

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

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

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

String result = NGAPIClient.exec(properties);