Get all SIM card groups belonging to the user that match the given filters.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.SimCardGroup.list(page={"number":1,"size":20})
{- "data": [
- {
- "consumed_data": {
- "amount": "2048.1",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "default": true,
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "name": "My Test Group",
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group",
- "sim_card_count": 10,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Creates a new SIM card group object
Successful Response
{- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "name": "My Test Group"
}
{- "data": {
- "consumed_data": {
- "amount": "2048.1",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "default": true,
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "name": "My Test Group",
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Permanently deletes a SIM card group
Successful Response
object (SIMCardGroup) | |||||||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.SimCardGroup.retrieve('id') res.delete()
{- "data": {
- "consumed_data": {
- "amount": "2048.1",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "default": true,
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "name": "My Test Group",
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Returns the details regarding a specific SIM card group
Successful Response
object (SIMCardGroup) | |||||||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.SimCardGroup.retrieve("id")
{- "data": {
- "consumed_data": {
- "amount": "2048.1",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "default": true,
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "name": "My Test Group",
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Updates a SIM card group
Successful Response
object (SIMCardGroup) | |||||||||||||||||||
|
{- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "name": "My Test Group"
}
{- "data": {
- "consumed_data": {
- "amount": "2048.1",
- "unit": "MB"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "data_limit": {
- "amount": "2048.1",
- "unit": "MB"
}, - "default": true,
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "name": "My Test Group",
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This action will asynchronously remove an existing Private Wireless Gateway definition from a SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic handled by Telnyx's default mobile network configuration.
Successful Response
object (SIMCardGroupAction) This object represents a SIM card group action request. It allows tracking the current status of an operation that impacts the SIM card group and SIM card in it. | |||||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.SimCardGroups.post_actions.post_remove_private_wireless_gateway.create()
{- "data": {
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group_action",
- "settings": {
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
}, - "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": "in-progress",
- "type": "set_private_wireless_gateway",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic controlled by the associated Private Wireless Gateway. This operation will also imply that new SIM cards assigned to a group will inherit its network definitions. If it's moved to a different group that doesn't have a Private Wireless Gateway, it'll use Telnyx's default mobile network configuration.
Successful Response
object (SIMCardGroupAction) This object represents a SIM card group action request. It allows tracking the current status of an operation that impacts the SIM card group and SIM card in it. | |||||||||||||||||
|
{- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
}
{- "data": {
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_group_action",
- "settings": {
- "private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
}, - "sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": "in-progress",
- "type": "set_private_wireless_gateway",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}