Package com.ngrok.services
Class Tunnels
java.lang.Object
com.ngrok.services.Tunnels
Tunnels provide endpoints to access services exposed by a running ngrok
agent tunnel session or an SSH reverse tunnel session.
See also https://ngrok.com/docs/api#api-tunnels.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A builder object encapsulating state for an unsent Get API call.class
A builder object encapsulating state for an unsent List API call. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the status of a tunnel by ID See also https://ngrok.com/docs/api#api-tunnels-get.list()
List all online tunnels currently running on the account.
-
Constructor Details
-
Tunnels
Creates a new sub-client for Tunnels.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
list
List all online tunnels currently running on the account. See also https://ngrok.com/docs/api#api-tunnels-list.- Returns:
- a call builder for this API call
-
get
Get the status of a tunnel by ID See also https://ngrok.com/docs/api#api-tunnels-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-