Package com.ngrok.services
Class SshCredentials
java.lang.Object
com.ngrok.services.SshCredentials
SSH Credentials are SSH public keys that can be used to start SSH tunnels
via the ngrok SSH tunnel gateway.
See also https://ngrok.com/docs/api#api-ssh-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
ConstructorDescriptionSshCredentials
(NgrokApiClient apiClient) Creates a new sub-client for SshCredentials. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new ssh_credential from an uploaded public SSH key.Delete an ssh_credential by ID See also https://ngrok.com/docs/api#api-ssh-credentials-delete.Get detailed information about an ssh_credential See also https://ngrok.com/docs/api#api-ssh-credentials-get.list()
List all ssh credentials on this account See also https://ngrok.com/docs/api#api-ssh-credentials-list.Update attributes of an ssh_credential by ID See also https://ngrok.com/docs/api#api-ssh-credentials-update.
-
Constructor Details
-
SshCredentials
Creates a new sub-client for SshCredentials.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new ssh_credential from an uploaded public SSH key. This ssh credential can be used to start new tunnels via ngrok's SSH gateway. See also https://ngrok.com/docs/api#api-ssh-credentials-create.- Parameters:
publicKey
- the PEM-encoded public key of the SSH keypair that will be used to authenticate- Returns:
- a call builder for this API call
-
delete
Delete an ssh_credential by ID See also https://ngrok.com/docs/api#api-ssh-credentials-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about an ssh_credential See also https://ngrok.com/docs/api#api-ssh-credentials-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all ssh credentials on this account See also https://ngrok.com/docs/api#api-ssh-credentials-list.- Returns:
- a call builder for this API call
-
update
Update attributes of an ssh_credential by ID See also https://ngrok.com/docs/api#api-ssh-credentials-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-