This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions.
const telnyx = require('telnyx')('YOUR_API_KEY'); const { data } = await telnyx.bulkSimCardActions.list({"page[number]":1,"page[size]":20});
{- "data": [
- {
- "action_type": "bulk_set_public_ips",
- "created_at": "2020-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "bulk_sim_card_action",
- "settings": { },
- "sim_card_actions_summary": [
- {
- "count": 0,
- "status": "in-progress"
}
], - "updated_at": "2020-02-03T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions.
Successful Response
const telnyx = require('telnyx')('YOUR_API_KEY'); const { data } = await telnyx.bulkSimCardActions.retrieve('id');
{- "data": {
- "action_type": "bulk_set_public_ips",
- "created_at": "2020-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "bulk_sim_card_action",
- "settings": { },
- "sim_card_actions_summary": [
- {
- "count": 0,
- "status": "in-progress"
}
], - "updated_at": "2020-02-03T22:25:27.521Z"
}
}
This API lists a paginated collection of SIM card actions. It enables exploring a collection of existing asynchronous operations using specific filters.
page[number] | integer >= 1 Default: 1 The page number to load |
page[size] | integer [ 1 .. 250 ] Default: 20 The size of the page |
filter[sim_card_id] | string <uuid> A valid SIM card ID. Example: filter[sim_card_id]=47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 |
filter[status] | string Filter by a specific status of the resource's lifecycle. Example: filter[status]=in-progress |
filter[bulk_sim_card_action_id] | string <uuid> Filter by a bulk SIM card action ID. Example: filter[bulk_sim_card_action_id]=47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 |
filter[action_type] | string Filter by action type. Example: filter[action_type]=disable |
{- "data": [
- {
- "action_type": "enable",
- "created_at": "2020-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "settings": { },
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": {
- "reason": "The data limit was exceeded.",
- "value": "completed"
}, - "updated_at": "2020-02-03T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation.
Successful Response
object (SIMCardAction) This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card. | |||||||||||||||||
|
{- "data": {
- "action_type": "enable",
- "created_at": "2020-02-02T22:25:27.521Z",
- "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "record_type": "sim_card_action",
- "settings": { },
- "sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
- "status": {
- "reason": "The data limit was exceeded.",
- "value": "completed"
}, - "updated_at": "2020-02-03T22:25:27.521Z"
}
}