IP Policy Rules
Create IP Policy Rule
Create a new IP policy rule attached to an IP Policy.
Request
POST /ip_policy_rules
Example Request
Loading…
Parameters
Name | Type | Description |
---|---|---|
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
ip_policy_id | string | ID of the IP policy this IP policy rule will be attached to |
action | string | the action to apply to the policy rule, either allow or deny |
Response
Returns a 201 response on success
Example Response
Loading…
Fields
Name | Type | Description |
---|---|---|
id | string | unique identifier for this IP policy rule |
uri | string | URI of the IP policy rule API resource |
created_at | string | timestamp when the IP policy rule was created, RFC 3339 format |
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
ip_policy | Ref | object describing the IP policy this IP Policy Rule belongs to |
action | string | the action to apply to the policy rule, either allow or deny |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Delete IP Policy Rule
Delete an IP policy rule.
Request
DELETE /ip_policy_rules/{id}
Example Request
Loading…
Response
Returns a 204 response with no body on success
Get IP Policy Rule
Get detailed information about an IP policy rule by ID.
Request
GET /ip_policy_rules/{id}
Example Request
Loading…
Response
Returns a 200 response on success
Example Response
Loading…
Fields
Name | Type | Description |
---|---|---|
id | string | unique identifier for this IP policy rule |
uri | string | URI of the IP policy rule API resource |
created_at | string | timestamp when the IP policy rule was created, RFC 3339 format |
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
ip_policy | Ref | object describing the IP policy this IP Policy Rule belongs to |
action | string | the action to apply to the policy rule, either allow or deny |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
List IP Policy Rules
List all IP policy rules on this account
Request
GET /ip_policy_rules
Example Request
Loading…
Response
Returns a 200 response on success
Example Response
Loading…
Fields
Name | Type | Description |
---|---|---|
ip_policy_rules | IPPolicyRule | the list of all IP policy rules on this account |
uri | string | URI of the IP policy rule list API resource |
next_page_uri | string | URI of the next page, or null if there is no next page |
IPPolicyRule fields
Name | Type | Description |
---|---|---|
id | string | unique identifier for this IP policy rule |
uri | string | URI of the IP policy rule API resource |
created_at | string | timestamp when the IP policy rule was created, RFC 3339 format |
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
ip_policy | Ref | object describing the IP policy this IP Policy Rule belongs to |
action | string | the action to apply to the policy rule, either allow or deny |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Update IP Policy Rule
Update attributes of an IP policy rule by ID
Request
PATCH /ip_policy_rules/{id}
Example Request
Loading…
Parameters
Name | Type | Description |
---|---|---|
id | string | |
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
Response
Returns a 200 response on success
Example Response
Loading…
Fields
Name | Type | Description |
---|---|---|
id | string | unique identifier for this IP policy rule |
uri | string | URI of the IP policy rule API resource |
created_at | string | timestamp when the IP policy rule was created, RFC 3339 format |
description | string | human-readable description of the source IPs of this IP rule. optional, max 255 bytes. |
metadata | string | arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes. |
cidr | string | an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported. |
ip_policy | Ref | object describing the IP policy this IP Policy Rule belongs to |
action | string | the action to apply to the policy rule, either allow or deny |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |