new IpAddressInstance(version, payload, accountSid, ipAccessControlListSid, sid)
Initialize the IpAddressContext
Parameters:
Name | Type | Description |
---|---|---|
version |
V2010 | Version of the resource |
payload |
IpAddressPayload | The instance payload |
accountSid |
sid | The unique id of the Account that is responsible for this resource. |
ipAccessControlListSid |
sid | The unique id of the IpAccessControlList resource that includes this resource. |
sid |
sid | A string that identifies the IpAddress resource to fetch |
Properties:
Name | Type | Description |
---|---|---|
sid |
string | A 34 character string that uniquely identifies this resource. |
accountSid |
string | The unique id of the Account that is responsible for this resource. |
friendlyName |
string | A human readable descriptive text for this resource, up to 64 characters long. |
ipAddress |
string | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. |
cidrPrefixLength |
number | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. |
ipAccessControlListSid |
string | The unique id of the IpAccessControlList resource that includes this resource. |
dateCreated |
Date | The date that this resource was created, given as GMT in RFC 2822 format. |
dateUpdated |
Date | The date that this resource was last updated, given as GMT in RFC 2822 format. |
uri |
string | The URI for this resource, relative to https://api.twilio.com |
Methods
fetch(callbackopt) → {Promise}
fetch a IpAddressInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed IpAddressInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a IpAddressInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed IpAddressInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object
update(optsopt, callbackopt) → {Promise}
update a IpAddressInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed IpAddressInstance
- Type
- Promise