| Connection {mstrio} | R Documentation |
Connect to the MicroStrategy environment.
Description
Allows to establish, renew, check status and close the connection with MicroStrategy Intelligence Server.
Public fields
base_urlURL of the MicroStrategy REST API server.
usernameYour username.
passwordYour password.
project_nameName of the connected MicroStrategy Project. One of project name or project id is necessary.
project_idID of the connected MicroStrategy Project. One of project name or project id is necessary.
login_modeSpecifies authentication mode to use. Standard = 1 (default) or LDAP = 16.
ssl_verifyIf True (default), verifies the server's SSL certificates with each request.
web_versionThe current web version
iserver_versionThe current I-Server version
auth_tokenThe authentication token returned by the I-Server
cookiesCookies
identity_tokenIdentity token for delegated session. Used for connection initialized by GUI.
verboseIf True (default), displays additional messages.
Methods
Public methods
Method new()
Establishes new connection with MicroStrategy Intelligence Server.
Usage
Connection$new( base_url, username = NULL, password = NULL, project_name = NULL, project_id = NULL, login_mode = 1, ssl_verify = TRUE, proxies = NULL, identity_token = NULL, verbose = TRUE )
Arguments
base_urlURL of the MicroStrategy REST API server.
usernameYour username.
passwordYour password.
project_nameName of the connected MicroStrategy Project. One of project name or project id is necessary.
project_idID of the connected MicroStrategy Project. One of project name or project id is necessary.
login_modeSpecifies authentication mode to use. Standard = 1 (default) or LDAP = 16.
ssl_verifyIf True (default), verifies the server's SSL certificates with each request.
proxiesIf NULL (default) proxy is not defined. To set proxy use formula: (<username>:<password>@)<ip_address>:<port> ()-optional
identity_tokenIdentity token for delegated session. Used for connection initialized by GUI.
verboseIf True, displays additional messages. FALSE by default.
Returns
A new "Connection" object.
Method connect()
Establishes new connection with MicroStrategy Intelligence Server, or renews active connection.
Usage
Connection$connect()
Method delegate()
Delegates identity token to get authentication token and connect to MicroStrategy Intelligence Server
Usage
Connection$delegate()
Method get_identity_token()
Gets identity token using existing authentication token
Usage
Connection$get_identity_token()
Method close()
Closes a connection with MicroStrategy REST API.
Usage
Connection$close()
Method renew()
Renews connection with MicroStrategy REST API.
Usage
Connection$renew()
Method status()
Displays status of the connection with MicroStrategy REST API.
Usage
Connection$status()
Method clone()
The objects of this class are cloneable with this method.
Usage
Connection$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
## Not run:
# Create a connection object.
connection = Connection$new(base_url, username, password, project_name)
# Connect or renew connection.
connection$connect()
# Check connection status.
connection$status()
# Renew connection to reset timeout counter.
connection$renew()
# Close connection.
connection$close()
## End(Not run)