Spotfire® Server and Environment - Installation and Administration

import-ai-models

Imports AI model configurations from a JSON file.

import-ai-models
[-b value | --bootstrap-config=value] 
[-t value | --tool-password=value] 
<import_path>
[--conflict-resolution=value]
[--api-key-script=value]
[-f | --force] 
<-u value | --user=value>

Overview

Use this command to import AI model configurations from a JSON file previously created by export-ai-models. Imported models are always created in a disabled state because API keys are not included in the export. A config-run script is produced (to stdout and optionally to a file) that sets the API key and enables each imported model. Users and groups referenced in the file are resolved by name in the target environment.

Options

Option Optional or Required Default Value Description
-b value
--bootstrap-config=value
Optional none The path to the bootstrap configuration file. See Bootstrap.xml file for more information about this file.
-t value
--tool-password=value
Optional none The configuration tool password used to decrypt the database password in the bootstrap.xml file. If the tool password is omitted, the command will prompt the end-user for it on the console.
import_path
Required none The path to the JSON file to import from.
--conflict-resolution=value
Optional fail Specifies how to handle models whose ID already exists in the database. The valid values are fail (abort on first conflict), skip (leave the existing model unchanged), and replace (delete and re-create the model, keeping the same ID).
--api-key-script=value
Optional none The path to where a config-run script that sets API keys and enables imported models can be written to a file.
-f
--force
Optional false The force flag indicates whether an existing destination file should be overwritten.
-u value
--user=value
Required none The user performing the operation. This should be an administrator. Unless the user is part of the configured default domain, the name of the user must include the user's domain name. For example, DOMAIN\user or user@domain.