flushpool (Flush a SAM pool)

Sets a flag for all busy IDs so that the next time you call reluid on one of those IDs, the ID also logs out.

You may want to periodically request your IDs to start new sessions due to memory overconsumption. You may also want to request IDs to update their view of the database if a table or set of tables have been updated. In these cases, you can use flushpool.

flushpool terminates all sessions once they have been released back into the pool. It will not terminate any allocated or busy sessions.

The SAM pool group owner and the admin of the owner's company can call flushpool. This command does not actually log in the requesting ID.

Query string

The query string in the HTTP header must contain the following parameters:

api
Specify the name of the API transaction.
apiversion
Specify the version of the API that should handle the requested transaction.

For the most up-to-date version, use apiversion=3.

uid
Specify a valid 1010data user name.
pswd
Specify a valid unencrypted 1010data password for the 1010data user name provided to the uid parameter.

The response from the login transaction will provide an encrypted password, which must be supplied as the value for the pswd attribute for all the other transactions.

gid
The group identifier for the SAM pool. In the 1010data Insights Platform, a SAM pool is a group containing some number of UIDs. A valid gid follows the same rules as a valid uid.
kill (optional)
Valid values for kill are as follows:
yes
Terminate the existing session and start a new one.
no
Do not terminate the existing session.

If no session exists, a new one will be created. If a session does exist, an error is returned.

Note: If kill=no and a session is active, the system returns an error.
possess
Log in and possess the existing session.
auth
Authenticate with the system but do not kill, possess, or start any session.

The default is yes.

Additional info

When using the flushpool transaction, the user ID provided must be the owner of the group specified in the gid parameter of the query string or the company admin of the owner. In addition, the password provided must be the unencrypted password for that user ID.

XML input to server

No XML input is required. All data for the transaction is specified in the connection string.

XML response from server

A successful result contains the following elements:

<rc>
The return code generated by the transaction. For a list of return codes, see Return codes.
<msg>
The message returned by the system. Specific messages correspond to specific return codes.

Query string example

https://www2.1010data.com/gw.k?api=flushpool&apiversion=3&uid=$UID&pswd=$PSWD&gid=$GID

flushpool example

Request: 
https://www2.1010data.com/cgi-bin/gw?apiversion=3&
    api=flushpool&uid=clientx_admin&pswd=*********&gid=clientx
    
Response:
<out>
<rc>0</rc>
<msg>OK</msg>
</out>