POST/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json

Create an IP access control list mapping

Creates a mapping between an IP access control list and a SIP domain. Submit IpAccessControlListSid to identify the list to associate with the domain. The response includes the created mapping and its identifiers.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters · 1 body field
AccountSidstringrequired
The account identifier, in the format `AC` followed by 32 hexadecimal characters.
DomainSidstringrequired
The SIP domain identifier, in the format `SD` followed by 32 hexadecimal characters.

Form-encoded details for the IP access control list mapping.

IpAccessControlListSidstringrequired
The unique id of the IP access control list to map to the SIP domain.

1 status code
201Returns the created mapping, including its account and SIP domain identifiers, friendly name, creation and update dates, mapping identifier, and resource URI.
account_sidstringoptional
The unique id of the Account that is responsible for this resource.
date_createdstringoptional
The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
date_updatedstringoptional
The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
domain_sidstringoptional
The unique string that is created to identify the SipDomain resource.
friendly_namestringoptional
A human readable descriptive text for this resource, up to 64 characters long.
sidstringoptional
A 34 character string that uniquely identifies this resource.
uristringoptional
The URI for this resource, relative to `https://api.twilio.com`

Error handling

The AccountSid path parameter must be a 34-character account identifier beginning with AC and followed by 32 hexadecimal characters, and DomainSid must be a 34-character SIP domain identifier beginning with SD and followed by 32 hexadecimal characters. Include IpAccessControlListSid in the request body; it must be 34 characters, begin with AL, and be followed by 32 hexadecimal characters.