Skip to contentSkip to navigationSkip to topbar
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
Property nameTypeRequiredDescriptionChild properties
account_sidSID<AC>Optional
Not PII

The SID of the Account that created the CredentialListMapping resource.

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

date_updatedstring<date-time-rfc-2822>Optional

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_namestringOptional
PII MTL: 0 days

The string that you assigned to describe the resource.


sidSID<CL>Optional

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

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

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

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account 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
Encoding type:application/x-www-form-urlencoded
SchemaExample
Property nameTypeRequiredDescriptionChild properties
CredentialListSidSID<CL>required

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

Pattern: ^CL[0-9a-fA-F]{32}$Min length: 34Max length: 34
Create Auth Registrations Credential List MappingLink to code sample: Create Auth Registrations Credential List Mapping
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function createSipAuthRegistrationsCredentialListMapping() {
11
const credentialListMapping = await client.sip
12
.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
13
.auth.registrations.credentialListMappings.create({
14
credentialListSid: "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
15
});
16
17
console.log(credentialListMapping.accountSid);
18
}
19
20
createSipAuthRegistrationsCredentialListMapping();

Output

1
{
2
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
3
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
4
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
5
"friendly_name": "friendly_name",
6
"sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
7
}

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

Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account that created the CredentialListMapping 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<CL>required

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

Pattern: ^CL[0-9a-fA-F]{32}$Min length: 34Max length: 34
Fetch Auth Registrations Credential List MappingLink to code sample: Fetch Auth Registrations Credential List Mapping
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function fetchSipAuthRegistrationsCredentialListMapping() {
11
const credentialListMapping = await client.sip
12
.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
13
.auth.registrations.credentialListMappings(
14
"CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
15
)
16
.fetch();
17
18
console.log(credentialListMapping.accountSid);
19
}
20
21
fetchSipAuthRegistrationsCredentialListMapping();

Output

1
{
2
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
3
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
4
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
5
"friendly_name": "friendly_name",
6
"sid": "CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
7
}

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

Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account that created the CredentialListMapping 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
Property nameTypeRequiredPIIDescription
PageSizeintegerOptional

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

Minimum: 1Maximum: 1000

PageintegerOptional

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

Minimum: 0

PageTokenstringOptional

The page token. This is provided by the API.

Read Auth Registrations Credential List MappingLink to code sample: Read Auth Registrations Credential List Mapping
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function listSipAuthRegistrationsCredentialListMapping() {
11
const credentialListMappings = await client.sip
12
.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
13
.auth.registrations.credentialListMappings.list({ limit: 20 });
14
15
credentialListMappings.forEach((c) => console.log(c.accountSid));
16
}
17
18
listSipAuthRegistrationsCredentialListMapping();

Output

1
{
2
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Auth/Registrations/CredentialListMappings.json?PageSize=50&Page=0",
3
"end": 0,
4
"previous_page_uri": null,
5
"contents": [],
6
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Auth/Registrations/CredentialListMappings.json?PageSize=50&Page=0",
7
"page_size": 50,
8
"start": 0,
9
"next_page_uri": null,
10
"page": 0
11
}

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

Property nameTypeRequiredPIIDescription
AccountSidSID<AC>required

The SID of the Account that created the CredentialListMapping 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<CL>required

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

Pattern: ^CL[0-9a-fA-F]{32}$Min length: 34Max length: 34
Delete Auth Registrations Credential List MappingLink to code sample: Delete Auth Registrations Credential List Mapping
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function deleteSipAuthRegistrationsCredentialListMapping() {
11
await client.sip
12
.domains("SDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
13
.auth.registrations.credentialListMappings(
14
"CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
15
)
16
.remove();
17
}
18
19
deleteSipAuthRegistrationsCredentialListMapping();

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.