Package com.ngrok.services
Class Credentials
java.lang.Object
com.ngrok.services.Credentials
Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
agent to connect the ngrok service as your account. They are installed with
the
ngrok config add-authtoken
command or by specifying it in the
ngrok.yml
configuration file with the authtoken
property.
See also https://ngrok.com/docs/api#api-credentials.-
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
ConstructorDescriptionCredentials
(NgrokApiClient apiClient) Creates a new sub-client for Credentials. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new tunnel authtoken credential.Delete a tunnel authtoken credential by ID See also https://ngrok.com/docs/api#api-credentials-delete.Get detailed information about a tunnel authtoken credential See also https://ngrok.com/docs/api#api-credentials-get.list()
List all tunnel authtoken credentials on this account See also https://ngrok.com/docs/api#api-credentials-list.Update attributes of an tunnel authtoken credential by ID See also https://ngrok.com/docs/api#api-credentials-update.
-
Constructor Details
-
Credentials
Creates a new sub-client for Credentials.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new tunnel authtoken credential. This authtoken credential can be used to start a new tunnel session. The response to this API call is the only time the generated token is available. If you need it for future use, you must save it securely yourself. See also https://ngrok.com/docs/api#api-credentials-create.- Returns:
- a call builder for this API call
-
delete
Delete a tunnel authtoken credential by ID See also https://ngrok.com/docs/api#api-credentials-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about a tunnel authtoken credential See also https://ngrok.com/docs/api#api-credentials-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all tunnel authtoken credentials on this account See also https://ngrok.com/docs/api#api-credentials-list.- Returns:
- a call builder for this API call
-
update
Update attributes of an tunnel authtoken credential by ID See also https://ngrok.com/docs/api#api-credentials-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-