Retrieves the details of all trunks.
GET
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/
trunk_status string |
Filters trunks based on trunk status. |
secure boolean |
Filters trunks based on whether they’re secure. |
trunk_directionstring |
Filters trunks based on trunk direction. |
ipacl_uuidstring |
Filters trunks based on IP access control list. |
credential_uuidstring |
Filters trunks based on credentials. |
primary_uri_uuidstring |
Filters trunks based on primary URI. |
fallback_uri_uuidstring |
Filters trunks based on fallback URI. |
limitinteger |
A limit on the number of results per page. limit can range between 1 and 20, and the default is 20. |
offsetinteger |
A pagination cursor to denote the number of objects by which the results should be offset. Defaults to 0. |
A dictionary with an objects property that contains an array of trunk objects.
{
"api_id": "a04ad809-3b78-4bbe-9baf-acfc7800b10f",
"meta": {
"limit": 2,
"offset": 0,
"total_count": 10,
"previous": null,
"next": "v1/Account/{auth_id}/Zentrunk/Trunk/?limit=2&offset=2"
},
"objects": [
{
"name": "trunk_name_1",
"trunk_id":"21784177241578",
"trunk_domain":"21784177241578.zt.plivo.com"
"trunk_status": "enabled",
"secure": true,
"trunk_direction": "outbound",
"ipacl_uuid": "90b6eb07-796c-4d86-a4fd-44ed11667ddb",
"credential_uuid": "eb07-796c-4d86-a4fd-44ed11667ddb",
"primary_uri_uuid": null,
"fallback_uri_uuid": null
},
{
"name": "trunk_name_2",
"trunk_id":"31784177241575",
"trunk_domain":"31784177241575.zt.plivo.com"
"trunk_status": "enabled",
"secure": false,
"trunk_direction": "inbound",
"ipacl_uuid": null,
"credential_uuid": null,
"primary_uri_uuid": "90b6eb07-796c-4d86-a4fd-44ed11667ddb",
"fallback_uri_uuid": "796c-4d86-a4fd-44ed11667ddb-eb07"
}
]
}
1
2
curl -i --user AUTH_ID:AUTH_TOKEN \
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/Trunk/