Package com.ngrok.services
Class ReservedDomains
java.lang.Object
com.ngrok.services.ReservedDomains
Reserved Domains are hostnames that you can listen for traffic on. Domains
can be used to listen for http, https or tls traffic. You may use a domain
that you own by creating a CNAME record specified in the returned resource.
This CNAME record points traffic for that domain to ngrok's edge servers.
See also https://ngrok.com/docs/api#api-reserved-domains.
-
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 DeleteCertificate API call.class
A builder object encapsulating state for an unsent DeleteCertificateManagementPolicy 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
ConstructorDescriptionReservedDomains
(NgrokApiClient apiClient) Creates a new sub-client for ReservedDomains. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new reserved domain.Delete a reserved domain.Detach the certificate attached to a reserved domain.Detach the certificate management policy attached to a reserved domain.Get the details of a reserved domain.list()
List all reserved domains on this account.Update the attributes of a reserved domain.
-
Constructor Details
-
ReservedDomains
Creates a new sub-client for ReservedDomains.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-create.- Parameters:
name
- the domain name to reserve. It may be a full domain name like app.example.com. If the name does not contain a '.' it will reserve that subdomain on ngrok.io.- Returns:
- a call builder for this API call
-
delete
Delete a reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get the details of a reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all reserved domains on this account. See also https://ngrok.com/docs/api#api-reserved-domains-list.- Returns:
- a call builder for this API call
-
update
Update the attributes of a reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-
deleteCertificateManagementPolicy
public ReservedDomains.DeleteCertificateManagementPolicyCallBuilder deleteCertificateManagementPolicy(String id) Detach the certificate management policy attached to a reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-delete-certificate-management-policy.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
deleteCertificate
Detach the certificate attached to a reserved domain. See also https://ngrok.com/docs/api#api-reserved-domains-delete-certificate.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-