Get all IPs belonging to the user that match the given filters.
Successful response with a list of IPs.
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.IP.list(page={"number":1,"size":20})
{- "data": [
- {
- "connection_id": "3456789987654",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060,
- "record_type": "ip",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
]
}
Create a new IP object.
Successful response with details about an IP.
object (Ip) | |||||||||||||||
|
Bad request
Unauthorized
{- "connection_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060
}
{- "data": {
- "connection_id": "3456789987654",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060,
- "record_type": "ip",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Delete an IP.
Successful response with details about an IP.
object (Ip) | |||||||||||||||
|
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.IP.retrieve("id") res.delete()
{- "data": {
- "connection_id": "3456789987654",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060,
- "record_type": "ip",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Return the details regarding a specific IP.
Successful response with details about an IP.
object (Ip) | |||||||||||||||
|
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.IP.retrieve("id")
{- "data": {
- "connection_id": "3456789987654",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060,
- "record_type": "ip",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Update the details of a specific IP.
Successful response with details about an IP.
object (Ip) | |||||||||||||||
|
Bad request
Unauthorized
{- "connection_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060
}
{- "data": {
- "connection_id": "3456789987654",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_address": "192.168.0.0",
- "port": 5060,
- "record_type": "ip",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}