steampipe plugin install twilio

Table: twilio_account_application - Query Twilio Account Applications using SQL

Twilio Account Applications represent the settings and configurations for a specific application in Twilio. It encapsulates the behavior you’d like your call to exhibit once it’s connected. This includes things like the URL of the script you’d like to run, whether to record the calls, and whether to record the calls as mono or dual-channel.

Table Usage Guide

The twilio_account_application table provides insights into application settings within Twilio. As a DevOps engineer, explore application-specific details through this table, including URLs of the scripts to run, recording preferences, and channel settings. Utilize it to uncover information about applications, such as those with specific configurations, the behavior of calls once connected, and the verification of application settings.

Examples

Basic info

Explore which Twilio applications are currently linked to your account, with a focus on understanding how each application is configured for sending SMS and voice messages. This can be useful for auditing communication settings and ensuring the correct methods are in place.

select
sid,
friendly_name,
sms_url,
sms_method,
voice_url,
voice_method,
account_sid
from
twilio_account_application;
select
sid,
friendly_name,
sms_url,
sms_method,
voice_url,
voice_method,
account_sid
from
twilio_account_application;

List applications with caller ID lookup feature enabled

Gain insights into the applications that have the caller ID lookup feature enabled. This can be useful for auditing purposes, ensuring that the feature is only activated for the intended applications.

select
sid,
friendly_name,
sms_url,
voice_url,
voice_caller_id_lookup,
account_sid
from
twilio_account_application
where
voice_caller_id_lookup;
select
sid,
friendly_name,
sms_url,
voice_url,
voice_caller_id_lookup,
account_sid
from
twilio_account_application
where
voice_caller_id_lookup = 1;

List applications with no voice fallback URL configured

Discover which applications lack a configured voice fallback URL. This can help in identifying potential communication gaps in your Twilio account, ensuring that all applications have a fallback option for voice services.

select
sid,
friendly_name,
sms_url,
voice_url,
voice_fallback_url,
account_sid
from
twilio_account_application
where
voice_fallback_url is null;
select
sid,
friendly_name,
sms_url,
voice_url,
voice_fallback_url,
account_sid
from
twilio_account_application
where
voice_fallback_url is null;

Schema for twilio_account_application

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
account_sidtextThe SID of the Account that created the resource.
api_versiontextThe API version used to start a new TwiML session.
date_createdtimestamp with time zoneThe date and time that the resource was created.
date_updatedtimestamp with time zoneThe date and time that the resource was last updated.
friendly_nametext=The string that you assigned to describe the resource.
message_status_callbacktextThe URL to send message status information to your application.
sidtext=The unique string that identifies the resource.
sms_fallback_methodtextThe HTTP method used with sms_fallback_url.
sms_fallback_urltextThe URL that we call when an error occurs while retrieving or executing the TwiML.
sms_methodtextThe HTTP method to use with sms_url.
sms_status_callbacktextThe URL to SMS send status information to your application.
sms_urltextThe URL we call when the phone number receives an incoming SMS message.
status_callbacktextThe URL to send status information to your application.
status_callback_methodtextThe HTTP method we use to call status_callback.
uritextThe URI of the resource, relative to 'https://api.twilio.com'.
voice_caller_id_lookupbooleanIndicates whether to lookup the caller's name, or not.
voice_fallback_methodtextThe HTTP method used with voice_fallback_url.
voice_fallback_urltextThe URL we call when a TwiML error occurs.
voice_methodtextThe HTTP method used with the voice_url.
voice_urltextThe URL we call when the phone number receives a call.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- twilio

You can pass the configuration to the command with the --config argument:

steampipe_export_twilio --config '<your_config>' twilio_account_application