SIP IpAccessControlListMapping Resource
IpAccessControlListMapping resources contain the list of IpAccessControlList resources associated with this domain. IpAccessControlList resources contain the IpAddress resources that describe the IP addresses with access to the SIP Domain.
When an INVITE is received for a SIP Domain, the source IP address must be in one of the mapped lists to be accepted.
Resource properties
date_created
type: string<date-time-rfc-2822>
date_updated
type: string<date-time-rfc-2822>
friendly_name
type: string
The string that you assigned to describe the resource.
sid
type: SID<AL>
The unique string that that we created to identify the IpAccessControlListMapping resource.
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json
URI parameters
DomainSid
type: SID<SD>
The SID of the SIP domain that will contain the new resource.
Request body parameters
IpAccessControlListSid
type: SID<AL>Required
The SID of the IpAccessControlList resource to map to the SIP domain.
_13// Download the helper library from https://www.twilio.com/docs/node/install
_13// Find your Account SID and Auth Token at twilio.com/console
_13// and set the environment variables. See http://twil.io/secure
_13const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13const authToken = process.env.TWILIO_AUTH_TOKEN;
_13const client = require('twilio')(accountSid, authToken);
_13client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13 .ipAccessControlListMappings
_13 .create({ipAccessControlListSid: 'ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
_13 .then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.sid));
_10 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
_10 "date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
_10 "friendly_name": "friendly_name",
_10 "sid": "ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json
URI parameters
DomainSid
type: SID<SD>
The SID of the SIP domain that contains the resource to fetch.
Sid
type: SID<AL>
The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch.
_13// Download the helper library from https://www.twilio.com/docs/node/install
_13// Find your Account SID and Auth Token at twilio.com/console
_13// and set the environment variables. See http://twil.io/secure
_13const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13const authToken = process.env.TWILIO_AUTH_TOKEN;
_13const client = require('twilio')(accountSid, authToken);
_13client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13 .ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13 .then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.friendlyName));
_10 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10 "date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
_10 "date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
_10 "friendly_name": "friendly_name",
_10 "sid": "ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json
URI parameters
DomainSid
type: SID<SD>
The SID of the SIP domain that contains the resources to read.
PageSize
type: integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Page
type: integer
The page index. This value is simply for client state.
PageToken
type: string
The page token. This is provided by the API.
_13// Download the helper library from https://www.twilio.com/docs/node/install
_13// Find your Account SID and Auth Token at twilio.com/console
_13// and set the environment variables. See http://twil.io/secure
_13const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13const authToken = process.env.TWILIO_AUTH_TOKEN;
_13const client = require('twilio')(accountSid, authToken);
_13client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13 .ipAccessControlListMappings
_13 .then(ipAccessControlListMappings => ipAccessControlListMappings.forEach(i => console.log(i.sid)));
_19 "first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19 "previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19 "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_19 "date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
_19 "date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
_19 "friendly_name": "friendly_name",
_19 "sid": "ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_19 "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19 "next_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=50",
DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json
URI parameters
DomainSid
type: SID<SD>
The SID of the SIP domain that contains the resources to delete.
Sid
type: SID<AL>
The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete.
_12// Download the helper library from https://www.twilio.com/docs/node/install
_12// Find your Account SID and Auth Token at twilio.com/console
_12// and set the environment variables. See http://twil.io/secure
_12const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12const authToken = process.env.TWILIO_AUTH_TOKEN;
_12const client = require('twilio')(accountSid, authToken);
_12client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12 .ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')