Get all Private Wireless Gateways belonging to the user.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PrivateWirelessGateway.list(page={"number":1,"size":20})
{- "data": [
- {
- "assigned_resources": [
- {
- "count": 1,
- "record_type": "sim_card_group"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_range": "100.64.1.0/24",
- "name": "My private wireless gateway",
- "network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "private_wireless_gateway",
- "region_code": "ashburn-va",
- "status": {
- "error_code": null,
- "error_description": null,
- "value": "provisioned"
}, - "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network.
Successful response
Unprocessable entity. Check the 'detail' field in response for details.
{- "name": "My private wireless gateway",
- "network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
}
{- "data": {
- "assigned_resources": [
- {
- "count": 1,
- "record_type": "sim_card_group"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_range": "100.64.1.0/24",
- "name": "My private wireless gateway",
- "network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "private_wireless_gateway",
- "region_code": "ashburn-va",
- "status": {
- "error_code": null,
- "error_description": null,
- "value": "provisioned"
}, - "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Deletes the Private Wireless Gateway.
Successful response
object (PrivateWirelessGateway) | |||||||||||||||||||||
|
Resource not found
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.PrivateWirelessGateway.retrieve('id') res.delete()
{- "data": {
- "assigned_resources": [
- {
- "count": 1,
- "record_type": "sim_card_group"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_range": "100.64.1.0/24",
- "name": "My private wireless gateway",
- "network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "private_wireless_gateway",
- "region_code": "ashburn-va",
- "status": {
- "error_code": null,
- "error_description": null,
- "value": "provisioned"
}, - "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Retrieve information about a Private Wireless Gateway.
Successful response
object (PrivateWirelessGateway) | |||||||||||||||||||||
|
Resource not found
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PrivateWirelessGateway.retrieve("id")
{- "data": {
- "assigned_resources": [
- {
- "count": 1,
- "record_type": "sim_card_group"
}
], - "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "ip_range": "100.64.1.0/24",
- "name": "My private wireless gateway",
- "network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "private_wireless_gateway",
- "region_code": "ashburn-va",
- "status": {
- "error_code": null,
- "error_description": null,
- "value": "provisioned"
}, - "updated_at": "2018-02-02T22:25:27.521Z"
}
}