Package com.ngrok.services
Class FailoverBackends
java.lang.Object
com.ngrok.services.FailoverBackends
A Failover backend defines failover behavior within a list of referenced
backends. Traffic is sent to the first backend in the list. If that backend
is offline or no connection can be established, ngrok attempts to connect to
the next backend in the list until one is successful.
See also https://ngrok.com/docs/api#api-failover-backends.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A builder object encapsulating state for an unsent Create API call.class
A builder object encapsulating state for an unsent Delete API call.class
A builder object encapsulating state for an unsent Get API call.class
A builder object encapsulating state for an unsent List API call.class
A builder object encapsulating state for an unsent Update API call. -
Constructor Summary
ConstructorDescriptionFailoverBackends
(NgrokApiClient apiClient) Creates a new sub-client for FailoverBackends. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new Failover backend See also https://ngrok.com/docs/api#api-failover-backends-create.Delete a Failover backend by ID.Get detailed information about a Failover backend by ID See also https://ngrok.com/docs/api#api-failover-backends-get.list()
List all Failover backends on this account See also https://ngrok.com/docs/api#api-failover-backends-list.Update Failover backend by ID See also https://ngrok.com/docs/api#api-failover-backends-update.
-
Constructor Details
-
FailoverBackends
Creates a new sub-client for FailoverBackends.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new Failover backend See also https://ngrok.com/docs/api#api-failover-backends-create.- Returns:
- a call builder for this API call
-
delete
Delete a Failover backend by ID. See also https://ngrok.com/docs/api#api-failover-backends-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about a Failover backend by ID See also https://ngrok.com/docs/api#api-failover-backends-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all Failover backends on this account See also https://ngrok.com/docs/api#api-failover-backends-list.- Returns:
- a call builder for this API call
-
update
Update Failover backend by ID See also https://ngrok.com/docs/api#api-failover-backends-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-