killaddtable (Kills an ongoing load process)
The killaddtable transaction kills an ongoing asynchronous load job
(an addtab command with <sync>0</sync>).
killaddtable was successful.Note: This command will not work against
upload and synchronous
addtab transactions (<sync>1</sync>).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 password for the 1010data user name provided to the
uidparameter.Note: Thepswdvalue should be the encrypted password returned from thelogintransaction. sid- The session ID for the current API session.
This value is returned by the
logintransaction and must be provided to every transaction (exceptlogin). kill(optional)- Valid values for
killare 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: Ifkill=noand 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.
Query String Example
https://www2.1010data.com/gw.k?api=killaddtable&apiversion=3&uid=$UID&pswd=$PSWD&sid=$SID
XML Input to Server
The specifications must contain the following elements:
| XML Element To Send | Description of Sent Element Content | Required/ Optional | Example |
|---|---|---|---|
<path></path> |
Path of the table of the ongoing load, which is the value of the
<name> attribute of the addtab
transaction. |
Required | <path>table.path</path> |
XML Input Example
<in> <path>table.path</path> </in>
XML response from server
A successful killaddtable produces the following result:
<out>
<rc>0</rc>
<msg>Gracefully killed load process for path: table.path</msg>
</out>
If the load transaction succeeds prior to the
killaddtable transaction, it
produces the following
result:<out>
<rc>0</rc>
<msg>Load was already finished</msg>
</out>