Package com.ngrok.services
Class IpPolicyRules
java.lang.Object
com.ngrok.services.IpPolicyRules
IP Policy Rules are the IPv4 or IPv6 CIDRs entries that
make up an IP Policy.
See also https://ngrok.com/docs/api#api-ip-policy-rules.
-
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
ConstructorDescriptionIpPolicyRules
(NgrokApiClient apiClient) Creates a new sub-client for IpPolicyRules. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new IP policy rule attached to an IP Policy.Delete an IP policy rule.Get detailed information about an IP policy rule by ID.list()
List all IP policy rules on this account See also https://ngrok.com/docs/api#api-ip-policy-rules-list.Update attributes of an IP policy rule by ID See also https://ngrok.com/docs/api#api-ip-policy-rules-update.
-
Constructor Details
-
IpPolicyRules
Creates a new sub-client for IpPolicyRules.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new IP policy rule attached to an IP Policy. See also https://ngrok.com/docs/api#api-ip-policy-rules-create.- Parameters:
cidr
- an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.ipPolicyId
- ID of the IP policy this IP policy rule will be attached toaction
- the action to apply to the policy rule, eitherallow
ordeny
- Returns:
- a call builder for this API call
-
delete
Delete an IP policy rule. See also https://ngrok.com/docs/api#api-ip-policy-rules-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about an IP policy rule by ID. See also https://ngrok.com/docs/api#api-ip-policy-rules-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all IP policy rules on this account See also https://ngrok.com/docs/api#api-ip-policy-rules-list.- Returns:
- a call builder for this API call
-
update
Update attributes of an IP policy rule by ID See also https://ngrok.com/docs/api#api-ip-policy-rules-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-