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

SIP Domain Registration CredentialListMapping Resource


The SIP Domain Registration CredentialListMappings subresource represents the CredentialList instances associated with this domain's registration.

If a domain registration is received for a domain with a Credential List mapped to it, Twilio will challenge the request. Your system will need to authenticate with a username and password. The username and password must be in one of the mapped lists for the registration to be accepted


SIP Domain Registration CredentialListMapping properties

sip-domain-registration-credentiallistmapping-properties page anchor
Resource properties
account_sidtype: SID<AC>Not PII

date_createdtype: string<DATE TIME RFC 2822>Not PII

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


date_updatedtype: string<DATE TIME RFC 2822>Not PII

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_nametype: stringPII MTL: 0 days

The string that you assigned to describe the resource.


sidtype: SID<CL>Not PII

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


Create a SIP Domain Registration CredentialListMapping resource

create-a-sip-domain-registration-credentiallistmapping-resource page anchor
POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json

Parameters

create-parameters page anchor
URI parameters
AccountSidtype: SID<AC>Not PII
Path Parameter

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


DomainSidtype: SID<SD>Not PII
Path Parameter

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


Request body parameters
CredentialListSidtype: SID<CL>Not PII
Required

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

Create Auth Registrations Credential List Mapping

create-auth-registrations-credential-list-mapping 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
.registrations
_13
.credentialListMappings
_13
.create({credentialListSid: 'CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
_13
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_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": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_10
}


Fetch a SIP Domain Registration CredentialListMapping resource

fetch-a-sip-domain-registration-credentiallistmapping-resource page anchor
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json

URI parameters
AccountSidtype: SID<AC>Not PII
Path Parameter

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


DomainSidtype: SID<SD>Not PII
Path Parameter

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


Sidtype: SID<CL>Not PII
Path Parameter

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

Fetch Auth Registrations Credential List Mapping

fetch-auth-registrations-credential-list-mapping 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
.registrations
_13
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_13
.fetch()
_13
.then(auth_registrations_credential_list_mapping => console.log(auth_registrations_credential_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": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_10
}


Read a SIP Domain Registration CredentialListMapping resource

read-a-sip-domain-registration-credentiallistmapping-resource page anchor
GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json

URI parameters
AccountSidtype: SID<AC>Not PII
Path Parameter

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


DomainSidtype: SID<SD>Not PII
Path Parameter

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


PageSizetype: integerNot PII
Query Parameter

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


Pagetype: integerNot PII
Query Parameter

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


PageTokentype: stringNot PII
Query Parameter

The page token. This is provided by the API.

Read Auth Registrations Credential List Mapping

read-auth-registrations-credential-list-mapping 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
.registrations
_13
.credentialListMappings
_13
.list({limit: 20})
_13
.then(credentialListMappings => credentialListMappings.forEach(c => console.log(c.sid)));

Output

_19
{
_19
"first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Registrations/CredentialListMappings.json?PageSize=50&Page=0",
_19
"end": 0,
_19
"previous_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Registrations/CredentialListMappings.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": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
_19
}
_19
],
_19
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/Domains/SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Auth/Registrations/CredentialListMappings.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/Registrations/CredentialListMappings.json?PageSize=50&Page=50",
_19
"page": 0
_19
}


Delete a SIP Domain Registration CredentialListMapping resource

delete-a-sip-domain-registration-credentiallistmapping-resource page anchor
DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json

URI parameters
AccountSidtype: SID<AC>Not PII
Path Parameter

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


DomainSidtype: SID<SD>Not PII
Path Parameter

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


Sidtype: SID<CL>Not PII
Path Parameter

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

Delete Auth Registrations Credential List Mapping

delete-auth-registrations-credential-list-mapping 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
.registrations
_12
.credentialListMappings('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.remove();


Rate this page: