SIP IpAddress Resource
IpAddress resources describe the IP addresses that have access to the SIP Domain.
SIP IpAddress properties
Resource Properties in REST API format | |
---|---|
sid
|
A 34 character string that uniquely identifies this resource. |
account_sid
|
The unique id of the Account that is responsible for this resource. |
friendly_name
|
A human readable descriptive text for this resource, up to 255 characters long. |
ip_address
|
An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. |
cidr_prefix_length
|
An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. |
ip_access_control_list_sid
|
The unique id of the IpAccessControlList resource that includes this resource. |
date_created
|
The date that this resource was created, given as GMT in RFC 2822 format. |
date_updated
|
The date that this resource was last updated, given as GMT in RFC 2822 format. |
uri
|
The URI for this resource, relative to |
Create a SIP IpAddress resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json
You can add up to 100 IP addresses to an IpAccessControlList.
ip_address
must be a complete IP address; wildcards are not supported.
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account responsible for this resource. |
ip_access_control_list_sid
Path
|
The IpAccessControlList Sid with which to associate the created IpAddress resource. |
friendly_name
Required
|
A human readable descriptive text for this resource, up to 255 characters long. |
ip_address
Required
|
An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. |
cidr_prefix_length
Optional
|
An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. |
Example 1
Fetch a SIP IpAddress resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account responsible for this resource. |
ip_access_control_list_sid
Path
|
The IpAccessControlList Sid that identifies the IpAddress resources to fetch. |
sid
Path
|
A 34 character string that uniquely identifies the IpAddress resource to fetch. |
Example 1
Read multiple SIP IpAddress resources
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account responsible for this resource. |
ip_access_control_list_sid
Path
|
The IpAccessControlList Sid that identifies the IpAddress resources to read. |
Example 1
Update a SIP IpAddress resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account responsible for this resource. |
ip_access_control_list_sid
Path
|
The IpAccessControlList Sid that identifies the IpAddress resources to update. |
sid
Path
|
A 34 character string that identifies the IpAddress resource to update. |
ip_address
Optional
|
An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. |
friendly_name
Optional
|
A human readable descriptive text for this resource, up to 255 characters long. |
cidr_prefix_length
Optional
|
An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. |
Example 1
Delete a SIP IpAddress resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json
An HTTP 204 response with no response body indicates successful deletion.
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The unique id of the Account responsible for this resource. |
ip_access_control_list_sid
Path
|
The IpAccessControlList Sid that identifies the IpAddress resources to delete. |
sid
Path
|
A 34 character string that uniquely identifies the resource to delete. |
Example 1
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.