Associate an IP Access Control List with a Trunk
List of IP addresses for accessing a trunk
Associate an IP Access Control List with a Trunk
Path parameters
-
The SID of the Trunk to associate the IP Access Control List with.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^TK[0-9a-fA-F]{32}$
.
Body
-
The SID of the IP Access Control List that you want to associate with the trunk.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AL[0-9a-fA-F]{32}$
.
POST
/v1/Trunks/{TrunkSid}/IpAccessControlLists
curl \
--request POST 'https://trunking.twilio.com/v1/Trunks/{TrunkSid}/IpAccessControlLists' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'IpAccessControlListSid=ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request example
{"IpAccessControlListSid"=>"ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
{
"sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2018-04-30T20:59:06Z",
"date_updated": "2018-04-30T20:59:06Z",
"friendly_name": "friendly_name"
}