REST API: IP アドレス

IpAccessControlList IpAddresses リストサブリソース

IpAccessControlListのIpAddressesサブリソースはリストが含むIPアドレスを表します。それぞれのIPアクセスコントロールリストには最大25個のIPアドレスを追加できます。ワイルドカードは使用できません。IPアドレスを指定下さい。

リソース URI

/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses

リソースのプロパティ

IpAddress インスタンスリソースには、次のプロパティがあります。

プロパティ 説明
Sid このリソースを一意に識別する 34 文字の文字列です。
AccountSid アカウントに対する一意のID
FriendlyName このリソースの、人間が読みやすい形式の説明です。64 文字まで設定できます。
IpAddress トラッフィクを許可する10進数で且つドットで区切られたIPアドレス。TwilioはこのIPアドレスからのSIPリクエストを受け付けます。IPv4(バージョン4)のみサポートします。
DateCreated このリソースが生成された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。
DateUpdated DateUpdated | このリソースが最後に更新された日付の GMT 表記です。 RFC 2822 フォーマットを使用します。
Uri URIリソース、右に関連する https://api.twilio.com

HTTP GET

リストに含まれるIPアドレスをリストで表示します。

GET /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlList/{AclSid}/IpAddresses
Loading Code Samples...
言語
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var ipAddresses = IpAddressResource.Read(
            "AL32a3c49700934481addd5ce1659f04d2");

        foreach (var ipAddress in ipAddresses)
        {
          Console.WriteLine(ipAddress.FriendlyName);
        }
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$ipAddresses = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses
    ->read();

// Loop over the list of ip_addresss and echo a property for each one
foreach ($ipAddresses as $ipAddress) {
    echo $ipAddress->friendlyName;
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

# A list of ip_address objects with the properties described above
ip_addresss = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").list()
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

# Loop over ip_addresss and print out a property for each one
@client.account.sip
       .ip_access_control_lists('AL32a3c49700934481addd5ce1659f04d2')
       .ip_addresses.list.each do |ip_address|
         puts ip_address.friendly_name
       end
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses.list(function(err, data) {
    data.ipAddresses.forEach(function(ipAddress) {
        console.log(ipAddress.friendlyName);
    });
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses
  .each((ipAddress) => {
    console.log(ipAddress.friendlyName);
  });
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    
    
    IpAddressList ipAddresss = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddresses();
    
    // Loop over ipAddresss and print out a property for each one.
    for (IpAddress ipAddress : ipAddresss) {
      System.out.println(ipAddress.getFriendlyName());
    }
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# A list of ip_address objects with the properties described above
ip_addresses = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses \
        .list()

for ip_address in ip_addresses:
    print(ip_address.friendly_name)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var ipAddresss = twilio.ListIpAddresses("AL32a3c49700934481addd5ce1659f04d2", null, null);
    
    foreach (var ipAddress in ipAddresss.IpAddresses)
    {
      Console.WriteLine(ipAddress.FriendlyName);
    }
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Loop over the list of ip_addresss and echo a property for each one
foreach ($client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses as $ip_address) {
    echo $ip_address->friendly_name;
}
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token


# Loop over ip_addresss and print out a property for each one
@client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.list.each do |ip_address|
    puts ip_address.friendly_name
end
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    ResourceSet<IpAddress> ipAddresses =
        IpAddress.reader("AL32a3c49700934481addd5ce1659f04d2").read();

    // Loop over ipAddresses and print out a property for each one.
    for (IpAddress ipAddress : ipAddresses) {
      System.out.println(ipAddress.getFriendlyName());
    }
  }
}
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses.json?PageSize=50&Page=0",
    "previous_page_uri": null,
    "ip_addresses": [
        {
            "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
            "friendly_name": "My office IP Address",
            "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
            "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
            "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
            "ip_address": "55.102.123.124"
        },
        ...
    ],
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses.json?PageSize=50&Page=0",
    "page_size": 50,
    "next_page_uri": null,
    "page": 0
}
<TwilioResponse>
    <IpAddresses [paging data]>
        <IpAddress>
            <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
            <FriendlyName>My office IP Address</FriendlyName>
            <IpAddress>55.102.123.124</IpAddress>
            <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
            <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
            <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
        </IpAddress>
    </IpAddresses>
</TwilioResponse>
全てのIPアドレスを一覧する

HTTP POST

説明付きのリストにIPアドレスを追加します。

POST /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlList/{AclSid}/IpAddresses
Loading Code Samples...
言語
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);


        var ipAddress = IpAddressResource.Create(
            "AL32a3c49700934481addd5ce1659f04d2", "My office IP Address",
            "55.102.123.124");

        Console.WriteLine(ipAddress.Sid);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses
    ->create("My office IP Address", "55.102.123.124");

echo $ipAddress->sid;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").create(friendly_name="My office IP Address",
    ip_address="55.102.123.124")
print(ip_address.sid)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@acl_sid = 'AL32a3c49700934481addd5ce1659f04d2'

ip_address = @client.account.sip.ip_access_control_lists(@acl_sid)
                    .ip_addresses.create(
                      friendly_name: 'My office IP Address',
                      ip_address: '55.102.123.124'
                    )

puts ip_address.friendly_name
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses.create({
    friendlyName: "My office IP Address",
    ipAddress: "55.102.123.124"
}, function(err, ipAddress) {
    process.stdout.write(ipAddress.sid);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses
  .create({
    friendlyName: 'My office IP Address',
    ipAddress: '55.102.123.124',
  })
  .then((ipAddress) => {
    process.stdout.write(ipAddress.sid);
  });
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses \
    -d "FriendlyName=My%20office%20IP%20Address" \
    -d "IpAddress=55.102.123.124" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.factory.sip.IpAddressFactory;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Build a filter for the IpAddressList
    List<NameValuePair> params = new ArrayList<NameValuePair>();
    params.add(new BasicNameValuePair("FriendlyName", "My office IP Address"));
    params.add(new BasicNameValuePair("IpAddress", "55.102.123.124"));
    
    
    IpAddressFactory ipAddressFactory = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddressFactory();
    IpAddress ipAddress = ipAddressFactory.create(params);
    System.out.println(ipAddress.getSid());
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses \
        .create("My office IP Address", "55.102.123.124")

print(ip_address.sid)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    
    var ipAddress = twilio.CreateIpAddress("AL32a3c49700934481addd5ce1659f04d2", "My office IP Address", "55.102.123.124");
    
    Console.WriteLine(ipAddress.Sid);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->create("My office IP Address", "55.102.123.124", array());
echo $ip_address->sid;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.create(:friendly_name => "My office IP Address",
    :ip_address => "55.102.123.124")
puts ip_address.friendly_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    IpAddress ipAddress = IpAddress
        .creator("AL32a3c49700934481addd5ce1659f04d2", "My office IP Address", "55.102.123.124")
        .create();

    System.out.println(ipAddress.getSid());
  }
}
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses.json \
    -d "FriendlyName=My%20office%20IP%20Address" \
    -d "IpAddress=55.102.123.124" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "My office IP Address",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
    "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
        <FriendlyName>My office IP Address</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
    </IpAddress>
</TwilioResponse>
IPアドレスを作成する

HTTP PUT

サポートしません。

HTTP DELETE

サポートしません。

IpAccessControlList IpAddress インスタンスリソース

IpAddressインスタンスサブリソースはリスト中の一つのIPアドレスを表示します。

リソース URI

/2010-04-01/Accounts/{AccountSid}/SIP//IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{IpAddressSid}

HTTP GET

一つのIPアドレスリソースを返します。

GET /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlList/{AclSid}/IpAddresses/{IpAddressSid}
Loading Code Samples...
言語
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var ipAddress = IpAddressResource.Fetch(
            "AL32a3c49700934481addd5ce1659f04d2",
            "IP32a3c49700934481addd5ce1659f04d2");

        Console.WriteLine(ipAddress.IpAddress);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->fetch();

echo $ipAddress->ipAddress;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").get("IP32a3c49700934481addd5ce1659f04d2")
print(ip_address.ip_address)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'
@ip_sid = 'IP32a3c49700934481addd5ce1659f04d2'

@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses(@ip_sid)
                     .fetch

puts @ip_address.ip_address
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").get(function(err, ipAddress) {
    console.log(ipAddress.ipAddress);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .fetch()
  .then((ipAddress) => console.log(ipAddress.ipAddress));
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddress("IP32a3c49700934481addd5ce1659f04d2");
    System.out.println(ipAddress.getIpAddress());
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
        .fetch()

print(ip_address.ip_address)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var ipAddress = twilio.GetIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2");
    
    Console.WriteLine(ipAddress.Address);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->get("IP32a3c49700934481addd5ce1659f04d2");
echo $ip_address->ip_address;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
puts @ip_address.ip_address
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = IpAddress
        .fetcher("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .fetch();

    System.out.println(ipAddress.getFriendlyName());
  }
}
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "My office IP Address",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP32a3c49700934481addd5ce1659f04d2.json",
    "sid": "IP32a3c49700934481addd5ce1659f04d2",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP32a3c49700934481addd5ce1659f04d2</Sid>
        <FriendlyName>My office IP Address</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP32a3c49700934481addd5ce1659f04d2</Uri>
    </IpAddress>
</TwilioResponse>
IPアドレスを取得する

HTTP POST

IPアドレスのエントリ もしくは 記述を変更します。

POST /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlList/{AclSid}/IpAddresses/{IpAddressSid}
Loading Code Samples...
言語
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        IpAddressResource.Update(
            "AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2",
            "Orlandos Nightclub", null);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->update(
        array("friendlyName" => "Orlandos Nightclub")
    );

echo $ipAddress->friendlyName;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").update("IP32a3c49700934481addd5ce1659f04d2", friendly_name="Orlandos Nightclub")
print(ip_address.friendly_name)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses('IP32a3c49700934481addd5ce1659f04d2')
                     .fetch

@ip_address.update(friendly_name: 'Orlandos Nightclub')

puts @ip_address.friendly_name
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").update({
    friendlyName: "Orlandos Nightclub"
}, function(err, ipAddress) {
    console.log(ipAddress.friendlyName);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .update({
    friendlyName: 'Orlandos Nightclub',
  })
  .then((ipAddress) => {
    console.log(ipAddress.friendlyName);
  });
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -d "FriendlyName=Orlandos%20Nightclub" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddress("IP32a3c49700934481addd5ce1659f04d2");
    // Build a filter for the IpAddressList
    List<NameValuePair> params = new ArrayList<NameValuePair>();
    params.add(new BasicNameValuePair("FriendlyName", "Orlandos Nightclub"));
    ipAddress.update(params);
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
        .update(friendly_name="Orlandos Nightclub")

print(ip_address.friendly_name)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    
    
    twilio.UpdateIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2", "Orlandos Nightclub", null);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->get("IP32a3c49700934481addd5ce1659f04d2");
$ip_address->update(array(
        "FriendlyName" => "Orlandos Nightclub"
    ));
echo $ip_address->friendly_name;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
@ip_address.update(:friendly_name => "Orlandos Nightclub")
puts @ip_address.friendly_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = IpAddress
        .updater("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .setFriendlyName("Orlandos Nightclub")
        .update();

    System.out.println(ipAddress.getFriendlyName());
  }
}
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -d "FriendlyName=Orlandos%20Nightclub" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "Orlandos Nightclub",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
    "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
        <FriendlyName>Orlandos Nightclub</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
    </IpAddress>
</TwilioResponse>
IPアドレスを更新する

HTTP PUT

サポートしません。

HTTP DELETE

リストからIPアドレスを削除します。

削除に成功すると、ボディーのない HTTP 204 レスポンスを返します。

DELETE /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlList/{AclSid}/IpAddresses/{IpAddressSid}
Loading Code Samples...
言語
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        IpAddressResource.Delete(
            "AL32a3c49700934481addd5ce1659f04d2",
            "IP32a3c49700934481addd5ce1659f04d2");
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->delete();
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").delete("IP32a3c49700934481addd5ce1659f04d2")
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'

@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses('IP32a3c49700934481addd5ce1659f04d2')

@ip_address.delete
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").delete(function(err, data) {
    if (err) {
        console.log(err.status);
        throw err.message;
    } else {
        console.log("Sid IP32a3c49700934481addd5ce1659f04d2 deleted successfully.");
    }
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .remove()
  .then((data) => {
    console.log('Sid IP32a3c49700934481addd5ce1659f04d2 deleted successfully.');
  })
  .catch((err) => {
    console.log(err.status);
    throw err.message;
  });
$ curl -XDELETE https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;

public class Example {

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount()
        .getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2")
        .getIpAddress("IP32a3c49700934481addd5ce1659f04d2");

    ipAddress.delete();

  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

client.sip \
      .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
      .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
      .delete()
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    twilio.DeleteIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2");
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

$client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->delete("IP32a3c49700934481addd5ce1659f04d2");
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
@ip_address.delete
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress.deleter("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .delete();
  }
}
$ curl -XDELETE https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
IPアドレスを削除する

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 browsing the Twilio tag on Stack Overflow.

1 / 1
Loading Code Samples...
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var ipAddresses = IpAddressResource.Read(
            "AL32a3c49700934481addd5ce1659f04d2");

        foreach (var ipAddress in ipAddresses)
        {
          Console.WriteLine(ipAddress.FriendlyName);
        }
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$ipAddresses = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses
    ->read();

// Loop over the list of ip_addresss and echo a property for each one
foreach ($ipAddresses as $ipAddress) {
    echo $ipAddress->friendlyName;
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

# A list of ip_address objects with the properties described above
ip_addresss = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").list()
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

# Loop over ip_addresss and print out a property for each one
@client.account.sip
       .ip_access_control_lists('AL32a3c49700934481addd5ce1659f04d2')
       .ip_addresses.list.each do |ip_address|
         puts ip_address.friendly_name
       end
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses.list(function(err, data) {
    data.ipAddresses.forEach(function(ipAddress) {
        console.log(ipAddress.friendlyName);
    });
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses
  .each((ipAddress) => {
    console.log(ipAddress.friendlyName);
  });
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    
    
    IpAddressList ipAddresss = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddresses();
    
    // Loop over ipAddresss and print out a property for each one.
    for (IpAddress ipAddress : ipAddresss) {
      System.out.println(ipAddress.getFriendlyName());
    }
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# A list of ip_address objects with the properties described above
ip_addresses = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses \
        .list()

for ip_address in ip_addresses:
    print(ip_address.friendly_name)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var ipAddresss = twilio.ListIpAddresses("AL32a3c49700934481addd5ce1659f04d2", null, null);
    
    foreach (var ipAddress in ipAddresss.IpAddresses)
    {
      Console.WriteLine(ipAddress.FriendlyName);
    }
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Loop over the list of ip_addresss and echo a property for each one
foreach ($client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses as $ip_address) {
    echo $ip_address->friendly_name;
}
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token


# Loop over ip_addresss and print out a property for each one
@client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.list.each do |ip_address|
    puts ip_address.friendly_name
end
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    ResourceSet<IpAddress> ipAddresses =
        IpAddress.reader("AL32a3c49700934481addd5ce1659f04d2").read();

    // Loop over ipAddresses and print out a property for each one.
    for (IpAddress ipAddress : ipAddresses) {
      System.out.println(ipAddress.getFriendlyName());
    }
  }
}
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses.json?PageSize=50&Page=0",
    "previous_page_uri": null,
    "ip_addresses": [
        {
            "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
            "friendly_name": "My office IP Address",
            "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
            "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
            "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
            "ip_address": "55.102.123.124"
        },
        ...
    ],
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses.json?PageSize=50&Page=0",
    "page_size": 50,
    "next_page_uri": null,
    "page": 0
}
<TwilioResponse>
    <IpAddresses [paging data]>
        <IpAddress>
            <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
            <FriendlyName>My office IP Address</FriendlyName>
            <IpAddress>55.102.123.124</IpAddress>
            <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
            <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
            <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
        </IpAddress>
    </IpAddresses>
</TwilioResponse>
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);


        var ipAddress = IpAddressResource.Create(
            "AL32a3c49700934481addd5ce1659f04d2", "My office IP Address",
            "55.102.123.124");

        Console.WriteLine(ipAddress.Sid);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses
    ->create("My office IP Address", "55.102.123.124");

echo $ipAddress->sid;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").create(friendly_name="My office IP Address",
    ip_address="55.102.123.124")
print(ip_address.sid)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@acl_sid = 'AL32a3c49700934481addd5ce1659f04d2'

ip_address = @client.account.sip.ip_access_control_lists(@acl_sid)
                    .ip_addresses.create(
                      friendly_name: 'My office IP Address',
                      ip_address: '55.102.123.124'
                    )

puts ip_address.friendly_name
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses.create({
    friendlyName: "My office IP Address",
    ipAddress: "55.102.123.124"
}, function(err, ipAddress) {
    process.stdout.write(ipAddress.sid);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses
  .create({
    friendlyName: 'My office IP Address',
    ipAddress: '55.102.123.124',
  })
  .then((ipAddress) => {
    process.stdout.write(ipAddress.sid);
  });
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses \
    -d "FriendlyName=My%20office%20IP%20Address" \
    -d "IpAddress=55.102.123.124" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.factory.sip.IpAddressFactory;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Build a filter for the IpAddressList
    List<NameValuePair> params = new ArrayList<NameValuePair>();
    params.add(new BasicNameValuePair("FriendlyName", "My office IP Address"));
    params.add(new BasicNameValuePair("IpAddress", "55.102.123.124"));
    
    
    IpAddressFactory ipAddressFactory = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddressFactory();
    IpAddress ipAddress = ipAddressFactory.create(params);
    System.out.println(ipAddress.getSid());
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses \
        .create("My office IP Address", "55.102.123.124")

print(ip_address.sid)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    
    var ipAddress = twilio.CreateIpAddress("AL32a3c49700934481addd5ce1659f04d2", "My office IP Address", "55.102.123.124");
    
    Console.WriteLine(ipAddress.Sid);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->create("My office IP Address", "55.102.123.124", array());
echo $ip_address->sid;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.create(:friendly_name => "My office IP Address",
    :ip_address => "55.102.123.124")
puts ip_address.friendly_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    IpAddress ipAddress = IpAddress
        .creator("AL32a3c49700934481addd5ce1659f04d2", "My office IP Address", "55.102.123.124")
        .create();

    System.out.println(ipAddress.getSid());
  }
}
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses.json \
    -d "FriendlyName=My%20office%20IP%20Address" \
    -d "IpAddress=55.102.123.124" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "My office IP Address",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
    "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
        <FriendlyName>My office IP Address</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
    </IpAddress>
</TwilioResponse>
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var ipAddress = IpAddressResource.Fetch(
            "AL32a3c49700934481addd5ce1659f04d2",
            "IP32a3c49700934481addd5ce1659f04d2");

        Console.WriteLine(ipAddress.IpAddress);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->fetch();

echo $ipAddress->ipAddress;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").get("IP32a3c49700934481addd5ce1659f04d2")
print(ip_address.ip_address)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'
@ip_sid = 'IP32a3c49700934481addd5ce1659f04d2'

@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses(@ip_sid)
                     .fetch

puts @ip_address.ip_address
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").get(function(err, ipAddress) {
    console.log(ipAddress.ipAddress);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .fetch()
  .then((ipAddress) => console.log(ipAddress.ipAddress));
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddress("IP32a3c49700934481addd5ce1659f04d2");
    System.out.println(ipAddress.getIpAddress());
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
        .fetch()

print(ip_address.ip_address)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var ipAddress = twilio.GetIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2");
    
    Console.WriteLine(ipAddress.Address);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->get("IP32a3c49700934481addd5ce1659f04d2");
echo $ip_address->ip_address;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
puts @ip_address.ip_address
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = IpAddress
        .fetcher("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .fetch();

    System.out.println(ipAddress.getFriendlyName());
  }
}
$ curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "My office IP Address",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP32a3c49700934481addd5ce1659f04d2.json",
    "sid": "IP32a3c49700934481addd5ce1659f04d2",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP32a3c49700934481addd5ce1659f04d2</Sid>
        <FriendlyName>My office IP Address</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP32a3c49700934481addd5ce1659f04d2</Uri>
    </IpAddress>
</TwilioResponse>
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        IpAddressResource.Update(
            "AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2",
            "Orlandos Nightclub", null);
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ipAddress = $client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->update(
        array("friendlyName" => "Orlandos Nightclub")
    );

echo $ipAddress->friendlyName;
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

ip_address = client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").update("IP32a3c49700934481addd5ce1659f04d2", friendly_name="Orlandos Nightclub")
print(ip_address.friendly_name)
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses('IP32a3c49700934481addd5ce1659f04d2')
                     .fetch

@ip_address.update(friendly_name: 'Orlandos Nightclub')

puts @ip_address.friendly_name
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").update({
    friendlyName: "Orlandos Nightclub"
}, function(err, ipAddress) {
    console.log(ipAddress.friendlyName);
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .update({
    friendlyName: 'Orlandos Nightclub',
  })
  .then((ipAddress) => {
    console.log(ipAddress.friendlyName);
  });
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -d "FriendlyName=Orlandos%20Nightclub" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;
import com.twilio.sdk.resource.list.sip.IpAddressList;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount().getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2").getIpAddress("IP32a3c49700934481addd5ce1659f04d2");
    // Build a filter for the IpAddressList
    List<NameValuePair> params = new ArrayList<NameValuePair>();
    params.add(new BasicNameValuePair("FriendlyName", "Orlandos Nightclub"));
    ipAddress.update(params);
    
  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
ip_address = client.sip \
        .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
        .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
        .update(friendly_name="Orlandos Nightclub")

print(ip_address.friendly_name)
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    
    
    twilio.UpdateIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2", "Orlandos Nightclub", null);
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$ip_address = $client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->get("IP32a3c49700934481addd5ce1659f04d2");
$ip_address->update(array(
        "FriendlyName" => "Orlandos Nightclub"
    ));
echo $ip_address->friendly_name;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
@ip_address.update(:friendly_name => "Orlandos Nightclub")
puts @ip_address.friendly_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = IpAddress
        .updater("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .setFriendlyName("Orlandos Nightclub")
        .update();

    System.out.println(ipAddress.getFriendlyName());
  }
}
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -d "FriendlyName=Orlandos%20Nightclub" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
{
    "date_updated": "Wed, 11 Sep 2013 04:32:30 -0000",
    "friendly_name": "Orlandos Nightclub",
    "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d.json",
    "sid": "IP6fbe2e8619a14fabaefaf4fb131c0b9d",
    "date_created": "Wed, 11 Sep 2013 04:32:30 -0000",
    "ip_address": "55.102.123.124"
}
<TwilioResponse>
    <IpAddress>
        <Sid>IP6fbe2e8619a14fabaefaf4fb131c0b9d</Sid>
        <FriendlyName>Orlandos Nightclub</FriendlyName>
        <IpAddress>55.102.123.124</IpAddress>
        <DateCreated>Wed, 11 Sep 2013 04:32:30 -0000</DateCreated>
        <DateUpdated>Wed, 11 Sep 2013 04:32:30 -0000</DateUpdated>
        <Uri>/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL0c37d0be69a6a6fe1e270c5fa4a2cac7/Addresses/IP6fbe2e8619a14fabaefaf4fb131c0b9d</Uri>
    </IpAddress>
</TwilioResponse>
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
// Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account.Sip.IpAccessControlList;

class Example
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        IpAddressResource.Delete(
            "AL32a3c49700934481addd5ce1659f04d2",
            "IP32a3c49700934481addd5ce1659f04d2");
    }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php'; // Loads the library
use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);

$client->sip
    ->ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2")
    ->ipAddresses("IP32a3c49700934481addd5ce1659f04d2")
    ->delete();
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

client.sip.ip_addresses("AL32a3c49700934481addd5ce1659f04d2").delete("IP32a3c49700934481addd5ce1659f04d2")
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'

# put your own credentials here
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'

# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(account_sid, auth_token)

@ip_acl_list_sid = 'AL32a3c49700934481addd5ce1659f04d2'

@ip_address = @client.account.sip
                     .ip_access_control_lists(@ip_acl_list_sid)
                     .ip_addresses('IP32a3c49700934481addd5ce1659f04d2')

@ip_address.delete
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists("AL32a3c49700934481addd5ce1659f04d2").ipAddresses("IP32a3c49700934481addd5ce1659f04d2").delete(function(err, data) {
    if (err) {
        console.log(err.status);
        throw err.message;
    } else {
        console.log("Sid IP32a3c49700934481addd5ce1659f04d2 deleted successfully.");
    }
});
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.sip.ipAccessControlLists('AL32a3c49700934481addd5ce1659f04d2')
  .ipAddresses('IP32a3c49700934481addd5ce1659f04d2')
  .remove()
  .then((data) => {
    console.log('Sid IP32a3c49700934481addd5ce1659f04d2 deleted successfully.');
  })
  .catch((err) => {
    console.log(err.status);
    throw err.message;
  });
$ curl -XDELETE https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.sip.IpAddress;

public class Example {

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress ipAddress = client.getAccount()
        .getIpAccessControlList("AL32a3c49700934481addd5ce1659f04d2")
        .getIpAddress("IP32a3c49700934481addd5ce1659f04d2");

    ipAddress.delete();

  }
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)

client.sip \
      .ip_access_control_lists("AL32a3c49700934481addd5ce1659f04d2") \
      .ip_addresses("IP32a3c49700934481addd5ce1659f04d2") \
      .delete()
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example 
{
  static void Main(string[] args) 
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    twilio.DeleteIpAddress("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2");
  }
}
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

$client->account->sip->ip_access_control_lists->get("AL32a3c49700934481addd5ce1659f04d2")->ip_addresses->delete("IP32a3c49700934481addd5ce1659f04d2");
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems'          # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

@ip_address = @client.account.sip.ip_access_control_lists.get("AL32a3c49700934481addd5ce1659f04d2").ip_addresses.get("IP32a3c49700934481addd5ce1659f04d2")
@ip_address.delete
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.sip.ipaccesscontrollist.IpAddress;

public class Example {
  /// Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) {
    Twilio.init(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    IpAddress.deleter("AL32a3c49700934481addd5ce1659f04d2", "IP32a3c49700934481addd5ce1659f04d2")
        .delete();
  }
}
$ curl -XDELETE https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/IpAccessControlLists/AL32a3c49700934481addd5ce1659f04d2/IpAddresses/IP32a3c49700934481addd5ce1659f04d2.json \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'