Skip to content

import target

Chris Lowth edited this page Sep 21, 2022 · 9 revisions

import target, import targets

Usage:

tbutil [{cred}] import target [-j] [-create|-edit] [-ask-secrets] [-secret ..] [-retain-secrets] {file_name}
tbutil [{cred}] import targets [-clean] {directory_name}

Singular version

Note: The target configuration needs to have the passwords added to it (encrypted) before it can be imported. You have three choices to answer this requirement:

  1. Run export target with the -ask-secrets option, which causes it to prompt you for the passwords as it runs. The passwords you enter are added to the exported JSON body. You can also pipe the passwords in on the standard input instead of typing them by hand.
  2. Use the -ask-secrets option with import targets, in which case the questions are asked when you import and do not need to be written to the file. You can also pipe the passwords in on the standard input instead of typing them by hand.
  3. Use the "crypt" command to patch the passwords in to the file after exporting and before importing.

If -retain-secrets is specified and the target already exists, then the password (or other secrets) will not be changed even if a different one is stored in the import file.

Plural version

Imports the targets from JSON files saved in the specified directory (which will normally have been created using "export targets").

If the -clean option is specified then any targets in Turbonomic that are not mentioned in any of the files in the directory will be removed.

See also: "crypt", "delete target", "export target", "list targets", "rediscover target", "validate target"

Clone this wiki locally