import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessIpRange.list(filter={"cidr_block":"string"},filter[cidr_block]={"startswith":"string"})
{- "data": [
- {
- "cidr_block": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "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
{- "cidr_block": "string",
- "description": "string"
}
{- "cidr_block": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "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.AccessIpRange.retrieve('access_ip_range_id') res.delete()
{- "cidr_block": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "string",
- "status": "pending",
- "updated_at": "2019-08-24T14:15:22Z",
- "user_id": "string"
}