Network ACLs

List all network ACLs

get

Returns the list of Network ACLs belonging to a specific VPC. A Network ACL is created automatically for a subnet. To configure the Network ACL, use the network ACL name you defined during the network setup process to find the corresponding network ACL ID.

Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the Network ACL belongs.

Query parameters
pageintegerOptional

The order number of pages for pagination.

Default: 1
page_sizeintegerOptional

The number of items per page.

Default: 25
Responses
chevron-right
200

Successful response - returns the list of Network ACLs.

application/json
totalintegerOptional

Total number of NACLs is created within a VPC.

Example: 4
get
/api/v2/vmware/vpc/{vpc_id}/hpc/network-acls
200

Successful response - returns the list of Network ACLs.

Get a network ACL details

get

Returns the details of a specific Network ACL belonging to a given VPC.

Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the Network ACL belongs.

network_acl_idstringRequired

The unique identifier of the network acl come from list network acls

Responses
chevron-right
200

Successful response - returns the details of the Network ACL.

application/json
statusbooleanOptionalExample: true
get
/api/v2/vmware/vpc/{vpc_id}/hpc/network-acls/{network_acl_id}
200

Successful response - returns the details of the Network ACL.

Update a network ACL

patch

Update name or description of a Network ACL.

Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the Network ACL belongs.

network_acl_idstringRequired

The unique identifier of the network acl come from list network acls

Body
namestringRequired

The new name for the Network ACL that you want to update.

Example: Subnet-test-2
descriptionstringOptional

The new description for the Network ACL that you want to update.

Responses
chevron-right
200

Successful response - Returns a network ACL with updated description.

application/json
statusbooleanOptionalExample: true
patch
/api/v2/vmware/vpc/{vpc_id}/hpc/network-acls/{network_acl_id}
200

Successful response - Returns a network ACL with updated description.

List all rule groups of a Network ACL

get

Each Network ACL comprises 2 rule groups (or firewall policies):

  • Inbound (ingress) rules: An inbound rule permits servers to receive traffic.

  • Outbound (egress) rules: An outbound rule permits servers to send traffic out. You need to obtain the 'firewall_group_id' here to update the rules.

Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the Network ACL belongs.

network_acl_idstringRequired

The unique identifier of the network ACL comes from the "List all network ACLs" API.

Responses
chevron-right
200

Successful response—returns all rule groups of Network ACL.

application/json
totalintegerOptional

The number of rule groups.

Example: 2
get
/api/v2/vmware/vpc/{vpc_id}/hpc/network-acls/{network_acl_id}/firewall-policies
200

Successful response—returns all rule groups of Network ACL.

Update a rule of a network ACL

put

Create a new rule or modify existing rules Components of a Network ACL Rule: *Priority: Rules are processed in ascending order by priority number. Once a rule matches the traffic, it is applied, even if higher-numbered priority rules conflict with it. The system automatically increments the priority number, but the user can change it as long as it does not duplicate an existing number. *Type: Specifies the type of traffic, such as HTTP, HTTPS, or ALL. Protocol: NACL supports TCP, UDP, ICMP, or any protocols. *Port: The specific port of the traffic is targeted from 1 to 65535. *Source: For inbound rules, this specifies the origin of the traffic (CIDR range). *Destination: For outbound rules, this specifies the target of the traffic (CIDR range). *Traffic Action: The specified traffic is permitted with Allow or Deny.

Path parameters
vpc_idstringRequired

The unique identifier of the VPC where the Network ACL belongs.

network_acl_idstringRequired

The unique identifier of the network ACL comes from the "List all network ACLs" API.

firewall_policy_idstringRequired

The unique ID of the policy (Obtain this ID by "List all rule groups of a Network ACL" API).

Body
Responses
chevron-right
200

Successful response - Returns all rules of a Network ACL which have been updated.

application/json
totalintegerOptional

The number of rules.

Example: 1
put
/api/v2/vmware/vpc/{vpc_id}/hpc/network-acls/{network_acl_id}/firewall-policies/{firewall_policy_id}/firewall-rules
200

Successful response - Returns all rules of a Network ACL which have been updated.

Last updated

Was this helpful?