Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

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.


SIP IpAccessControlListMapping properties

sip-ipaccesscontrollistmapping-properties page anchor
account_sidSID<AC>
Not PII

The SID of the Account(link takes you to an external page) that created the IpAccessControlListMapping resource.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

date_createdstring<date-time-rfc-2822>

The date and time in GMT that the resource was created specified in RFC 2822(link takes you to an external page) format.


date_updatedstring<date-time-rfc-2822>

The date and time in GMT that the resource was last updated specified in RFC 2822(link takes you to an external page) format.


friendly_namestring
PII MTL: 0 days

The string that you assigned to describe the resource.


sidSID<AL>

The unique string that that we created to identify the IpAccessControlListMapping resource.

Pattern: ^AL[0-9a-fA-F]{32}$Min length: 34Max length: 34

Create a SIP IpAccessControlListMapping resource

create-a-sip-ipaccesscontrollistmapping-resource page anchor
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json

Path parameters

path-parameters page anchor
AccountSidSID<AC>required

The SID of the Account(link takes you to an external page) that will create the resource.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

DomainSidSID<SD>required

The SID of the SIP domain that will contain the new resource.

Pattern: ^SD[0-9a-fA-F]{32}$Min length: 34Max length: 34
IpAccessControlListSidSID<AL>required

The SID of the IpAccessControlList resource to map to the SIP domain.

Pattern: ^AL[0-9a-fA-F]{32}$Min length: 34Max length: 34

Create a SIP IpAccessControlListMapping resource

create-a-sip-ipaccesscontrollistmapping-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_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
_13
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13
const authToken = process.env.TWILIO_AUTH_TOKEN;
_13
const client = require('twilio')(accountSid, authToken);
_13
_13
client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.auth
_13
.calls
_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));

Output

_10
{
_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"
_10
}


Fetch a SIP IpAccessControlListMapping resource

fetch-a-sip-ipaccesscontrollistmapping-resource page anchor
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json

AccountSidSID<AC>required

The SID of the Account(link takes you to an external page) that created the IpAccessControlListMapping resource to fetch.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

DomainSidSID<SD>required

The SID of the SIP domain that contains the resource to fetch.

Pattern: ^SD[0-9a-fA-F]{32}$Min length: 34Max length: 34

SidSID<AL>required

The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch.

Pattern: ^AL[0-9a-fA-F]{32}$Min length: 34Max length: 34

Fetch a SIP IpAccessControlListMapping resource

fetch-a-sip-ipaccesscontrollistmapping-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_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
_13
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13
const authToken = process.env.TWILIO_AUTH_TOKEN;
_13
const client = require('twilio')(accountSid, authToken);
_13
_13
client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.auth
_13
.calls
_13
.ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.fetch()
_13
.then(auth_calls_ip_access_control_list_mapping => console.log(auth_calls_ip_access_control_list_mapping.friendlyName));

Output

_10
{
_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"
_10
}


Read multiple SIP IpAccessControlListMapping resources

read-multiple-sip-ipaccesscontrollistmapping-resources page anchor
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json

AccountSidSID<AC>required

The SID of the Account(link takes you to an external page) that created the IpAccessControlListMapping resources to read.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

DomainSidSID<SD>required

The SID of the SIP domain that contains the resources to read.

Pattern: ^SD[0-9a-fA-F]{32}$Min length: 34Max length: 34
PageSizeinteger

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

Pageinteger

The page index. This value is simply for client state.

Minimum: 0

PageTokenstring

The page token. This is provided by the API.

Read multiple SIP IpAccessControlListMapping resources

read-multiple-sip-ipaccesscontrollistmapping-resources-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_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
_13
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_13
const authToken = process.env.TWILIO_AUTH_TOKEN;
_13
const client = require('twilio')(accountSid, authToken);
_13
_13
client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.auth
_13
.calls
_13
.ipAccessControlListMappings
_13
.list({limit: 20})
_13
.then(ipAccessControlListMappings => ipAccessControlListMappings.forEach(i => console.log(i.sid)));

Output

_19
{
_19
"first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19
"end": 0,
_19
"previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19
"contents": [
_19
{
_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
}
_19
],
_19
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=0",
_19
"page_size": 50,
_19
"start": 0,
_19
"next_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Calls/IpAccessControlListMappings.json?PageSize=50&Page=50",
_19
"page": 0
_19
}


Delete a SIP IpAccessControlListMapping resource

delete-a-sip-ipaccesscontrollistmapping-resource page anchor
DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json

AccountSidSID<AC>required

The SID of the Account(link takes you to an external page) that created the IpAccessControlListMapping resources to delete.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

DomainSidSID<SD>required

The SID of the SIP domain that contains the resources to delete.

Pattern: ^SD[0-9a-fA-F]{32}$Min length: 34Max length: 34

SidSID<AL>required

The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete.

Pattern: ^AL[0-9a-fA-F]{32}$Min length: 34Max length: 34

Delete a SIP IpAccessControlListMapping resource

delete-a-sip-ipaccesscontrollistmapping-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_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
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.sip.domains('SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.auth
_12
.calls
_12
.ipAccessControlListMappings('ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.remove();


Rate this page: