API Endpoint
The IP Access Control List Object
An IP Access Control List (IP ACL) contains a set of whitelisted IP addresses that can send SIP traffic to your outbound trunk.Attributes
Unique identifier for the IP ACL.
Friendly name for the IP ACL.
List of whitelisted IP addresses.
Example Object
List All IP Access Control Lists
Get all IP ACLs for your account.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/
Query Parameters
Response
Unique identifier for the API request.
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching IP access control lists).Array of IP access control list objects — see The IP Access Control List Object.
Example
cURL
Retrieve an IP Access Control List
Get details of a specific IP ACL.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Response
Unique identifier for the IP ACL.
Friendly name for the IP ACL.
List of whitelisted IP addresses.
Example
cURL
Create an IP Access Control List
Create a new IP whitelist for SIP trunk authentication.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
IP access control list created successfully. on a successful creation.Unique identifier for the IP ACL.
Error Codes
Example
cURL
Update an IP Access Control List
Modify an existing IP ACL’s name or IP addresses.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
IP access control list updated successfully. on a successful update.Unique identifier for the IP ACL.
Updating
ip_addresses replaces the entire list. Include all IP addresses you want whitelisted.Example
cURL
Delete an IP Access Control List
Permanently delete an IP ACL.HTTP Request
DELETE https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Response
HTTP 204 No ContentExample
cURL
Usage with Trunks
After creating an IP ACL, attach it to an outbound trunk.Example
cURL
IP ACL vs Credentials
You can use either method (or both) for outbound trunk authentication.
Related
- Trunks - Create and manage SIP trunks
- Credentials - Alternative authentication via username/password