-
Notifications
You must be signed in to change notification settings - Fork 1
import target
Usage:
tbutil [{cred}] import target [-j] [-create|-edit] [-ask-secrets] [-secret ..] [-retain-secrets] {file_name}
tbutil [{cred}] import targets [-clean] {directory_name}
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:
- 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. - Use the
-ask-secrets
option withimport 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. - 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.
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"
NB: This WIKI is a work in progress and is known to be incomplete and inaccurate in places as it stands.
Starting points
Popular pages