Package com.ngrok.services
Class IpRestrictions
java.lang.Object
com.ngrok.services.IpRestrictions
An IP restriction is a restriction placed on the CIDRs that are allowed to
initiate traffic to a specific aspect of your ngrok account. An IP
restriction has a type which defines the ingress it applies to. IP
restrictions can be used to enforce the source IPs that can make API
requests, log in to the dashboard, start ngrok agents, and connect to your
public-facing endpoints.
See also https://ngrok.com/docs/api#api-ip-restrictions.
-
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
ConstructorDescriptionIpRestrictions
(NgrokApiClient apiClient) Creates a new sub-client for IpRestrictions. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-create.Delete an IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-delete.Get detailed information about an IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-get.list()
List all IP restrictions on this account See also https://ngrok.com/docs/api#api-ip-restrictions-list.Update attributes of an IP restriction by ID See also https://ngrok.com/docs/api#api-ip-restrictions-update.
-
Constructor Details
-
IpRestrictions
Creates a new sub-client for IpRestrictions.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-create.- Parameters:
type
- the type of IP restriction. this defines what traffic will be restricted with the attached policies. four values are currently supported:dashboard
,api
,agent
, andendpoints
ipPolicyIds
- the set of IP policy identifiers that are used to enforce the restriction- Returns:
- a call builder for this API call
-
delete
Delete an IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about an IP restriction See also https://ngrok.com/docs/api#api-ip-restrictions-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all IP restrictions on this account See also https://ngrok.com/docs/api#api-ip-restrictions-list.- Returns:
- a call builder for this API call
-
update
Update attributes of an IP restriction by ID See also https://ngrok.com/docs/api#api-ip-restrictions-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-