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)
Options that alter our actions. See IOptionsForAddConnProps.
The options 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.
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.
Determine if we want to use a basic authentication to acquire a token. Set the session configuration accordingly.
The session configuration to be updated.
Options that alter our actions. See IOptionsForAddConnProps.
The type of token that we expect to receive.
Generated using TypeDoc
This class adds connection information to an existing session configuration object for making REST API calls with the Imperative RestClient.