For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fastly

Manage Fastly cache and service versions and inspect real-time CDN analytics.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

Fastly

API Token

Fastly

Connect with a Fastly user API token to manage cache and service versions and inspect service analytics.

Set up in Fastly

  1. Prepare the Fastly account or service that the workflow will access. Grant access to the required resources and operations.

  2. API Token: Create a Fastly user API token. Use global scope for service activation; read-only and purge actions can use their documented narrower scopes.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Fastly.

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

API Token

Yes

Create a Fastly user API token. Use global scope for service activation; read-only and purge actions can use their documented narrower scopes. Provider instructions.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required Fastly action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

Purge a URL from Cache

Invalidate one cached URL, optionally as a soft purge.

Required permissions: purge_select.

Inputs

Field
Type
Required
Description

Cached URL

string

Yes

The exact cached URL to invalidate.

Soft Purge

boolean

No

Mark the object stale instead of making it immediately inaccessible. Default: true.

Outputs

Field
Type
Description

Purge Status

string

Fastly's purge status.

Purge ID

string

Fastly's optional identifier for the purge request.

Purge All Cache for a Service

Immediately invalidate all cached content for one Fastly service.

Required permissions: purge_all.

Inputs

Field
Type
Required
Description

Service

select (string)

Yes

The Fastly service whose entire cache will be invalidated. Options load from the selected connection.

Confirm Purge All

boolean

Yes

Confirm that every cached object for this service should be invalidated. Default: false.

Outputs

Field
Type
Description

Purge Status

string

Fastly's purge-all status.

List Services

List Fastly services available to the connected token.

Required permissions: global:read.

Inputs

Field
Type
Required
Description

Starting Page

integer

No

Resume from this one-based Fastly result page. Minimum: 1. Default: 1.

Result Limit

integer

No

Approximate maximum number of services to return. Minimum: 1. Maximum: 100. Default: 50.

Outputs

Field
Type
Description

Services

object_array

Fastly service summaries available to the connected token.

Next Page

integer

Pass this back as Starting Page to continue, if present.

Activate a Service Version

Activate a selected configuration version for a Fastly service.

Required permissions: global.

Inputs

Field
Type
Required
Description

Service

select (string)

Yes

The Fastly service whose version will become active. Options load from the selected connection.

Service Version

select (string)

Yes

The existing service version to activate. Options load from the selected connection.

Confirm Activation

boolean

Yes

Confirm that this version should begin serving live traffic. Default: false.

Outputs

Field
Type
Description

Activated Version

object

The activated Fastly service version.

Get Real-Time Analytics for a Service

Get recent per-second traffic and cache metrics for one Fastly service.

Required permissions: global:read.

Inputs

Field
Type
Required
Description

Service

select (string)

Yes

The Fastly service to inspect. Options load from the selected connection.

Seconds to Return

integer

No

Number of recent one-second records to return. Minimum: 1. Maximum: 120. Default: 10.

Outputs

Field
Type
Description

Latest Timestamp

integer

Fastly's latest available Unix timestamp.

Aggregate Delay

integer

Seconds Fastly waits before aggregating records.

Analytics Records

object_array

Recent typed per-second Fastly analytics records.

Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?