Fastly
Fastly is a global edge cloud platform and content delivery network (CDN) that provides fast, secure, and scalable content delivery, application acceleration, and edge computing capabilities. This data integration enables comprehensive visibility and management of Fastly infrastructure, configurations, and network resources through queryable datasets.
| Category | CDN |
| Direction | Query source |
| Sign-in | Fastly API Token |
| Query languages | SQLite |
| Tables | 13 |
| Query templates | 60 |
| Website | fastly.com |
Before you start
Huntbase signs in to Fastly with Fastly API Token. Create the credential in Fastly first, then keep it to hand for the Connect step.
- In the Fastly control panel, go to Account › API tokens › Personal tokens and click Create token. Enter your password when prompted.
- Enter a descriptive name and choose the token type and role.
- Under scope, select Read-only access (
global:read). - Under service access, limit the token to the service you want to query, and set an expiration.
- Click Create Token and copy the token immediately. It is never shown again.
Permissions:
global:read(read-only access to account information, configuration and stats)
- Each connection covers a single Fastly service, so the token must have access to the service in Service ID.
For the vendor's own instructions, see Fastly API token documentation.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Fastly
- Go to Connections and click New connection, or click New connection on the Fastly product page.
- On Product, pick Fastly and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Fastly lives:
| Field | Required | Notes |
|---|---|---|
| Service ID | Yes | |
| Base URL | No | Leave it empty to use https://api.fastly.com. |
| Service Version | No | Leave it empty to use the service's active version, or the latest version when none is active. |
Credentials
The only Method is Fastly API Token. Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| Fastly API Token | Yes | Secret — not shown again after you save it. |
Query it
Once connected, Fastly can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL over the 13 tables listed below, alongside every other connected source. |
Example: SQLite
Fastly IP range basic info — List all IP ranges used in the Fastly network along with their IP version.
select
cidr,
version
from
fastly_ip_range;
Fastly ships with 60 query templates. Find them in Library › Queries — see Query templates.
Tables
Fastly adds 13 tables. Browse their columns from Schema in the query bar's ⋯ menu.
All 13 tables
| Table | Contains |
|---|---|
fastly_acl | ACLs for the service version. |
fastly_acl_entry | ACL entries for the service version. |
fastly_backend | Backends for the service version. |
fastly_condition | Conditions defined in the service version. |
fastly_data_center | Data centers in the Fastly network. |
fastly_dictionary | Dictionaries for the service version. |
fastly_health_check | Health checks for the service version. |
fastly_ip_range | All IP ranges (v4 & v6) in the Fastly account. |
fastly_pool | Pools in the Fastly account. |
fastly_service | Services in the Fastly account. |
fastly_service_domain | Domains for the service version. |
fastly_service_version | Service versions in the Fastly account. |
fastly_token | Tokens in the Fastly account. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog