Import

Imports data into an existing repository.

You can import data in text format, either created manually or by the Export action. You cannot import data that was exported in XML format.

Example

To import c:\NT\datastore.txt into the NT repository and overwrite any information currently in the NT repository:

http://localhost:3057/action=Import
                               &repository=NT
                               &filename=c:\NT\datastore.txt

To add user DOMAIN\JSMITH to group DOMAIN\USERS:

http://localhost:3057/action=Import
                               &repository=NT
                               &filedata=%23USER%20DOMAIN%5CJSMITH%0A%23MEMBEROF%20DOMAIN%5CUSERS

Parameters

Parameter Description Required
Batch Imports large amount of data in smaller chunks.  
EncryptFileData The Import action encrypts data that is output to a file (using the output action parameter). You can disable encryption by setting this parameter to false.  
EncryptResponse Encrypt the output.  
FileAction Determines how existing data is treated during an import.  
FileData The information to import into the repository (URL encoded). You can set this parameter as an alternative to FileName. You must set either FileName or FileData.
FileName The file containing information to import. The file must use UTF-8 character encoding. You must set either FileName or FileData.
ForceTemplateRefresh Forces the server to load the template from disk.  
Output Write output to a file.  
Repository The repository into which you want to import information. Yes
Template The template to use for the action output.  
TemplateParamCSVs A list of variables to use for the specified template.  
TextSection Can overwrite or append (see FileAction) to existing data during an import.