import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessIpAddress.list(filter={"ip_source":"string","ip_address":"string"})
{- "data": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "ip_address": "string",
- "source": "string",
- "status": "pending",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": "string"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Successful Response
{- "description": "string",
- "ip_address": "string"
}
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "ip_address": "string",
- "source": "string",
- "status": "pending",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": "string"
}
Successful Response
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.AccessIpAddress.retrieve('access_ip_address_id') res.delete()
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "ip_address": "string",
- "source": "string",
- "status": "pending",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": "string"
}
Successful Response
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessIpAddress.retrieve("access_ip_address_id")
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "ip_address": "string",
- "source": "string",
- "status": "pending",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": "string"
}