import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const wirelessBlocklist = await client.wirelessBlocklists.create({
name: 'My Wireless Blocklist',
type: 'country',
values: ['CA', 'US'],
});
console.log(wirelessBlocklist.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireless_blocklist",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"name": "North American Wireless Blocklist",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
}Create a Wireless Blocklist to prevent SIMs from connecting to certain networks.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const wirelessBlocklist = await client.wirelessBlocklists.create({
name: 'My Wireless Blocklist',
type: 'country',
values: ['CA', 'US'],
});
console.log(wirelessBlocklist.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireless_blocklist",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"name": "North American Wireless Blocklist",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the Wireless Blocklist.
"My Wireless Blocklist"
The type of wireless blocklist.
country, mcc, plmn "country"
Values to block. The values here depend on the type of Wireless Blocklist.
ISO 3166-1 Alpha-2 Country Code.
"US"
["CA", "US"]Successful Response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
"wireless_blocklist"
ISO 8601 formatted date-time indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
The wireless blocklist name.
"My wireless blocklist."
The type of the wireless blocklist.
country, mcc, plmn "country"
Values to block. The values here depend on the type of Wireless Blocklist.
ISO 3166-1 Alpha-2 Country Code.
"US"
["CA", "MX", "US"]Was this page helpful?