telnyx-iot-ruby
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
<!-- 由Telnyx OpenAPI规范自动生成,请勿编辑。 -->
Telnyx Iot - Ruby
Telnyx Iot - Ruby
Installation
安装
bash
gem install telnyxbash
gem install telnyxSetup
配置
ruby
require "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)All examples below assume is already initialized as shown above.
clientruby
require "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # 这是默认配置,可以省略
)以下所有示例都假定已经按照上述方式完成初始化。
clientError Handling
错误处理
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
ruby
begin
result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
puts "Network error — check connectivity and retry"
rescue Telnyx::Errors::RateLimitError
# 429: rate limited — wait and retry with exponential backoff
sleep(1) # Check Retry-After header for actual delay
rescue Telnyx::Errors::APIStatusError => e
puts "API error #{e.status}: #{e.message}"
if e.status == 422
puts "Validation error — check required fields and formats"
end
endCommon error codes: invalid API key, insufficient permissions,
resource not found, validation error (check field formats),
rate limited (retry with exponential backoff).
401403404422429所有API调用都可能失败,原因包括网络错误、速率限制(429)、校验错误(422)或者认证错误(401)。生产环境代码中务必做好错误处理:
ruby
begin
result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
puts "Network error — check connectivity and retry"
rescue Telnyx::Errors::RateLimitError
# 429: 触发速率限制 — 等待后使用指数退避策略重试
sleep(1) # 可查看Retry-After响应头获取准确的等待时长
rescue Telnyx::Errors::APIStatusError => e
puts "API错误 #{e.status}: #{e.message}"
if e.status == 422
puts "校验错误 — 检查必填字段和格式是否正确"
end
end常见错误码: API密钥无效, 权限不足, 资源不存在, 校验错误(检查字段格式), 触发速率限制(使用指数退避策略重试)。
401403404422429Important Notes
重要说明
- Pagination: Use for automatic iteration:
.auto_paging_each.page.auto_paging_each { |item| puts item.id }
- 分页: 使用实现自动遍历:
.auto_paging_each。page.auto_paging_each { |item| puts item.id }
Purchase eSIMs
购买eSIM
Purchases and registers the specified amount of eSIMs to the current user's account.
If is provided, the eSIMs will be associated with that group. Otherwise, the default group for the current user will be used.
If
sim_card_group_idPOST /actions/purchase/esimsamountOptional: (string), (uuid), (enum: enabled, disabled, standby), (array[string]), (string)
productsim_card_group_idstatustagswhitelabel_nameruby
purchase = client.actions.purchase.create(amount: 10)
puts(purchase)Returns: (boolean), (array | null), (string), (object), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabled购买指定数量的eSIM并注册到当前用户账号下。
如果提供了,则这些eSIM会关联到对应分组,否则会使用当前用户的默认分组。
sim_card_group_idPOST /actions/purchase/esimsamount可选参数:(字符串)、(uuid)、(枚举值:enabled, disabled, standby)、(字符串数组)、(字符串)
productsim_card_group_idstatustagswhitelabel_nameruby
purchase = client.actions.purchase.create(amount: 10)
puts(purchase)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledRegister SIM cards
注册SIM卡
Register the SIM cards associated with the provided registration codes to the current user's account.
If is provided, the SIM cards will be associated with that group. Otherwise, the default group for the current user will be used.
If
sim_card_group_idPOST /actions/register/sim_cardsregistration_codesOptional: (uuid), (enum: enabled, disabled, standby), (array[string])
sim_card_group_idstatustagsruby
register = client.actions.register.create(registration_codes: ["0000000001", "0000000002", "0000000003"])
puts(register)Returns: (boolean), (array | null), (string), (object), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabled将提供的注册码对应的SIM卡注册到当前用户账号下。
如果提供了,则这些SIM卡会关联到对应分组,否则会使用当前用户的默认分组。
sim_card_group_idPOST /actions/register/sim_cardsregistration_codes可选参数:(uuid)、(枚举值:enabled, disabled, standby)、(字符串数组)
sim_card_group_idstatustagsruby
register = client.actions.register.create(registration_codes: ["0000000001", "0000000002", "0000000003"])
puts(register)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledList bulk SIM card actions
列出批量SIM卡操作
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.
GET /bulk_sim_card_actionsruby
page = client.bulk_sim_card_actions.list
puts(page)Returns: (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), (string), (uuid), (string), (object), (array[object]), (string)
action_typecreated_atidrecord_typesettingssim_card_actions_summaryupdated_at该API返回分页的批量SIM卡操作列表。批量SIM卡操作包含一组单个SIM卡操作的详情。
GET /bulk_sim_card_actionsruby
page = client.bulk_sim_card_actions.list
puts(page)返回参数:(枚举值:bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips)、(字符串)、(uuid)、(字符串)、(对象)、(对象数组)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_actions_summaryupdated_atGet bulk SIM card action details
获取批量SIM卡操作详情
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.
GET /bulk_sim_card_actions/{id}ruby
bulk_sim_card_action = client.bulk_sim_card_actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(bulk_sim_card_action)Returns: (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), (string), (uuid), (string), (object), (array[object]), (string)
action_typecreated_atidrecord_typesettingssim_card_actions_summaryupdated_at该API获取单个批量SIM卡操作的信息。批量SIM卡操作包含一组单个SIM卡操作的详情。
GET /bulk_sim_card_actions/{id}ruby
bulk_sim_card_action = client.bulk_sim_card_actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(bulk_sim_card_action)返回参数:(枚举值:bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips)、(字符串)、(uuid)、(字符串)、(对象)、(对象数组)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_actions_summaryupdated_atList OTA updates
列出OTA更新
GET /ota_updatesruby
page = client.ota_updates.list
puts(page)Returns: (string), (uuid), (string), (uuid), (enum: in-progress, completed, failed), (enum: sim_card_network_preferences), (string)
created_atidrecord_typesim_card_idstatustypeupdated_atGET /ota_updatesruby
page = client.ota_updates.list
puts(page)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:sim_card_network_preferences)、(字符串)
created_atidrecord_typesim_card_idstatustypeupdated_atGet OTA update
获取OTA更新详情
This API returns the details of an Over the Air (OTA) update.
GET /ota_updates/{id}ruby
ota_update = client.ota_updates.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(ota_update)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: sim_card_network_preferences), (string)
created_atidrecord_typesettingssim_card_idstatustypeupdated_at该API返回空中下载(OTA)更新的详细信息。
GET /ota_updates/{id}ruby
ota_update = client.ota_updates.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(ota_update)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:sim_card_network_preferences)、(字符串)
created_atidrecord_typesettingssim_card_idstatustypeupdated_atList SIM card actions
列出SIM卡操作
This API lists a paginated collection of SIM card actions. It enables exploring a collection of existing asynchronous operations using specific filters.
GET /sim_card_actionsruby
page = client.sim_cards.actions.list
puts(page)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API返回分页的SIM卡操作列表,可通过指定筛选条件查询已有的异步操作集合。
GET /sim_card_actionsruby
page = client.sim_cards.actions.list
puts(page)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atGet SIM card action details
获取SIM卡操作详情
This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation.
GET /sim_card_actions/{id}ruby
action = client.sim_cards.actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(action)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API获取SIM卡操作的详细信息,用于跟进已有的异步操作进度。
GET /sim_card_actions/{id}ruby
action = client.sim_cards.actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(action)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atList SIM card data usage notifications
列出SIM卡流量使用通知
Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters.
GET /sim_card_data_usage_notificationsruby
page = client.sim_card_data_usage_notifications.list
puts(page)Returns: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_at返回分页的SIM卡流量使用通知列表,可通过指定筛选条件查询相关记录。
GET /sim_card_data_usage_notificationsruby
page = client.sim_card_data_usage_notifications.list
puts(page)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atCreate a new SIM card data usage notification
创建新的SIM卡流量使用通知
Creates a new SIM card data usage notification.
POST /sim_card_data_usage_notificationssim_card_idthresholdruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.create(
sim_card_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
threshold: {}
)
puts(sim_card_data_usage_notification)Returns: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_at创建一条新的SIM卡流量使用通知。
POST /sim_card_data_usage_notificationssim_card_idthresholdruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.create(
sim_card_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
threshold: {}
)
puts(sim_card_data_usage_notification)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atGet a single SIM card data usage notification
获取单个SIM卡流量使用通知
Get a single SIM Card Data Usage Notification.
GET /sim_card_data_usage_notifications/{id}ruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)Returns: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_at获取单条SIM卡流量使用通知的详情。
GET /sim_card_data_usage_notifications/{id}ruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atUpdates information for a SIM Card Data Usage Notification
更新SIM卡流量使用通知
Updates information for a SIM Card Data Usage Notification.
PATCH /sim_card_data_usage_notifications/{id}Optional: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_atruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)Returns: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_at更新SIM卡流量使用通知的信息。
PATCH /sim_card_data_usage_notifications/{id}可选参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atDelete SIM card data usage notifications
删除SIM卡流量使用通知
Delete the SIM Card Data Usage Notification.
DELETE /sim_card_data_usage_notifications/{id}ruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)Returns: (string), (uuid), (string), (uuid), (object), (string)
created_atidrecord_typesim_card_idthresholdupdated_at删除指定的SIM卡流量使用通知。
DELETE /sim_card_data_usage_notifications/{id}ruby
sim_card_data_usage_notification = client.sim_card_data_usage_notifications.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_data_usage_notification)返回参数:(字符串)、(uuid)、(字符串)、(uuid)、(对象)、(字符串)
created_atidrecord_typesim_card_idthresholdupdated_atList SIM card group actions
列出SIM卡分组操作
This API allows listing a paginated collection a SIM card group actions. It allows to explore a collection of existing asynchronous operation using specific filters.
GET /sim_card_group_actionsruby
page = client.sim_card_groups.actions.list
puts(page)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该API返回分页的SIM卡分组操作列表,可通过指定筛选条件查询已有的异步操作集合。
GET /sim_card_group_actionsruby
page = client.sim_card_groups.actions.list
puts(page)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atGet SIM card group action details
获取SIM卡分组操作详情
This API allows fetching detailed information about a SIM card group action resource to make follow-ups in an existing asynchronous operation.
GET /sim_card_group_actions/{id}ruby
action = client.sim_card_groups.actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(action)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该API获取SIM卡分组操作的详细信息,用于跟进已有的异步操作进度。
GET /sim_card_group_actions/{id}ruby
action = client.sim_card_groups.actions.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(action)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atGet all SIM card groups
获取所有SIM卡分组
Get all SIM card groups belonging to the user that match the given filters.
GET /sim_card_groupsruby
page = client.sim_card_groups.list
puts(page)Returns: (object), (string), (object), (boolean), (uuid), (string), (uuid), (string), (integer), (string), (uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typesim_card_countupdated_atwireless_blocklist_id获取当前用户名下符合筛选条件的所有SIM卡分组。
GET /sim_card_groupsruby
page = client.sim_card_groups.list
puts(page)返回参数:(对象)、(字符串)、(对象)、(布尔值)、(uuid)、(字符串)、(uuid)、(字符串)、(整数)、(字符串)、(uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typesim_card_countupdated_atwireless_blocklist_idCreate a SIM card group
创建SIM卡分组
Creates a new SIM card group object
POST /sim_card_groupsnameOptional: (object)
data_limitruby
sim_card_group = client.sim_card_groups.create(name: "My Test Group")
puts(sim_card_group)Returns: (object), (string), (object), (boolean), (uuid), (string), (uuid), (string), (string), (uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_id创建一个新的SIM卡分组对象
POST /sim_card_groupsname可选参数:(对象)
data_limitruby
sim_card_group = client.sim_card_groups.create(name: "My Test Group")
puts(sim_card_group)返回参数:(对象)、(字符串)、(对象)、(布尔值)、(uuid)、(字符串)、(uuid)、(字符串)、(字符串)、(uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_idGet SIM card group
获取SIM卡分组
Returns the details regarding a specific SIM card group
GET /sim_card_groups/{id}ruby
sim_card_group = client.sim_card_groups.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)Returns: (object), (string), (object), (boolean), (uuid), (string), (uuid), (string), (string), (uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_id返回指定SIM卡分组的详细信息
GET /sim_card_groups/{id}ruby
sim_card_group = client.sim_card_groups.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)返回参数:(对象)、(字符串)、(对象)、(布尔值)、(uuid)、(字符串)、(uuid)、(字符串)、(字符串)、(uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_idUpdate a SIM card group
更新SIM卡分组
Updates a SIM card group
PATCH /sim_card_groups/{id}Optional: (object), (string)
data_limitnameruby
sim_card_group = client.sim_card_groups.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)Returns: (object), (string), (object), (boolean), (uuid), (string), (uuid), (string), (string), (uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_id更新指定SIM卡分组的信息
PATCH /sim_card_groups/{id}可选参数:(对象)、(字符串)
data_limitnameruby
sim_card_group = client.sim_card_groups.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)返回参数:(对象)、(字符串)、(对象)、(布尔值)、(uuid)、(字符串)、(uuid)、(字符串)、(字符串)、(uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_idDelete a SIM card group
删除SIM卡分组
Permanently deletes a SIM card group
DELETE /sim_card_groups/{id}ruby
sim_card_group = client.sim_card_groups.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)Returns: (object), (string), (object), (boolean), (uuid), (string), (uuid), (string), (string), (uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_id永久删除指定SIM卡分组
DELETE /sim_card_groups/{id}ruby
sim_card_group = client.sim_card_groups.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_group)返回参数:(对象)、(字符串)、(对象)、(布尔值)、(uuid)、(字符串)、(uuid)、(字符串)、(字符串)、(uuid)
consumed_datacreated_atdata_limitdefaultidnameprivate_wireless_gateway_idrecord_typeupdated_atwireless_blocklist_idRequest Private Wireless Gateway removal from SIM card group
移除SIM卡分组的私有无线网关
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.
POST /sim_card_groups/{id}/actions/remove_private_wireless_gatewayruby
response = client.sim_card_groups.actions.remove_private_wireless_gateway("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该操作会异步移除SIM卡分组已关联的私有无线网关配置。操作完成后,该分组下所有SIM卡的流量将由Telnyx默认移动网络配置处理。
POST /sim_card_groups/{id}/actions/remove_private_wireless_gatewayruby
response = client.sim_card_groups.actions.remove_private_wireless_gateway("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atRequest Wireless Blocklist removal from SIM card group
移除SIM卡分组的无线黑名单
This action will asynchronously remove an existing Wireless Blocklist to all the SIMs in the SIM card group.
POST /sim_card_groups/{id}/actions/remove_wireless_blocklistruby
response = client.sim_card_groups.actions.remove_wireless_blocklist("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该操作会异步移除SIM卡分组下所有SIM卡关联的无线黑名单。
POST /sim_card_groups/{id}/actions/remove_wireless_blocklistruby
response = client.sim_card_groups.actions.remove_wireless_blocklist("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atRequest Private Wireless Gateway assignment for SIM card group
为SIM卡分组分配私有无线网关
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.
POST /sim_card_groups/{id}/actions/set_private_wireless_gatewayprivate_wireless_gateway_idruby
response = client.sim_card_groups.actions.set_private_wireless_gateway(
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
private_wireless_gateway_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
)
puts(response)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该操作会异步将已配置的私有无线网关分配给指定SIM卡分组。操作完成后,该分组下所有SIM卡的流量将由关联的私有无线网关管控,新加入该分组的SIM卡也会自动继承该网络配置。
POST /sim_card_groups/{id}/actions/set_private_wireless_gatewayprivate_wireless_gateway_idruby
response = client.sim_card_groups.actions.set_private_wireless_gateway(
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
private_wireless_gateway_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
)
puts(response)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atRequest Wireless Blocklist assignment for SIM card group
为SIM卡分组分配无线黑名单
This action will asynchronously assign a Wireless Blocklist to all the SIMs in the SIM card group.
POST /sim_card_groups/{id}/actions/set_wireless_blocklistwireless_blocklist_idruby
response = client.sim_card_groups.actions.set_wireless_blocklist(
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
wireless_blocklist_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
)
puts(response)Returns: (string), (uuid), (string), (object), (uuid), (enum: in-progress, completed, failed), (enum: set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist), (string)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_at该操作会异步将无线黑名单分配给指定SIM卡分组下的所有SIM卡。
POST /sim_card_groups/{id}/actions/set_wireless_blocklistwireless_blocklist_idruby
response = client.sim_card_groups.actions.set_wireless_blocklist(
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
wireless_blocklist_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
)
puts(response)返回参数:(字符串)、(uuid)、(字符串)、(对象)、(uuid)、(枚举值:in-progress, completed, failed)、(枚举值:set_private_wireless_gateway, remove_private_wireless_gateway, set_wireless_blocklist, remove_wireless_blocklist)、(字符串)
created_atidrecord_typesettingssim_card_group_idstatustypeupdated_atPreview SIM card orders
预览SIM卡订单
Preview SIM card order purchases.
POST /sim_card_order_previewquantityaddress_idruby
response = client.sim_card_order_preview.preview(address_id: "1293384261075731499", quantity: 21)
puts(response)Returns: (integer), (string), (object), (object), (object)
quantityrecord_typeshipping_costsim_cards_costtotal_cost预览SIM卡订单的购买信息。
POST /sim_card_order_previewquantityaddress_idruby
response = client.sim_card_order_preview.preview(address_id: "1293384261075731499", quantity: 21)
puts(response)返回参数:(整数)、(字符串)、(对象)、(对象)、(对象)
quantityrecord_typeshipping_costsim_cards_costtotal_costGet all SIM card orders
获取所有SIM卡订单
Get all SIM card orders according to filters.
GET /sim_card_ordersruby
page = client.sim_card_orders.list
puts(page)Returns: (object), (string), (uuid), (object), (integer), (string), (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), (uri), (string)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_at根据筛选条件获取所有SIM卡订单。
GET /sim_card_ordersruby
page = client.sim_card_orders.list
puts(page)返回参数:(对象)、(字符串)、(uuid)、(对象)、(整数)、(字符串)、(枚举值:pending, processing, ready_to_ship, shipped, delivered, canceled)、(uri)、(字符串)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_atCreate a SIM card order
创建SIM卡订单
Creates a new order for SIM cards.
POST /sim_card_ordersaddress_idquantityruby
sim_card_order = client.sim_card_orders.create(address_id: "1293384261075731499", quantity: 23, sim_card_group_id: "550e8400-e29b-41d4-a716-446655440000")
puts(sim_card_order)Returns: (object), (string), (uuid), (object), (integer), (string), (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), (uri), (string)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_at创建新的SIM卡采购订单。
POST /sim_card_ordersaddress_idquantityruby
sim_card_order = client.sim_card_orders.create(address_id: "1293384261075731499", quantity: 23, sim_card_group_id: "550e8400-e29b-41d4-a716-446655440000")
puts(sim_card_order)返回参数:(对象)、(字符串)、(uuid)、(对象)、(整数)、(字符串)、(枚举值:pending, processing, ready_to_ship, shipped, delivered, canceled)、(uri)、(字符串)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_atGet a single SIM card order
获取单个SIM卡订单
Get a single SIM card order by its ID.
GET /sim_card_orders/{id}ruby
sim_card_order = client.sim_card_orders.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_order)Returns: (object), (string), (uuid), (object), (integer), (string), (enum: pending, processing, ready_to_ship, shipped, delivered, canceled), (uri), (string)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_at根据ID获取单个SIM卡订单的详情。
GET /sim_card_orders/{id}ruby
sim_card_order = client.sim_card_orders.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card_order)返回参数:(对象)、(字符串)、(uuid)、(对象)、(整数)、(字符串)、(枚举值:pending, processing, ready_to_ship, shipped, delivered, canceled)、(uri)、(字符串)
costcreated_atidorder_addressquantityrecord_typestatustracking_urlupdated_atGet all SIM cards
获取所有SIM卡
Get all SIM cards belonging to the user that match the given filters.
GET /sim_cardsruby
page = client.sim_cards.list
puts(page)Returns: (boolean), (array | null), (string), (object), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabled获取当前用户名下符合筛选条件的所有SIM卡。
GET /sim_cardsruby
page = client.sim_cards.list
puts(page)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datadata_limiteidesim_installation_statusiccididimsimsisdnrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledRequest bulk disabling voice on SIM cards.
批量禁用SIM卡语音功能
This API triggers an asynchronous operation to disable voice on SIM cards belonging to a specified SIM Card Group.
For each SIM Card a SIM Card Action will be generated.
POST /sim_cards/actions/bulk_disable_voicesim_card_group_idruby
response = client.sim_cards.actions.bulk_disable_voice(sim_card_group_id: "6b14e151-8493-4fa1-8664-1cc4e6d14158")
puts(response)Returns: (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), (string), (uuid), (string), (object), (string)
action_typecreated_atidrecord_typesettingsupdated_at该API触发异步操作,禁用指定SIM卡分组下所有SIM卡的语音功能,每个SIM卡都会生成对应的SIM卡操作记录。
POST /sim_cards/actions/bulk_disable_voicesim_card_group_idruby
response = client.sim_cards.actions.bulk_disable_voice(sim_card_group_id: "6b14e151-8493-4fa1-8664-1cc4e6d14158")
puts(response)返回参数:(枚举值:bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips)、(字符串)、(uuid)、(字符串)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingsupdated_atRequest bulk enabling voice on SIM cards.
批量启用SIM卡语音功能
This API triggers an asynchronous operation to enable voice on SIM cards belonging to a specified SIM Card Group.
For each SIM Card a SIM Card Action will be generated.
POST /sim_cards/actions/bulk_enable_voicesim_card_group_idruby
response = client.sim_cards.actions.bulk_enable_voice(sim_card_group_id: "6b14e151-8493-4fa1-8664-1cc4e6d14158")
puts(response)Returns: (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), (string), (uuid), (string), (object), (string)
action_typecreated_atidrecord_typesettingsupdated_at该API触发异步操作,启用指定SIM卡分组下所有SIM卡的语音功能,每个SIM卡都会生成对应的SIM卡操作记录。
POST /sim_cards/actions/bulk_enable_voicesim_card_group_idruby
response = client.sim_cards.actions.bulk_enable_voice(sim_card_group_id: "6b14e151-8493-4fa1-8664-1cc4e6d14158")
puts(response)返回参数:(枚举值:bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips)、(字符串)、(uuid)、(字符串)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingsupdated_atRequest bulk setting SIM card public IPs.
批量设置SIM卡公网IP
This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.
For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the List SIM Card Action API.
POST /sim_cards/actions/bulk_set_public_ipssim_card_idsruby
response = client.sim_cards.actions.bulk_set_public_ips(sim_card_ids: ["6b14e151-8493-4fa1-8664-1cc4e6d14158"])
puts(response)Returns: (enum: bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips), (string), (uuid), (string), (object), (string)
action_typecreated_atidrecord_typesettingsupdated_at该API触发异步操作,为指定的每个SIM卡设置公网IP,每个SIM卡都会生成对应的SIM卡操作记录。可通过列出SIM卡操作接口跟进操作进度。
POST /sim_cards/actions/bulk_set_public_ipssim_card_idsruby
response = client.sim_cards.actions.bulk_set_public_ips(sim_card_ids: ["6b14e151-8493-4fa1-8664-1cc4e6d14158"])
puts(response)返回参数:(枚举值:bulk_disable_voice, bulk_enable_voice, bulk_set_public_ips)、(字符串)、(uuid)、(字符串)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingsupdated_atValidate SIM cards registration codes
校验SIM卡注册码
It validates whether SIM card registration codes are valid or not.
POST /sim_cards/actions/validate_registration_codesOptional: (array[string])
registration_codesruby
response = client.sim_cards.actions.validate_registration_codes
puts(response)Returns: (string | null), (string), (string), (boolean)
invalid_detailrecord_typeregistration_codevalid校验SIM卡注册码是否有效。
POST /sim_cards/actions/validate_registration_codes可选参数:(字符串数组)
registration_codesruby
response = client.sim_cards.actions.validate_registration_codes
puts(response)返回参数:(字符串 | 空)、(字符串)、(字符串)、(布尔值)
invalid_detailrecord_typeregistration_codevalidGet SIM card
获取SIM卡详情
Returns the details regarding a specific SIM card.
GET /sim_cards/{id}ruby
sim_card = client.sim_cards.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)Returns: (boolean), (array | null), (string), (object), (object), (string), (string), (string), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (enum: connected, disconnected, unknown), (string), (object), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabled返回指定SIM卡的详细信息。
GET /sim_cards/{id}ruby
sim_card = client.sim_cards.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串)、(字符串)、(字符串)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(枚举值:connected, disconnected, unknown)、(字符串)、(对象)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledUpdate a SIM card
更新SIM卡
Updates SIM card data
PATCH /sim_cards/{id}Optional: (boolean), (array | null), (string), (object), (object), (string), (string), (string), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (enum: connected, disconnected, unknown), (string), (object), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledruby
sim_card = client.sim_cards.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)Returns: (boolean), (array | null), (string), (object), (object), (string), (string), (string), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (enum: connected, disconnected, unknown), (string), (object), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabled更新SIM卡的信息
PATCH /sim_cards/{id}可选参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串)、(字符串)、(字符串)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(枚举值:connected, disconnected, unknown)、(字符串)、(对象)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledruby
sim_card = client.sim_cards.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串)、(字符串)、(字符串)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(枚举值:connected, disconnected, unknown)、(字符串)、(对象)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledDeletes a SIM card
删除SIM卡
The SIM card will be decommissioned, removed from your account and you will stop being charged. The SIM card won't be able to connect to the network after the deletion is completed, thus making it impossible to consume data.
Transitioning to the disabled state may take a period of time.
DELETE /sim_cards/{id}ruby
sim_card = client.sim_cards.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)Returns: (boolean), (array | null), (string), (object), (object), (string), (string), (string), (object), (string | null), (enum: released, disabled), (string), (uuid), (string), (string), (string), (enum: connected, disconnected, unknown), (string), (object), (string), (array[object]), (uuid), (object), (array[string]), (enum: physical, esim), (string), (string), (boolean)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledSIM卡将被停用并从您的账号中移除,后续不会再产生费用。删除完成后该SIM卡无法连接网络,也无法使用流量。切换到停用状态可能需要一定时间。
DELETE /sim_cards/{id}ruby
sim_card = client.sim_cards.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(sim_card)返回参数:(布尔值)、(数组 | 空)、(字符串)、(对象)、(对象)、(字符串)、(字符串)、(字符串)、(对象)、(字符串 | 空)、(枚举值:released, disabled)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)、(枚举值:connected, disconnected, unknown)、(字符串)、(对象)、(字符串)、(对象数组)、(uuid)、(对象)、(字符串数组)、(枚举值:physical, esim)、(字符串)、(字符串)、(布尔值)
actions_in_progressauthorized_imeiscreated_atcurrent_billing_period_consumed_datacurrent_device_locationcurrent_imeicurrent_mcccurrent_mncdata_limiteidesim_installation_statusiccididimsiipv4ipv6live_data_sessionmsisdnpin_puk_codesrecord_typeresources_with_in_progress_actionssim_card_group_idstatustagstypeupdated_atversionvoice_enabledRequest a SIM card disable
申请停用SIM卡
This API disables a SIM card, disconnecting it from the network and making it impossible to consume data.
The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the disabled state may take a period of time.
POST /sim_cards/{id}/actions/disableruby
response = client.sim_cards.actions.disable("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API会停用SIM卡,断开其网络连接,使其无法使用流量。API会触发一个名为SIM卡操作的异步任务,切换到停用状态可能需要一定时间。
POST /sim_cards/{id}/actions/disableruby
response = client.sim_cards.actions.disable("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atRequest a SIM card enable
申请启用SIM卡
This API enables a SIM card, connecting it to the network and making it possible to consume data.
To enable a SIM card, it must be associated with a SIM card group.
The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the enabled state may take a period of time.
POST /sim_cards/{id}/actions/enableruby
response = client.sim_cards.actions.enable("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API会启用SIM卡,连接到网络使其可以使用流量。启用SIM卡前,必须先将其关联到某个SIM卡分组。API会触发一个名为SIM卡操作的异步任务,切换到启用状态可能需要一定时间。
POST /sim_cards/{id}/actions/enableruby
response = client.sim_cards.actions.enable("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atRequest removing a SIM card public IP
移除SIM卡公网IP
This API removes an existing public IP from a SIM card.
The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the List SIM Card Action API.
The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the List SIM Card Action API.
POST /sim_cards/{id}/actions/remove_public_ipruby
response = client.sim_cards.actions.remove_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API移除SIM卡已绑定的公网IP,会触发一个名为SIM卡操作的异步任务。可通过列出SIM卡操作接口跟进操作进度。
POST /sim_cards/{id}/actions/remove_public_ipruby
response = client.sim_cards.actions.remove_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atRequest setting a SIM card public IP
为SIM卡设置公网IP
This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card.
The API will trigger an asynchronous operation called a SIM Card Action.
The API will trigger an asynchronous operation called a SIM Card Action.
POST /sim_cards/{id}/actions/set_public_ipruby
response = client.sim_cards.actions.set_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at该API会为SIM卡分配随机公网IP,使其可以通过公网访问,会触发一个名为SIM卡操作的异步任务。
POST /sim_cards/{id}/actions/set_public_ipruby
response = client.sim_cards.actions.set_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atRequest setting a SIM card to standby
申请将SIM卡设置为待机状态
The SIM card will be able to connect to the network once the process to set it to standby has been completed, thus making it possible to consume data.
To set a SIM card to standby, it must be associated with SIM card group.
The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the standby state may take a period of time.
POST /sim_cards/{id}/actions/set_standbyruby
response = client.sim_cards.actions.set_standby("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (enum: enable, enable_standby_sim_card, disable, set_standby), (string), (uuid), (string), (object | null), (uuid), (object), (string)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_at设置为待机状态的操作完成后,SIM卡可以连接网络并使用流量。设置待机状态前,必须先将SIM卡关联到某个SIM卡分组。API会触发一个名为SIM卡操作的异步任务,切换到待机状态可能需要一定时间。
POST /sim_cards/{id}/actions/set_standbyruby
response = client.sim_cards.actions.set_standby("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(枚举值:enable, enable_standby_sim_card, disable, set_standby)、(字符串)、(uuid)、(字符串)、(对象 | 空)、(uuid)、(对象)、(字符串)
action_typecreated_atidrecord_typesettingssim_card_idstatusupdated_atGet activation code for an eSIM
获取eSIM激活码
It returns the activation code for an eSIM.
This API is only available for eSIMs. If the given SIM is a physical SIM card, or has already been installed, an error will be returned.
This API is only available for eSIMs. If the given SIM is a physical SIM card, or has already been installed, an error will be returned.
GET /sim_cards/{id}/activation_coderuby
response = client.sim_cards.get_activation_code("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (string), (string)
activation_coderecord_type返回eSIM的激活码。该API仅适用于eSIM,如果指定的是物理SIM卡或者已完成安装的eSIM,会返回错误。
GET /sim_cards/{id}/activation_coderuby
response = client.sim_cards.get_activation_code("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(字符串)、(字符串)
activation_coderecord_typeGet SIM card device details
获取SIM卡设备详情
It returns the device details where a SIM card is currently being used.
GET /sim_cards/{id}/device_detailsruby
response = client.sim_cards.get_device_details("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (string), (string), (string), (string), (string), (string)
brand_namedevice_typeimeimodel_nameoperating_systemrecord_type返回当前正在使用该SIM卡的设备详细信息。
GET /sim_cards/{id}/device_detailsruby
response = client.sim_cards.get_device_details("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(字符串)、(字符串)、(字符串)、(字符串)、(字符串)、(字符串)
brand_namedevice_typeimeimodel_nameoperating_systemrecord_typeGet SIM card public IP definition
获取SIM卡公网IP配置
It returns the public IP requested for a SIM card.
GET /sim_cards/{id}/public_ipruby
response = client.sim_cards.get_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)Returns: (string), (string), (string), (string), (uuid), (enum: ipv4), (string)
created_atiprecord_typeregion_codesim_card_idtypeupdated_at返回为SIM卡申请的公网IP信息。
GET /sim_cards/{id}/public_ipruby
response = client.sim_cards.get_public_ip("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)返回参数:(字符串)、(字符串)、(字符串)、(字符串)、(uuid)、(枚举值:ipv4)、(字符串)
created_atiprecord_typeregion_codesim_card_idtypeupdated_atList wireless connectivity logs
列出无线连接日志
This API allows listing a paginated collection of Wireless Connectivity Logs associated with a SIM Card, for troubleshooting purposes.
GET /sim_cards/{id}/wireless_connectivity_logsruby
page = client.sim_cards.list_wireless_connectivity_logs("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(page)Returns: (string), (string), (string), (integer), (string), (string), (string), (string), (string), (enum: registration, data), (string), (string), (string), (string), (uuid), (string), (string), (string)
apncell_idcreated_atidimeiimsiipv4ipv6last_seenlog_typemobile_country_codemobile_network_coderadio_access_technologyrecord_typesim_card_idstart_timestatestop_time该API返回指定SIM卡关联的分页无线连接日志,用于排查问题。
GET /sim_cards/{id}/wireless_connectivity_logsruby
page = client.sim_cards.list_wireless_connectivity_logs("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(page)返回参数:(字符串)、(字符串)、(字符串)、(整数)、(字符串)、(字符串)、(字符串)、(字符串)、(字符串)、(枚举值:registration, data)、(字符串)、(字符串)、(字符串)、(字符串)、(uuid)、(字符串)、(字符串)、(字符串)
apncell_idcreated_atidimeiimsiipv4ipv6last_seenlog_typemobile_country_codemobile_network_coderadio_access_technologyrecord_typesim_card_idstart_timestatestop_timeList Migration Source coverage
列出迁移源覆盖区域
GET /storage/migration_source_coverageruby
response = client.storage.list_migration_source_coverage
puts(response)Returns: (enum: aws), (string)
providersource_regionGET /storage/migration_source_coverageruby
response = client.storage.list_migration_source_coverage
puts(response)返回参数:(枚举值:aws)、(字符串)
providersource_regionList all Migration Sources
列出所有迁移源
GET /storage/migration_sourcesruby
migration_sources = client.storage.migration_sources.list
puts(migration_sources)Returns: (string), (string), (enum: aws, telnyx), (object), (string)
bucket_nameidproviderprovider_authsource_regionGET /storage/migration_sourcesruby
migration_sources = client.storage.migration_sources.list
puts(migration_sources)返回参数:(字符串)、(字符串)、(枚举值:aws, telnyx)、(对象)、(字符串)
bucket_nameidproviderprovider_authsource_regionCreate a Migration Source
创建迁移源
Create a source from which data can be migrated from.
POST /storage/migration_sourcesproviderprovider_authbucket_nameOptional: (string), (string)
idsource_regionruby
migration_source = client.storage.migration_sources.create(bucket_name: "my-bucket", provider: :aws, provider_auth: {})
puts(migration_source)Returns: (string), (string), (enum: aws, telnyx), (object), (string)
bucket_nameidproviderprovider_authsource_region创建可用于数据迁移的源地址。
POST /storage/migration_sourcesproviderprovider_authbucket_name可选参数:(字符串)、(字符串)
idsource_regionruby
migration_source = client.storage.migration_sources.create(bucket_name: "my-bucket", provider: :aws, provider_auth: {})
puts(migration_source)返回参数:(字符串)、(字符串)、(枚举值:aws, telnyx)、(对象)、(字符串)
bucket_nameidproviderprovider_authsource_regionGet a Migration Source
获取迁移源
GET /storage/migration_sources/{id}ruby
migration_source = client.storage.migration_sources.retrieve("")
puts(migration_source)Returns: (string), (string), (enum: aws, telnyx), (object), (string)
bucket_nameidproviderprovider_authsource_regionGET /storage/migration_sources/{id}ruby
migration_source = client.storage.migration_sources.retrieve("")
puts(migration_source)返回参数:(字符串)、(字符串)、(枚举值:aws, telnyx)、(对象)、(字符串)
bucket_nameidproviderprovider_authsource_regionDelete a Migration Source
删除迁移源
DELETE /storage/migration_sources/{id}ruby
migration_source = client.storage.migration_sources.delete("")
puts(migration_source)Returns: (string), (string), (enum: aws, telnyx), (object), (string)
bucket_nameidproviderprovider_authsource_regionDELETE /storage/migration_sources/{id}ruby
migration_source = client.storage.migration_sources.delete("")
puts(migration_source)返回参数:(字符串)、(字符串)、(枚举值:aws, telnyx)、(对象)、(字符串)
bucket_nameidproviderprovider_authsource_regionList all Migrations
列出所有迁移任务
GET /storage/migrationsruby
migrations = client.storage.migrations.list
puts(migrations)Returns: (integer), (integer), (date-time), (date-time), (string), (date-time), (boolean), (string), (integer), (enum: pending, checking, migrating, complete, error, stopped), (string), (string)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionGET /storage/migrationsruby
migrations = client.storage.migrations.list
puts(migrations)返回参数:(整数)、(整数)、(日期时间)、(日期时间)、(字符串)、(日期时间)、(布尔值)、(字符串)、(整数)、(枚举值:pending, checking, migrating, complete, error, stopped)、(字符串)、(字符串)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionCreate a Migration
创建迁移任务
Initiate a migration of data from an external provider into Telnyx Cloud Storage. Currently, only S3 is supported.
POST /storage/migrationssource_idtarget_bucket_nametarget_regionOptional: (integer), (integer), (date-time), (date-time), (string), (date-time), (boolean), (integer), (enum: pending, checking, migrating, complete, error, stopped)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshspeedstatusruby
migration = client.storage.migrations.create(
source_id: "550e8400-e29b-41d4-a716-446655440000",
target_bucket_name: "my-target-bucket",
target_region: "us-central-1"
)
puts(migration)Returns: (integer), (integer), (date-time), (date-time), (string), (date-time), (boolean), (string), (integer), (enum: pending, checking, migrating, complete, error, stopped), (string), (string)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_region启动从外部服务到Telnyx云存储的数据迁移任务,目前仅支持S3。
POST /storage/migrationssource_idtarget_bucket_nametarget_region可选参数:(整数)、(整数)、(日期时间)、(日期时间)、(字符串)、(日期时间)、(布尔值)、(整数)、(枚举值:pending, checking, migrating, complete, error, stopped)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshspeedstatusruby
migration = client.storage.migrations.create(
source_id: "550e8400-e29b-41d4-a716-446655440000",
target_bucket_name: "my-target-bucket",
target_region: "us-central-1"
)
puts(migration)返回参数:(整数)、(整数)、(日期时间)、(日期时间)、(字符串)、(日期时间)、(布尔值)、(字符串)、(整数)、(枚举值:pending, checking, migrating, complete, error, stopped)、(字符串)、(字符串)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionGet a Migration
获取迁移任务
GET /storage/migrations/{id}ruby
migration = client.storage.migrations.retrieve("")
puts(migration)Returns: (integer), (integer), (date-time), (date-time), (string), (date-time), (boolean), (string), (integer), (enum: pending, checking, migrating, complete, error, stopped), (string), (string)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionGET /storage/migrations/{id}ruby
migration = client.storage.migrations.retrieve("")
puts(migration)返回参数:(整数)、(整数)、(日期时间)、(日期时间)、(字符串)、(日期时间)、(布尔值)、(字符串)、(整数)、(枚举值:pending, checking, migrating, complete, error, stopped)、(字符串)、(字符串)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionStop a Migration
停止迁移任务
POST /storage/migrations/{id}/actions/stopruby
response = client.storage.migrations.actions.stop("")
puts(response)Returns: (integer), (integer), (date-time), (date-time), (string), (date-time), (boolean), (string), (integer), (enum: pending, checking, migrating, complete, error, stopped), (string), (string)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionPOST /storage/migrations/{id}/actions/stopruby
response = client.storage.migrations.actions.stop("")
puts(response)返回参数:(整数)、(整数)、(日期时间)、(日期时间)、(字符串)、(日期时间)、(布尔值)、(字符串)、(整数)、(枚举值:pending, checking, migrating, complete, error, stopped)、(字符串)、(字符串)
bytes_migratedbytes_to_migratecreated_atetaidlast_copyrefreshsource_idspeedstatustarget_bucket_nametarget_regionList Mobile Voice Connections
列出移动语音连接
GET /v2/mobile_voice_connectionsruby
page = client.mobile_voice_connections.list
puts(page)Returns: (boolean), (string), (date-time), (string), (object), (object), (enum: mobile_voice_connection), (array[string]), (date-time), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /v2/mobile_voice_connectionsruby
page = client.mobile_voice_connections.list
puts(page)返回参数:(布尔值)、(字符串)、(日期时间)、(字符串)、(对象)、(对象)、(枚举值:mobile_voice_connection)、(字符串数组)、(日期时间)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsCreate a Mobile Voice Connection
创建移动语音连接
POST /v2/mobile_voice_connectionsOptional: (boolean), (string), (object), (object), (array[string]), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_nameinboundoutboundtagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsruby
mobile_voice_connection = client.mobile_voice_connections.create
puts(mobile_voice_connection)Returns: (boolean), (string), (date-time), (string), (object), (object), (enum: mobile_voice_connection), (array[string]), (date-time), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPOST /v2/mobile_voice_connections可选参数:(布尔值)、(字符串)、(对象)、(对象)、(字符串数组)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_nameinboundoutboundtagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsruby
mobile_voice_connection = client.mobile_voice_connections.create
puts(mobile_voice_connection)返回参数:(布尔值)、(字符串)、(日期时间)、(字符串)、(对象)、(对象)、(枚举值:mobile_voice_connection)、(字符串数组)、(日期时间)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsRetrieve a Mobile Voice Connection
查询移动语音连接
GET /v2/mobile_voice_connections/{id}ruby
mobile_voice_connection = client.mobile_voice_connections.retrieve("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)Returns: (boolean), (string), (date-time), (string), (object), (object), (enum: mobile_voice_connection), (array[string]), (date-time), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /v2/mobile_voice_connections/{id}ruby
mobile_voice_connection = client.mobile_voice_connections.retrieve("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)返回参数:(布尔值)、(字符串)、(日期时间)、(字符串)、(对象)、(对象)、(枚举值:mobile_voice_connection)、(字符串数组)、(日期时间)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsUpdate a Mobile Voice Connection
更新移动语音连接
PATCH /v2/mobile_voice_connections/{id}Optional: (boolean), (string), (object), (object), (array[string]), (enum: 1, 2), (string | null), (string | null), (integer)
activeconnection_nameinboundoutboundtagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsruby
mobile_voice_connection = client.mobile_voice_connections.update("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)Returns: (boolean), (string), (date-time), (string), (object), (object), (enum: mobile_voice_connection), (array[string]), (date-time), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPATCH /v2/mobile_voice_connections/{id}可选参数:(布尔值)、(字符串)、(对象)、(对象)、(字符串数组)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数)
activeconnection_nameinboundoutboundtagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsruby
mobile_voice_connection = client.mobile_voice_connections.update("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)返回参数:(布尔值)、(字符串)、(日期时间)、(字符串)、(对象)、(对象)、(枚举值:mobile_voice_connection)、(字符串数组)、(日期时间)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDelete a Mobile Voice Connection
删除移动语音连接
DELETE /v2/mobile_voice_connections/{id}ruby
mobile_voice_connection = client.mobile_voice_connections.delete("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)Returns: (boolean), (string), (date-time), (string), (object), (object), (enum: mobile_voice_connection), (array[string]), (date-time), (enum: 1, 2), (string | null), (string | null), (integer | null)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDELETE /v2/mobile_voice_connections/{id}ruby
mobile_voice_connection = client.mobile_voice_connections.delete("550e8400-e29b-41d4-a716-446655440000")
puts(mobile_voice_connection)返回参数:(布尔值)、(字符串)、(日期时间)、(字符串)、(对象)、(对象)、(枚举值:mobile_voice_connection)、(字符串数组)、(日期时间)、(枚举值:1, 2)、(字符串 | 空)、(字符串 | 空)、(整数 | 空)
activeconnection_namecreated_atidinboundoutboundrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGet all wireless regions
获取所有无线区域
Retrieve all wireless regions for the given product.
GET /wireless/regionsruby
response = client.wireless.retrieve_regions(product: "public_ips")
puts(response)Returns: (string), (date-time), (string), (date-time)
codeinserted_atnameupdated_at查询指定产品支持的所有无线区域。
GET /wireless/regionsruby
response = client.wireless.retrieve_regions(product: "public_ips")
puts(response)返回参数:(字符串)、(日期时间)、(字符串)、(日期时间)
codeinserted_atnameupdated_atGet all possible wireless blocklist values
获取所有可用的无线黑名单值
Retrieve all wireless blocklist values for a given blocklist type.
GET /wireless_blocklist_valuesruby
wireless_blocklist_values = client.wireless_blocklist_values.list(type: :country)
puts(wireless_blocklist_values)Returns: (object), (object)
datameta查询指定类型的无线黑名单支持的所有可选值。
GET /wireless_blocklist_valuesruby
wireless_blocklist_values = client.wireless_blocklist_values.list(type: :country)
puts(wireless_blocklist_values)返回参数:(对象)、(对象)
datametaGet all Wireless Blocklists
获取所有无线黑名单
Get all Wireless Blocklists belonging to the user.
GET /wireless_blocklistsruby
page = client.wireless_blocklists.list
puts(page)Returns: (string), (uuid), (string), (string), (enum: country, mcc, plmn), (string), (array[object])
created_atidnamerecord_typetypeupdated_atvalues获取当前用户名下的所有无线黑名单。
GET /wireless_blocklistsruby
page = client.wireless_blocklists.list
puts(page)返回参数:(字符串)、(uuid)、(字符串)、(字符串)、(枚举值:country, mcc, plmn)、(字符串)、(对象数组)
created_atidnamerecord_typetypeupdated_atvaluesCreate a Wireless Blocklist
创建无线黑名单
Create a Wireless Blocklist to prevent SIMs from connecting to certain networks.
POST /wireless_blocklistsnametypevaluesruby
wireless_blocklist = client.wireless_blocklists.create(name: "My Wireless Blocklist", type: :country, values: ["CA", "US"])
puts(wireless_blocklist)Returns: (string), (uuid), (string), (string), (enum: country, mcc, plmn), (string), (array[object])
created_atidnamerecord_typetypeupdated_atvalues创建无线黑名单,用于阻止SIM卡连接到特定网络。
POST /wireless_blocklistsnametypevaluesruby
wireless_blocklist = client.wireless_blocklists.create(name: "My Wireless Blocklist", type: :country, values: ["CA", "US"])
puts(wireless_blocklist)返回参数:(字符串)、(uuid)、(字符串)、(字符串)、(枚举值:country, mcc, plmn)、(字符串)、(对象数组)
created_atidnamerecord_typetypeupdated_atvaluesUpdate a Wireless Blocklist
更新无线黑名单
Update a Wireless Blocklist.
PATCH /wireless_blocklistsOptional: (string), (enum: country, mcc, plmn), (array[object])
nametypevaluesruby
wireless_blocklist = client.wireless_blocklists.update
puts(wireless_blocklist)Returns: (string), (uuid), (string), (string), (enum: country, mcc, plmn), (string), (array[object])
created_atidnamerecord_typetypeupdated_atvalues更新无线黑名单的信息。
PATCH /wireless_blocklists可选参数:(字符串)、(枚举值:country, mcc, plmn)、(对象数组)
nametypevaluesruby
wireless_blocklist = client.wireless_blocklists.update
puts(wireless_blocklist)返回参数:(字符串)、(uuid)、(字符串)、(字符串)、(枚举值:country, mcc, plmn)、(字符串)、(对象数组)
created_atidnamerecord_typetypeupdated_atvaluesGet a Wireless Blocklist
获取无线黑名单
Retrieve information about a Wireless Blocklist.
GET /wireless_blocklists/{id}ruby
wireless_blocklist = client.wireless_blocklists.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireless_blocklist)Returns: (string), (uuid), (string), (string), (enum: country, mcc, plmn), (string), (array[object])
created_atidnamerecord_typetypeupdated_atvalues查询指定无线黑名单的信息。
GET /wireless_blocklists/{id}ruby
wireless_blocklist = client.wireless_blocklists.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireless_blocklist)返回参数:(字符串)、(uuid)、(字符串)、(字符串)、(枚举值:country, mcc, plmn)、(字符串)、(对象数组)
created_atidnamerecord_typetypeupdated_atvaluesDelete a Wireless Blocklist
删除无线黑名单
Deletes the Wireless Blocklist.
DELETE /wireless_blocklists/{id}ruby
wireless_blocklist = client.wireless_blocklists.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireless_blocklist)Returns: (string), (uuid), (string), (string), (enum: country, mcc, plmn), (string), (array[object])
created_atidnamerecord_typetypeupdated_atvalues删除指定的无线黑名单。
DELETE /wireless_blocklists/{id}ruby
wireless_blocklist = client.wireless_blocklists.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireless_blocklist)返回参数:(字符串)、(uuid)、(字符串)、(字符串)、(枚举值:country, mcc, plmn)、(字符串)、(对象数组)
created_atidnamerecord_typetypeupdated_atvalues