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
The following action parameters are required.
Parameter | Description |
---|---|
Repository | The repository into which you want to import information. |
You must set one of the following parameters.
Parameter | Description |
---|---|
FileData
|
The information to import into the repository (URL encoded). You can set this parameter as an alternative to FileName . |
FileName | The file containing information to import. The file must use UTF-8 character encoding. |
This action accepts the following optional 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 .
|
|
FileAction | Determines how existing data is treated during an import. | |
TextSection | Can overwrite or append (see FileAction) to existing data during an import. |
This action accepts the following standard ACI action parameters.
Parameter | Description |
---|---|
ActionID | A string to use to identify an ACI action. |
FileName | The file to write output to. |
ForceTemplateRefresh | Forces the server to load the template from disk. |
Output | Writes output to a file. |
ResponseFormat | The format of the action output. |
Template | The template to use for the action output. |
TemplateParamCSVs | A list of variables to use for the specified template. |