Package com.ngrok.services
Class ApiKeys
java.lang.Object
com.ngrok.services.ApiKeys
API Keys are used to authenticate to the ngrok
API. You may use the API itself
to provision and manage API Keys but you'll need to provision your first
API
key from the API Keys page
on your
ngrok.com dashboard.
See also https://ngrok.com/docs/api#api-api-keys.
-
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
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new API key.Delete an API key by ID See also https://ngrok.com/docs/api#api-api-keys-delete.Get the details of an API key by ID.list()
List all API keys owned by this account See also https://ngrok.com/docs/api#api-api-keys-list.Update attributes of an API key by ID.
-
Constructor Details
-
ApiKeys
Creates a new sub-client for ApiKeys.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new API key. The generated API key can be used to authenticate to the ngrok API. See also https://ngrok.com/docs/api#api-api-keys-create.- Returns:
- a call builder for this API call
-
delete
Delete an API key by ID See also https://ngrok.com/docs/api#api-api-keys-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get the details of an API key by ID. See also https://ngrok.com/docs/api#api-api-keys-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all API keys owned by this account See also https://ngrok.com/docs/api#api-api-keys-list.- Returns:
- a call builder for this API call
-
update
Update attributes of an API key by ID. See also https://ngrok.com/docs/api#api-api-keys-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-