Members
-
nodeId
-
Set the node ID.
-
nodeId
-
Get the node ID.
-
nodeInstructionAuthBuilder :AuthorizationV2Builder
-
Get the auth builder used for instruction URL pre-authorization values.
Type:
- AuthorizationV2Builder
-
nodeUrlHelperEnvironment :Environment
-
Get the environment used for instruction URL pre-authorization values.
Type:
- Environment
-
sshSession :SshSession
-
A SSH session object.
Type:
Methods
-
baseUrl()
-
Get the base URL to the SolarSSH v1 REST API.
The returned URL uses the configured environment to resolve the
hostUrl, thesolarSshPathcontext path.Returns:
the base URL to SolarSSH
- Type
- string
-
connectTerminalWebSocketAuthBuilder( [nodeId])
-
Configure the instruction auth builder for pre-signing the create session request.
The returned builder will be configured for a
GETrequest using theviewPendingInstructionsUrl()URL.Parameters:
Name Type Argument Description nodeIdnumber <optional>
the node ID to instruct; if not provided the
nodeIdproperty of this object will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
createSshSessionAuthBuilder( [nodeId])
-
Configure the instruction auth builder for pre-signing the create session request.
The returned builder will be configured for a
GETrequest using theviewPendingInstructionsUrl()URL.Parameters:
Name Type Argument Description nodeIdnumber <optional>
the node ID to instruct; if not provided the
nodeIdproperty of this object will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
createSshSessionUrl( [nodeId])
-
Generate a URL for creating a new SolarSSH session.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
the node ID to connect to; if not provided the
nodeIdproperty of this object will be usedReturns:
the URL
- Type
- string
-
httpProxyUrl( [sessionId])
-
Get the URL to the SolarSSH HTTP proxy to the configured SolarNode.
Parameters:
Name Type Argument Description sessionIdstring <optional>
the
SshSessionID to use; if not provided themodule:net~SshUrlHelperMixin#sshSessionIdvalue will be usedReturns:
the HTTP proxy URL
- Type
- string
-
startSshSessionAuthBuilder( [sshSession] [, nodeId])
-
Configure the instruction auth builder for pre-signing the start session request.
The returned builder will be configured for a
POSTrequest using thequeueInstructionUrl()URL with theStartRemoteSshinstruction.Parameters:
Name Type Argument Description sshSessionSshSession <optional>
the session to use; if not provided the
sshSessionproperty of this object will be usednodeIdnumber <optional>
the node ID to instruct; if not provided the
nodeIdproperty of this object will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
startSshSessionUrl( [sessionId])
-
Generate a URL for starting a SolarSSH session.
Parameters:
Name Type Argument Description sessionIdstring <optional>
the
SshSessionID to use; if not provided themodule:net~SshUrlHelperMixin#sshSessionIdvalue will be usedReturns:
the URL
- Type
- string
-
stopSshSessionAuthBuilder( [sshSession] [, nodeId])
-
Configure the instruction auth builder for pre-signing the stop session request.
The returned builder will be configured for a
POSTrequest using thequeueInstructionUrl()URL with theStopRemoteSshinstruction.Parameters:
Name Type Argument Description sshSessionSshSession <optional>
the session to use; if not provided the
sshSessionproperty of this object will be usednodeIdnumber <optional>
the node ID to instruct; if not provided the
nodeIdproperty of this object will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
stopSshSessionUrl( [sessionId])
-
Generate a URL for stopping a SolarSSH session.
Parameters:
Name Type Argument Description sessionIdstring <optional>
the
module:domain/sshSession~SshSessionID to use; if not provided themodule:net~SshUrlHelperMixin#sshSessionIdvalue will be usedReturns:
the URL
- Type
- string
-
terminalWebSocketUrl( [sessionId])
-
Get the URL to the SolarSSH WebSocket termainl connection to the configured SolarNode.
Parameters:
Name Type Argument Description sessionIdstring <optional>
the
SshSessionID to use; if not provided themodule:net~SshUrlHelperMixin#sshSessionIdvalue will be usedReturns:
the WebSocket terminal URL
- Type
- string
-
viewStartRemoteSshInstructionAuthBuilder( [instructionId])
-
Configure the instruction auth builder for signing the request to view the
StartRemoteSshinstruction.The returned builder will be configured with the same URL returned from
module:net~SshUrlHelperMixin#viewStartRemoteSshInstructionUrl.Parameters:
Name Type Argument Description instructionIdnumber <optional>
the instruction ID to view; if not provided the
startInstructionIdproperty of the session will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
viewStartRemoteSshInstructionUrl( [instructionId])
-
Generate a URL for viewing the
StartRemoteSshinstruction.Parameters:
Name Type Argument Description instructionIdnumber <optional>
the instruction ID to view; if not provided the
startInstructionIdproperty of the session will be usedReturns:
the URL
- Type
- string
-
viewStopRemoteSshInstructionAuthBuilder( [instructionId])
-
Configure the instruction auth builder for signing the request to view the
StopRemoteSshinstruction.The returned builder will be configured with the same URL returned from
module:net~SshUrlHelperMixin#viewStopRemoteSshInstructionUrl.Parameters:
Name Type Argument Description instructionIdnumber <optional>
the instruction ID to view; if not provided the
stopInstructionIdproperty of the session will be usedReturns:
the builder
- Type
- AuthorizationV2Builder
-
viewStopRemoteSshInstructionUrl( [instructionId])
-
Generate a URL for viewing the
StopRemoteSshinstruction.Parameters:
Name Type Argument Description instructionIdnumber <optional>
the instruction ID to view; if not provided the
startInstructionIdproperty of the session will be usedReturns:
the URL
- Type
- string