Table: fastly_service - Query OCI Fastly Services using SQL
Fastly service is a flexible, secure, and scalable platform designed to deliver fast and reliable online experiences. It provides edge cloud platform, web application firewall, bot management, and other services to businesses. It enables developers to build, secure, and deliver digital experiences at the edge of the internet.
Table Usage Guide
The fastly_service
table provides insights into Fastly services within Oracle Cloud Infrastructure (OCI). As a DevOps engineer, you can explore service-specific details through this table, including service ID, name, customer ID, and version details. Utilize it to uncover information about services, such as their active versions, configurations, and associated customer details.
Examples
Basic info
Explore the basic information of your Fastly services to understand the active versions, their creation dates, and types. This can help in managing and tracking the progress and status of your services.
select id, name, active_version, comment, created_at, typefrom fastly_service;
select id, name, active_version, comment, created_at, typefrom fastly_service;
List services created in the last 30 days
Explore which services have been activated in the recent past. This could be useful to track new additions and assess the growth and expansion of your application or platform.
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere created_at >= now() - interval '30 days';
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere created_at >= datetime('now', '-30 days');
List services that have not been updated in the last 90 days
Discover the segments that have been inactive for the last 90 days. This could be useful in identifying potential areas of neglect or inactivity within your services.
select id, name, active_version, comment, updated_at, typefrom fastly_servicewhere updated_at < now() - interval '90 days';
select id, name, active_version, comment, updated_at, typefrom fastly_servicewhere updated_at < datetime('now', '-90 days');
List services that are not deleted
Identify active services in your system by checking which ones have not been marked as deleted. This can help maintain an accurate overview of your current operational services.
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere deleted_at is null;
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere deleted_at is null;
List wasm type services
Explore which services are of the 'wasm' type within your Fastly configuration. This query is useful for identifying these specific services and understanding their distribution within your setup.
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere type = 'wasm';
select id, name, active_version, comment, created_at, typefrom fastly_servicewhere type = 'wasm';
Schema for fastly_service
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
active_version | bigint | Configuration for the active version of this service. | |
comment | text | A freeform descriptive note. | |
created_at | timestamp with time zone | Time-stamp (UTC) of when the service was created. | |
customer_id | text | Alphanumeric string identifying the customer. | |
deleted_at | timestamp with time zone | Time-stamp (UTC) of when the service was deleted. | |
id | text | Alphanumeric string identifying a service. | |
name | text | The name of the service. | |
service_id | text | =, !=, ~~, ~~*, !~~, !~~* | Alphanumeric string identifying the service. |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | Title of the resource. | |
type | text | The type of this service. | |
updated_at | timestamp with time zone | Time-stamp (UTC) of when the service was updated. | |
version | text | Versions associated with the service. | |
versions | jsonb | A list of versions associated with the service. |
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)" -- fastly
You can pass the configuration to the command with the --config
argument:
steampipe_export_fastly --config '<your_config>' fastly_service