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.
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
Prepare the Fastly account or service that the workflow will access. Grant access to the required resources and operations.
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
Open Settings → Connections, add a connection, and select Fastly.
Enter the credentials and connection details in the fields below.
Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.
Connection fields
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
Add the required Fastly action to the workflow.
Select a connection when the action requests one.
Complete the required fields. Use the reference picker when a value comes from another workflow step.
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
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
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
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
Purge Status
string
Fastly's purge-all status.
List Services
List Fastly services available to the connected token.
Required permissions: global:read.
Inputs
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
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
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
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
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
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?

