Update an IpAddress resource.
IP addresses that have access to a SIP Domain
Update an IpAddress resource.
Path parameters
-
The unique id of the Account responsible for this resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The IpAccessControlList Sid that identifies the IpAddress resources to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AL[0-9a-fA-F]{32}$
. -
A 34 character string that identifies the IpAddress resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IP[0-9a-fA-F]{32}$
.
Body
-
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.
-
A human readable descriptive text for this resource, up to 255 characters long.
-
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.
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'IpAddress=192.168.1.1&FriendlyName=friendly_name&CidrPrefixLength=32'
{"IpAddress"=>"192.168.1.1", "FriendlyName"=>"friendly_name", "CidrPrefixLength"=>32}
{
"sid": "IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/IpAccessControlLists/ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IpAddresses/IPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"ip_address": "192.168.1.1",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Mon, 20 Jul 2015 17:27:10 +0000",
"date_updated": "Mon, 20 Jul 2015 17:27:10 +0000",
"friendly_name": "friendly_name",
"cidr_prefix_length": 32,
"ip_access_control_list_sid": "ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}