List of properties on sessCfg
object that should be kept secret and
may not appear in Imperative log files.
Create a REST session configuration object starting with the supplied initialSessCfg and retrieving connection properties from the command line arguments (or environment, or profile). If required connection properties are missing we interactively prompt the user for the values. for any of the following properties: host port user name password
Any prompt will timeout after 30 seconds so that this function can be run from an automated script, and will not indefinitely hang that script.
In addition to properties that we prompt for, we will also add the following properties to the session configuration if they are available. type tokenType tokenValue
An initial session configuration (like ISession, or other
specially defined configuration) that contains your desired
session configuration properties.
The arguments specified by the user on the command line
(or in environment, or in profile). The contents of the
supplied cmdArgs will be modified.
Options that alter our connection actions. See IOptionsForAddConnProps.
The connOpts parameter need not be supplied.
A session configuration object with connection information added to the initialSessCfg. Its intended use is for our caller to create a session for a REST Client.
Handle prompting for clients. If in a CLI environment, use the IHandlerParameters.response object prompt method.
Prompts the user to input session config values in a CLI environment.
This is the default implementation of the getValuesBack
callback when
connOpts.doPrompting
is true.
Options for adding connection properties
Name-value pairs of connection properties
Load base profile property schema for connection properties.
CLI handler parameters object
List of ISessCfg properties to prompt for
Key-value pairs of ISessCfg property name and profile property schema
Load list of secure property names defined in team config.
CLI handler parameters object
List of ISessCfg properties to prompt for
Log the session configuration that resulted from the addition of credentials. Hide the password.
The session configuration to be logged.
Confirm whether the specified property has a value.
the property key to be confirmed.
true is the property exists and has a value. false otherwise.
Resolve the overlapping or mutually exclusive properties that can occur. Ensure that the resulting session configuration object contains only the applicable properties. The contents of the supplied sessCfg, cmdArgs, and connOpts will be modified.
An initial session configuration that contains your desired
session configuration properties.
The arguments specified by the user on the command line
(or in environment, or in profile)
Options that alter our actions. See IOptionsForAddConnProps.
The connOpts parameter need not be supplied.
The only option values used by this function are:
connOpts.requestToken
connOpts.defaultTokenType
Determine if we want to request a token. Set the session's type and tokenType accordingly.
The session configuration to be updated.
Options that alter our actions. See IOptionsForAddConnProps.
The type of token that we expect to receive.
List of prompt messages that is used when the CLI prompts for session config values.
Generated using TypeDoc
This class adds connection information to an existing session configuration object for making REST API calls with the Imperative RestClient.