Skip to content

fastly/fastly-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastly PHP

A PHP client library for interacting with most facets of the Fastly API.

Installation

Requires PHP 7.3 or later.

To install via Composer, add the following to your project's composer.json:

{
  "require": {
    "fastly/fastly": "*@dev"
  }
}

Then run composer install.

Composer generates a vendor/autoload.php file. You can include this file and start using the classes provided by this client without any extra work:

<?php
require_once('/path/to/project/vendor/autoload.php');

Usage

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Authorize the client with a Fastly API token.
$config = Fastly\Configuration::getDefaultConfiguration()->setApiToken('YOUR_API_TOKEN');

// Alternatively, set the FASTLY_API_TOKEN environment variable:
// $config = Fastly\Configuration::getDefaultConfiguration();

$apiInstance = new Fastly\Api\(
    // Optionally, pass a custom client that implements `GuzzleHttp\ClientInterface`.
    // `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

$options['service_id'] = 'SU1Z0isxPaozGVKXdv0eY'; // string
$options['version_id'] = 56; // int
$options['name'] = 'my_acl'; // string

try {
    $result = $apiInstance->createAcl($options);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AclApi->createAcl: ', $e->getMessage(), PHP_EOL;
}

Authorization

Note

The Fastly API requires an API token for most operations.

Set up the API token in the PHP client by using the setApiToken method of a configuration as shown:

Fastly\Configuration::getDefaultConfiguration()->setApiToken('YOUR_API_TOKEN');

Alternatively, set the FASTLY_API_TOKEN environment variable instead of using setApiToken.

Fastly\Configuration::getDefaultConfiguration();

API Endpoints

The main documentation for the Fastly API can be found on our Developer Hub.

Table of API endpoints
Class Method Description
AclApi createAcl Create a new ACL
AclApi deleteAcl Delete an ACL
AclApi getAcl Describe an ACL
AclApi listAcls List ACLs
AclApi updateAcl Update an ACL
AclEntryApi bulkUpdateAclEntries Update multiple ACL entries
AclEntryApi createAclEntry Create an ACL entry
AclEntryApi deleteAclEntry Delete an ACL entry
AclEntryApi getAclEntry Describe an ACL entry
AclEntryApi listAclEntries List ACL entries
AclEntryApi updateAclEntry Update an ACL entry
AclsInComputeApi computeAclCreateAcls Create a new ACL
AclsInComputeApi computeAclDeleteSAclId Delete an ACL
AclsInComputeApi computeAclListAclEntries List an ACL
AclsInComputeApi computeAclListAcls List ACLs
AclsInComputeApi computeAclListAclsSAclId Describe an ACL
AclsInComputeApi computeAclLookupAcls Lookup an ACL
AclsInComputeApi computeAclUpdateAcls Update an ACL
ApexRedirectApi createApexRedirect Create an apex redirect
ApexRedirectApi deleteApexRedirect Delete an apex redirect
ApexRedirectApi getApexRedirect Get an apex redirect
ApexRedirectApi listApexRedirects List apex redirects
ApexRedirectApi updateApexRedirect Update an apex redirect
AutomationTokensApi createAutomationToken Create Automation Token
AutomationTokensApi getAutomationTokenId Retrieve an Automation Token by ID
AutomationTokensApi getAutomationTokensIdServices List Automation Token Services
AutomationTokensApi listAutomationTokens List Customer Automation Tokens
AutomationTokensApi revokeAutomationTokenId Revoke an Automation Token by ID
BackendApi createBackend Create a backend
BackendApi deleteBackend Delete a backend
BackendApi getBackend Describe a backend
BackendApi listBackends List backends
BackendApi updateBackend Update a backend
BillingApi getInvoice Get an invoice
BillingApi getInvoiceById Get an invoice
BillingApi getInvoiceMtd Get month-to-date billing estimate
BillingAddressApi addBillingAddr Add a billing address to a customer
BillingAddressApi deleteBillingAddr Delete a billing address
BillingAddressApi getBillingAddr Get a billing address
BillingAddressApi updateBillingAddr Update a billing address
BillingInvoicesApi getInvoiceByInvoiceId Get invoice by ID.
BillingInvoicesApi getMonthToDateInvoice Get month-to-date invoice.
BillingInvoicesApi listInvoices List of invoices.
BillingUsageMetricsApi getServiceLevelUsage Retrieve service-level usage metrics for a product.
BillingUsageMetricsApi getUsageMetrics Get monthly usage metrics
CacheSettingsApi createCacheSettings Create a cache settings object
CacheSettingsApi deleteCacheSettings Delete a cache settings object
CacheSettingsApi getCacheSettings Get a cache settings object
CacheSettingsApi listCacheSettings List cache settings objects
CacheSettingsApi updateCacheSettings Update a cache settings object
ConditionApi createCondition Create a condition
ConditionApi deleteCondition Delete a condition
ConditionApi getCondition Describe a condition
ConditionApi listConditions List conditions
ConditionApi updateCondition Update a condition
ConfigStoreApi createConfigStore Create a config store
ConfigStoreApi deleteConfigStore Delete a config store
ConfigStoreApi getConfigStore Describe a config store
ConfigStoreApi getConfigStoreInfo Get config store metadata
ConfigStoreApi listConfigStoreServices List linked services
ConfigStoreApi listConfigStores List config stores
ConfigStoreApi updateConfigStore Update a config store
ConfigStoreItemApi bulkUpdateConfigStoreItem Update multiple entries in a config store
ConfigStoreItemApi createConfigStoreItem Create an entry in a config store
ConfigStoreItemApi deleteConfigStoreItem Delete an item from a config store
ConfigStoreItemApi getConfigStoreItem Get an item from a config store
ConfigStoreItemApi listConfigStoreItems List items in a config store
ConfigStoreItemApi updateConfigStoreItem Update an entry in a config store
ConfigStoreItemApi upsertConfigStoreItem Insert or update an entry in a config store
ContactApi createContacts Add a new customer contact
ContactApi deleteContact Delete a contact
ContactApi listContacts List contacts
ContentApi contentCheck Check status of content in each POP's cache
CustomerApi deleteCustomer Delete a customer
CustomerApi getCustomer Get a customer
CustomerApi getLoggedInCustomer Get the logged in customer
CustomerApi listUsers List users
CustomerApi updateCustomer Update a customer
CustomerAddressesApi createCustomerAddress Creates an address associated with a customer account.
CustomerAddressesApi listCustomerAddresses Return the list of addresses associated with a customer account.
CustomerAddressesApi updateCustomerAddress Updates an address associated with a customer account.
DictionaryApi createDictionary Create an edge dictionary
DictionaryApi deleteDictionary Delete an edge dictionary
DictionaryApi getDictionary Get an edge dictionary
DictionaryApi listDictionaries List edge dictionaries
DictionaryApi updateDictionary Update an edge dictionary
DictionaryInfoApi getDictionaryInfo Get edge dictionary metadata
DictionaryItemApi bulkUpdateDictionaryItem Update multiple entries in an edge dictionary
DictionaryItemApi createDictionaryItem Create an entry in an edge dictionary
DictionaryItemApi deleteDictionaryItem Delete an item from an edge dictionary
DictionaryItemApi getDictionaryItem Get an item from an edge dictionary
DictionaryItemApi listDictionaryItems List items in an edge dictionary
DictionaryItemApi updateDictionaryItem Update an entry in an edge dictionary
DictionaryItemApi upsertDictionaryItem Insert or update an entry in an edge dictionary
DiffApi diffServiceVersions Diff two service versions
DirectorApi createDirector Create a director
DirectorApi deleteDirector Delete a director
DirectorApi getDirector Get a director
DirectorApi listDirectors List directors
DirectorApi updateDirector Update a director
DirectorBackendApi createDirectorBackend Create a director-backend relationship
DirectorBackendApi deleteDirectorBackend Delete a director-backend relationship
DirectorBackendApi getDirectorBackend Get a director-backend relationship
DomainApi checkDomain Validate DNS configuration for a single domain on a service
DomainApi checkDomains Validate DNS configuration for all domains on a service
DomainApi createDomain Add a domain name to a service
DomainApi deleteDomain Remove a domain from a service
DomainApi getDomain Describe a domain
DomainApi listDomains List domains
DomainApi updateDomain Update a domain
DomainInspectorHistoricalApi getDomainInspectorHistorical Get historical domain data for a service
DomainInspectorRealtimeApi getDomainInspectorLast120Seconds Get real-time domain data for the last 120 seconds
DomainInspectorRealtimeApi getDomainInspectorLastMaxEntries Get a limited number of real-time domain data entries
DomainInspectorRealtimeApi getDomainInspectorLastSecond Get real-time domain data from a specified time
DomainOwnershipsApi listDomainOwnerships List domain-ownerships
EnabledProductsApi disableProduct Disable a product
EnabledProductsApi enableProduct Enable a product
EnabledProductsApi getEnabledProduct Get enabled product
EnabledProductsApi getProductConfiguration Get configuration for a product
EnabledProductsApi setProductConfiguration Update configuration for a product
EventsApi getEvent Get an event
EventsApi listEvents List events
GzipApi createGzipConfig Create a gzip configuration
GzipApi deleteGzipConfig Delete a gzip configuration
GzipApi getGzipConfigs Get a gzip configuration
GzipApi listGzipConfigs List gzip configurations
GzipApi updateGzipConfig Update a gzip configuration
HeaderApi createHeaderObject Create a Header object
HeaderApi deleteHeaderObject Delete a Header object
HeaderApi getHeaderObject Get a Header object
HeaderApi listHeaderObjects List Header objects
HeaderApi updateHeaderObject Update a Header object
HealthcheckApi createHealthcheck Create a health check
HealthcheckApi deleteHealthcheck Delete a health check
HealthcheckApi getHealthcheck Get a health check
HealthcheckApi listHealthchecks List health checks
HealthcheckApi updateHealthcheck Update a health check
HistoricalApi getHistStats Get historical stats
HistoricalApi getHistStatsAggregated Get aggregated historical stats
HistoricalApi getHistStatsField Get historical stats for a single field
HistoricalApi getHistStatsService Get historical stats for a single service
HistoricalApi getHistStatsServiceField Get historical stats for a single service/field combination
HistoricalApi getRegions Get region codes
HistoricalApi getUsage Get usage statistics
HistoricalApi getUsageMonth Get month-to-date usage statistics
HistoricalApi getUsageService Get usage statistics per service
Http3Api createHttp3 Enable support for HTTP/3
Http3Api deleteHttp3 Disable support for HTTP/3
Http3Api getHttp3 Get HTTP/3 status
IamPermissionsApi listPermissions List permissions
IamRolesApi addRolePermissions Add permissions to a role
IamRolesApi createARole Create a role
IamRolesApi deleteARole Delete a role
IamRolesApi getARole Get a role
IamRolesApi listRolePermissions List permissions in a role
IamRolesApi listRoles List roles
IamRolesApi removeRolePermissions Remove permissions from a role
IamRolesApi updateARole Update a role
IamServiceGroupsApi addServiceGroupServices Add services in a service group
IamServiceGroupsApi createAServiceGroup Create a service group
IamServiceGroupsApi deleteAServiceGroup Delete a service group
IamServiceGroupsApi getAServiceGroup Get a service group
IamServiceGroupsApi listServiceGroupServices List services to a service group
IamServiceGroupsApi listServiceGroups List service groups
IamServiceGroupsApi removeServiceGroupServices Remove services from a service group
IamServiceGroupsApi updateAServiceGroup Update a service group
IamUserGroupsApi addUserGroupMembers Add members to a user group
IamUserGroupsApi addUserGroupRoles Add roles to a user group
IamUserGroupsApi addUserGroupServiceGroups Add service groups to a user group
IamUserGroupsApi createAUserGroup Create a user group
IamUserGroupsApi deleteAUserGroup Delete a user group
IamUserGroupsApi getAUserGroup Get a user group
IamUserGroupsApi listUserGroupMembers List members of a user group
IamUserGroupsApi listUserGroupRoles List roles in a user group
IamUserGroupsApi listUserGroupServiceGroups List service groups in a user group
IamUserGroupsApi listUserGroups List user groups
IamUserGroupsApi removeUserGroupMembers Remove members of a user group
IamUserGroupsApi removeUserGroupRoles Remove roles from a user group
IamUserGroupsApi removeUserGroupServiceGroups Remove service groups from a user group
IamUserGroupsApi updateAUserGroup Update a user group
ImageOptimizerDefaultSettingsApi getDefaultSettings Get current Image Optimizer Default Settings
ImageOptimizerDefaultSettingsApi updateDefaultSettings Update Image Optimizer Default Settings
InsightsApi getLogInsights Retrieve log insights
InvitationsApi createInvitation Create an invitation
InvitationsApi deleteInvitation Delete an invitation
InvitationsApi listInvitations List invitations
KvStoreApi createStore Create a KV store.
KvStoreApi deleteStore Delete a KV store.
KvStoreApi getStore Describe a KV store.
KvStoreApi getStores List KV stores.
KvStoreItemApi deleteKeyFromStore Delete kv store item.
KvStoreItemApi getKeys List kv store keys.
KvStoreItemApi getValueForKey Get the value of an kv store item
KvStoreItemApi setValueForKey Insert an item into an kv store
LegacyWafConfigurationSetsApi listWafConfigSets List configuration sets
LegacyWafConfigurationSetsApi listWafsConfigSet List WAFs currently using a configuration set
LegacyWafConfigurationSetsApi useWafConfigSet Apply a configuration set to a WAF
LegacyWafFirewallApi createLegacyWafFirewallService Create a firewall
LegacyWafFirewallApi disableLegacyWafFirewall Disable a firewall
LegacyWafFirewallApi enableLegacyWafFirewall Enable a firewall
LegacyWafFirewallApi getLegacyWafFirewall Get a firewall object
LegacyWafFirewallApi getLegacyWafFirewallService Get a firewall
LegacyWafFirewallApi listLegacyWafFirewalls List active firewalls
LegacyWafFirewallApi listLegacyWafFirewallsService List firewalls
LegacyWafFirewallApi updateLegacyWafFirewallService Update a firewall
LegacyWafOwaspApi createOwaspSettings Create an OWASP settings object
LegacyWafOwaspApi getOwaspSettings Get the OWASP settings object
LegacyWafOwaspApi updateOwaspSettings Update the OWASP settings object
LegacyWafRuleApi getLegacyWafFirewallRuleVcl Get VCL for a rule associated with a firewall
LegacyWafRuleApi getLegacyWafRule Get a rule
LegacyWafRuleApi getLegacyWafRuleVcl Get VCL for a rule
LegacyWafRuleApi listLegacyWafRules List rules in the latest configuration set
LegacyWafRuleStatusApi getWafFirewallRuleStatus Get the status of a rule on a firewall
LegacyWafRuleStatusApi listWafFirewallRuleStatuses List rule statuses
LegacyWafRuleStatusApi updateWafFirewallRuleStatus Update the status of a rule
LegacyWafRuleStatusApi updateWafFirewallRuleStatusesTag Create or update status of a tagged group of rules
LegacyWafRulesetApi getWafRuleset Get a WAF ruleset
LegacyWafRulesetApi getWafRulesetVcl Generate WAF ruleset VCL
LegacyWafRulesetApi updateWafRuleset Update a WAF ruleset
LegacyWafTagApi listLegacyWafTags List WAF tags
LegacyWafUpdateStatusApi getWafUpdateStatus Get the status of a WAF update
LegacyWafUpdateStatusApi listWafUpdateStatuses List update statuses
LogExplorerApi getLogRecords Retrieve log records
LoggingAzureblobApi createLogAzure Create an Azure Blob Storage log endpoint
LoggingAzureblobApi deleteLogAzure Delete the Azure Blob Storage log endpoint
LoggingAzureblobApi getLogAzure Get an Azure Blob Storage log endpoint
LoggingAzureblobApi listLogAzure List Azure Blob Storage log endpoints
LoggingAzureblobApi updateLogAzure Update an Azure Blob Storage log endpoint
LoggingBigqueryApi createLogBigquery Create a BigQuery log endpoint
LoggingBigqueryApi deleteLogBigquery Delete a BigQuery log endpoint
LoggingBigqueryApi getLogBigquery Get a BigQuery log endpoint
LoggingBigqueryApi listLogBigquery List BigQuery log endpoints
LoggingBigqueryApi updateLogBigquery Update a BigQuery log endpoint
LoggingCloudfilesApi createLogCloudfiles Create a Cloud Files log endpoint
LoggingCloudfilesApi deleteLogCloudfiles Delete the Cloud Files log endpoint
LoggingCloudfilesApi getLogCloudfiles Get a Cloud Files log endpoint
LoggingCloudfilesApi listLogCloudfiles List Cloud Files log endpoints
LoggingCloudfilesApi updateLogCloudfiles Update the Cloud Files log endpoint
LoggingDatadogApi createLogDatadog Create a Datadog log endpoint
LoggingDatadogApi deleteLogDatadog Delete a Datadog log endpoint
LoggingDatadogApi getLogDatadog Get a Datadog log endpoint
LoggingDatadogApi listLogDatadog List Datadog log endpoints
LoggingDatadogApi updateLogDatadog Update a Datadog log endpoint
LoggingDigitaloceanApi createLogDigocean Create a DigitalOcean Spaces log endpoint
LoggingDigitaloceanApi deleteLogDigocean Delete a DigitalOcean Spaces log endpoint
LoggingDigitaloceanApi getLogDigocean Get a DigitalOcean Spaces log endpoint
LoggingDigitaloceanApi listLogDigocean List DigitalOcean Spaces log endpoints
LoggingDigitaloceanApi updateLogDigocean Update a DigitalOcean Spaces log endpoint
LoggingElasticsearchApi createLogElasticsearch Create an Elasticsearch log endpoint
LoggingElasticsearchApi deleteLogElasticsearch Delete an Elasticsearch log endpoint
LoggingElasticsearchApi getLogElasticsearch Get an Elasticsearch log endpoint
LoggingElasticsearchApi listLogElasticsearch List Elasticsearch log endpoints
LoggingElasticsearchApi updateLogElasticsearch Update an Elasticsearch log endpoint
LoggingFtpApi createLogFtp Create an FTP log endpoint
LoggingFtpApi deleteLogFtp Delete an FTP log endpoint
LoggingFtpApi getLogFtp Get an FTP log endpoint
LoggingFtpApi listLogFtp List FTP log endpoints
LoggingFtpApi updateLogFtp Update an FTP log endpoint
LoggingGcsApi createLogGcs Create a GCS log endpoint
LoggingGcsApi deleteLogGcs Delete a GCS log endpoint
LoggingGcsApi getLogGcs Get a GCS log endpoint
LoggingGcsApi listLogGcs List GCS log endpoints
LoggingGcsApi updateLogGcs Update a GCS log endpoint
LoggingGrafanacloudlogsApi createLogGrafanacloudlogs Create a Grafana Cloud Logs log endpoint
LoggingGrafanacloudlogsApi deleteLogGrafanacloudlogs Delete the Grafana Cloud Logs log endpoint
LoggingGrafanacloudlogsApi getLogGrafanacloudlogs Get a Grafana Cloud Logs log endpoint
LoggingGrafanacloudlogsApi listLogGrafanacloudlogs List Grafana Cloud Logs log endpoints
LoggingGrafanacloudlogsApi updateLogGrafanacloudlogs Update a Grafana Cloud Logs log endpoint
LoggingHerokuApi createLogHeroku Create a Heroku log endpoint
LoggingHerokuApi deleteLogHeroku Delete the Heroku log endpoint
LoggingHerokuApi getLogHeroku Get a Heroku log endpoint
LoggingHerokuApi listLogHeroku List Heroku log endpoints
LoggingHerokuApi updateLogHeroku Update the Heroku log endpoint
LoggingHoneycombApi createLogHoneycomb Create a Honeycomb log endpoint
LoggingHoneycombApi deleteLogHoneycomb Delete the Honeycomb log endpoint
LoggingHoneycombApi getLogHoneycomb Get a Honeycomb log endpoint
LoggingHoneycombApi listLogHoneycomb List Honeycomb log endpoints
LoggingHoneycombApi updateLogHoneycomb Update a Honeycomb log endpoint
LoggingHttpsApi createLogHttps Create an HTTPS log endpoint
LoggingHttpsApi deleteLogHttps Delete an HTTPS log endpoint
LoggingHttpsApi getLogHttps Get an HTTPS log endpoint
LoggingHttpsApi listLogHttps List HTTPS log endpoints
LoggingHttpsApi updateLogHttps Update an HTTPS log endpoint
LoggingKafkaApi createLogKafka Create a Kafka log endpoint
LoggingKafkaApi deleteLogKafka Delete the Kafka log endpoint
LoggingKafkaApi getLogKafka Get a Kafka log endpoint
LoggingKafkaApi listLogKafka List Kafka log endpoints
LoggingKafkaApi updateLogKafka Update the Kafka log endpoint
LoggingKinesisApi createLogKinesis Create an Amazon Kinesis log endpoint
LoggingKinesisApi deleteLogKinesis Delete the Amazon Kinesis log endpoint
LoggingKinesisApi getLogKinesis Get an Amazon Kinesis log endpoint
LoggingKinesisApi listLogKinesis List Amazon Kinesis log endpoints
LoggingKinesisApi updateLogKinesis Update the Amazon Kinesis log endpoint
LoggingLogentriesApi createLogLogentries Create a Logentries log endpoint
LoggingLogentriesApi deleteLogLogentries Delete a Logentries log endpoint
LoggingLogentriesApi getLogLogentries Get a Logentries log endpoint
LoggingLogentriesApi listLogLogentries List Logentries log endpoints
LoggingLogentriesApi updateLogLogentries Update a Logentries log endpoint
LoggingLogglyApi createLogLoggly Create a Loggly log endpoint
LoggingLogglyApi deleteLogLoggly Delete a Loggly log endpoint
LoggingLogglyApi getLogLoggly Get a Loggly log endpoint
LoggingLogglyApi listLogLoggly List Loggly log endpoints
LoggingLogglyApi updateLogLoggly Update a Loggly log endpoint
LoggingLogshuttleApi createLogLogshuttle Create a Log Shuttle log endpoint
LoggingLogshuttleApi deleteLogLogshuttle Delete a Log Shuttle log endpoint
LoggingLogshuttleApi getLogLogshuttle Get a Log Shuttle log endpoint
LoggingLogshuttleApi listLogLogshuttle List Log Shuttle log endpoints
LoggingLogshuttleApi updateLogLogshuttle Update a Log Shuttle log endpoint
LoggingNewrelicApi createLogNewrelic Create a New Relic log endpoint
LoggingNewrelicApi deleteLogNewrelic Delete a New Relic log endpoint
LoggingNewrelicApi getLogNewrelic Get a New Relic log endpoint
LoggingNewrelicApi listLogNewrelic List New Relic log endpoints
LoggingNewrelicApi updateLogNewrelic Update a New Relic log endpoint
LoggingNewrelicotlpApi createLogNewrelicotlp Create a New Relic OTLP endpoint
LoggingNewrelicotlpApi deleteLogNewrelicotlp Delete a New Relic OTLP endpoint
LoggingNewrelicotlpApi getLogNewrelicotlp Get a New Relic OTLP endpoint
LoggingNewrelicotlpApi listLogNewrelicotlp List New Relic OTLP endpoints
LoggingNewrelicotlpApi updateLogNewrelicotlp Update a New Relic log endpoint
LoggingOpenstackApi createLogOpenstack Create an OpenStack log endpoint
LoggingOpenstackApi deleteLogOpenstack Delete an OpenStack log endpoint
LoggingOpenstackApi getLogOpenstack Get an OpenStack log endpoint
LoggingOpenstackApi listLogOpenstack List OpenStack log endpoints
LoggingOpenstackApi updateLogOpenstack Update an OpenStack log endpoint
LoggingPapertrailApi createLogPapertrail Create a Papertrail log endpoint
LoggingPapertrailApi deleteLogPapertrail Delete a Papertrail log endpoint
LoggingPapertrailApi getLogPapertrail Get a Papertrail log endpoint
LoggingPapertrailApi listLogPapertrail List Papertrail log endpoints
LoggingPapertrailApi updateLogPapertrail Update a Papertrail log endpoint
LoggingPubsubApi createLogGcpPubsub Create a GCP Cloud Pub/Sub log endpoint
LoggingPubsubApi deleteLogGcpPubsub Delete a GCP Cloud Pub/Sub log endpoint
LoggingPubsubApi getLogGcpPubsub Get a GCP Cloud Pub/Sub log endpoint
LoggingPubsubApi listLogGcpPubsub List GCP Cloud Pub/Sub log endpoints
LoggingPubsubApi updateLogGcpPubsub Update a GCP Cloud Pub/Sub log endpoint
LoggingS3Api createLogAwsS3 Create an AWS S3 log endpoint
LoggingS3Api deleteLogAwsS3 Delete an AWS S3 log endpoint
LoggingS3Api getLogAwsS3 Get an AWS S3 log endpoint
LoggingS3Api listLogAwsS3 List AWS S3 log endpoints
LoggingS3Api updateLogAwsS3 Update an AWS S3 log endpoint
LoggingScalyrApi createLogScalyr Create a Scalyr log endpoint
LoggingScalyrApi deleteLogScalyr Delete the Scalyr log endpoint
LoggingScalyrApi getLogScalyr Get a Scalyr log endpoint
LoggingScalyrApi listLogScalyr List Scalyr log endpoints
LoggingScalyrApi updateLogScalyr Update the Scalyr log endpoint
LoggingSftpApi createLogSftp Create an SFTP log endpoint
LoggingSftpApi deleteLogSftp Delete an SFTP log endpoint
LoggingSftpApi getLogSftp Get an SFTP log endpoint
LoggingSftpApi listLogSftp List SFTP log endpoints
LoggingSftpApi updateLogSftp Update an SFTP log endpoint
LoggingSplunkApi createLogSplunk Create a Splunk log endpoint
LoggingSplunkApi deleteLogSplunk Delete a Splunk log endpoint
LoggingSplunkApi getLogSplunk Get a Splunk log endpoint
LoggingSplunkApi listLogSplunk List Splunk log endpoints
LoggingSplunkApi updateLogSplunk Update a Splunk log endpoint
LoggingSumologicApi createLogSumologic Create a Sumologic log endpoint
LoggingSumologicApi deleteLogSumologic Delete a Sumologic log endpoint
LoggingSumologicApi getLogSumologic Get a Sumologic log endpoint
LoggingSumologicApi listLogSumologic List Sumologic log endpoints
LoggingSumologicApi updateLogSumologic Update a Sumologic log endpoint
LoggingSyslogApi createLogSyslog Create a syslog log endpoint
LoggingSyslogApi deleteLogSyslog Delete a syslog log endpoint
LoggingSyslogApi getLogSyslog Get a syslog log endpoint
LoggingSyslogApi listLogSyslog List Syslog log endpoints
LoggingSyslogApi updateLogSyslog Update a syslog log endpoint
MutualAuthenticationApi createMutualTlsAuthentication Create a Mutual Authentication
MutualAuthenticationApi deleteMutualTls Delete a Mutual TLS
MutualAuthenticationApi getMutualAuthentication Get a Mutual Authentication
MutualAuthenticationApi listMutualAuthentications List Mutual Authentications
MutualAuthenticationApi patchMutualAuthentication Update a Mutual Authentication
ObjectStorageAccessKeysApi createAccessKey Create an access key
ObjectStorageAccessKeysApi deleteAccessKey Delete an access key
ObjectStorageAccessKeysApi getAccessKey Get an access key
ObjectStorageAccessKeysApi listAccessKeys List access keys
ObservabilityCustomDashboardsApi createDashboard Create a new dashboard
ObservabilityCustomDashboardsApi deleteDashboard Delete an existing dashboard
ObservabilityCustomDashboardsApi getDashboard Retrieve a dashboard by ID
ObservabilityCustomDashboardsApi listDashboards List all custom dashboards
ObservabilityCustomDashboardsApi updateDashboard Update an existing dashboard
OriginInspectorHistoricalApi getOriginInspectorHistorical Get historical origin data for a service
OriginInspectorRealtimeApi getOriginInspectorLast120Seconds Get real-time origin data for the last 120 seconds
OriginInspectorRealtimeApi getOriginInspectorLastMaxEntries Get a limited number of real-time origin data entries
OriginInspectorRealtimeApi getOriginInspectorLastSecond Get real-time origin data from specific time.
PackageApi getPackage Get details of the service's Compute package.
PackageApi putPackage Upload a Compute package.
PoolApi createServerPool Create a server pool
PoolApi deleteServerPool Delete a server pool
PoolApi getServerPool Get a server pool
PoolApi listServerPools List server pools
PoolApi updateServerPool Update a server pool
PopApi listPops List Fastly POPs
PublicIpListApi listFastlyIps List Fastly's public IPs
PublishApi publish Send messages to Fanout subscribers
PurgeApi bulkPurgeTag Purge multiple surrogate key tags
PurgeApi purgeAll Purge everything from a service
PurgeApi purgeSingleUrl Purge a URL
PurgeApi purgeTag Purge by surrogate key tag
RateLimiterApi createRateLimiter Create a rate limiter
RateLimiterApi deleteRateLimiter Delete a rate limiter
RateLimiterApi getRateLimiter Get a rate limiter
RateLimiterApi listRateLimiters List rate limiters
RateLimiterApi updateRateLimiter Update a rate limiter
RealtimeApi getStatsLast120Seconds Get real-time data for the last 120 seconds
RealtimeApi getStatsLast120SecondsLimitEntries Get a limited number of real-time data entries
RealtimeApi getStatsLastSecond Get real-time data from specified time
RequestSettingsApi createRequestSettings Create a Request Settings object
RequestSettingsApi deleteRequestSettings Delete a Request Settings object
RequestSettingsApi getRequestSettings Get a Request Settings object
RequestSettingsApi listRequestSettings List Request Settings objects
RequestSettingsApi updateRequestSettings Update a Request Settings object
ResourceApi createResource Create a resource link
ResourceApi deleteResource Delete a resource link
ResourceApi getResource Display a resource link
ResourceApi listResources List resource links
ResourceApi updateResource Update a resource link
ResponseObjectApi createResponseObject Create a Response object
ResponseObjectApi deleteResponseObject Delete a Response Object
ResponseObjectApi getResponseObject Get a Response object
ResponseObjectApi listResponseObjects List Response objects
ResponseObjectApi updateResponseObject Update a Response object
SecretStoreApi clientKey Create new client key
SecretStoreApi createSecretStore Create new secret store
SecretStoreApi deleteSecretStore Delete secret store
SecretStoreApi getSecretStore Get secret store by ID
SecretStoreApi getSecretStores Get all secret stores
SecretStoreApi signingKey Get public key
SecretStoreItemApi createSecret Create a new secret in a store.
SecretStoreItemApi deleteSecret Delete a secret from a store.
SecretStoreItemApi getSecret Get secret metadata.
SecretStoreItemApi getSecrets List secrets within a store.
SecretStoreItemApi mustRecreateSecret Recreate a secret in a store.
SecretStoreItemApi recreateSecret Create or recreate a secret in a store.
ServerApi createPoolServer Add a server to a pool
ServerApi deletePoolServer Delete a server from a pool
ServerApi getPoolServer Get a pool server
ServerApi listPoolServers List servers in a pool
ServerApi updatePoolServer Update a server
ServiceApi createService Create a service
ServiceApi deleteService Delete a service
ServiceApi getService Get a service
ServiceApi getServiceDetail Get service details
ServiceApi listServiceDomains List the domains within a service
ServiceApi listServices List services
ServiceApi searchService Search for a service by name
ServiceApi updateService Update a service
ServiceAuthorizationsApi createServiceAuthorization Create service authorization
ServiceAuthorizationsApi deleteServiceAuthorization Delete service authorization
ServiceAuthorizationsApi deleteServiceAuthorization2 Delete service authorizations
ServiceAuthorizationsApi listServiceAuthorization List service authorizations
ServiceAuthorizationsApi showServiceAuthorization Show service authorization
ServiceAuthorizationsApi updateServiceAuthorization Update service authorization
ServiceAuthorizationsApi updateServiceAuthorization2 Update service authorizations
SettingsApi getServiceSettings Get service settings
SettingsApi updateServiceSettings Update service settings
SnippetApi createSnippet Create a snippet
SnippetApi deleteSnippet Delete a snippet
SnippetApi getSnippet Get a versioned snippet
SnippetApi getSnippetDynamic Get a dynamic snippet
SnippetApi listSnippets List snippets
SnippetApi updateSnippet Update a versioned snippet
SnippetApi updateSnippetDynamic Update a dynamic snippet
StarApi createServiceStar Create a star
StarApi deleteServiceStar Delete a star
StarApi getServiceStar Get a star
StarApi listServiceStars List stars
StatsApi getServiceStats Get stats for a service
SudoApi requestSudoAccess Request Sudo access
TlsActivationsApi createTlsActivation Enable TLS for a domain using a custom certificate
TlsActivationsApi deleteTlsActivation Disable TLS on a domain
TlsActivationsApi getTlsActivation Get a TLS activation
TlsActivationsApi listTlsActivations List TLS activations
TlsActivationsApi updateTlsActivation Update a certificate
TlsBulkCertificatesApi deleteBulkTlsCert Delete a certificate
TlsBulkCertificatesApi getTlsBulkCert Get a certificate
TlsBulkCertificatesApi listTlsBulkCerts List certificates
TlsBulkCertificatesApi updateBulkTlsCert Update a certificate
TlsBulkCertificatesApi uploadTlsBulkCert Upload a certificate
TlsCertificatesApi createTlsCert Create a TLS certificate
TlsCertificatesApi deleteTlsCert Delete a TLS certificate
TlsCertificatesApi getTlsCert Get a TLS certificate
TlsCertificatesApi getTlsCertBlob Get a TLS certificate blob (Limited Availability)
TlsCertificatesApi listTlsCerts List TLS certificates
TlsCertificatesApi updateTlsCert Update a TLS certificate
TlsConfigurationsApi getTlsConfig Get a TLS configuration
TlsConfigurationsApi listTlsConfigs List TLS configurations
TlsConfigurationsApi updateTlsConfig Update a TLS configuration
TlsCsrsApi createCsr Create CSR
TlsDomainsApi listTlsDomains List TLS domains
TlsPrivateKeysApi createTlsKey Create a TLS private key
TlsPrivateKeysApi deleteTlsKey Delete a TLS private key
TlsPrivateKeysApi getTlsKey Get a TLS private key
TlsPrivateKeysApi listTlsKeys List TLS private keys
TlsSubscriptionsApi createGlobalsignEmailChallenge Creates a GlobalSign email challenge.
TlsSubscriptionsApi createTlsSub Create a TLS subscription
TlsSubscriptionsApi deleteGlobalsignEmailChallenge Delete a GlobalSign email challenge
TlsSubscriptionsApi deleteTlsSub Delete a TLS subscription
TlsSubscriptionsApi getTlsSub Get a TLS subscription
TlsSubscriptionsApi listTlsSubs List TLS subscriptions
TlsSubscriptionsApi patchTlsSub Update a TLS subscription
TokensApi bulkRevokeTokens Revoke multiple tokens
TokensApi createToken Create a token
TokensApi getToken Get a token
TokensApi getTokenCurrent Get the current token
TokensApi listTokensCustomer List tokens for a customer
TokensApi listTokensUser List tokens for the authenticated user
TokensApi revokeToken Revoke a token
TokensApi revokeTokenCurrent Revoke the current token
UserApi createUser Create a user
UserApi deleteUser Delete a user
UserApi getCurrentUser Get the current user
UserApi getUser Get a user
UserApi requestPasswordReset Request a password reset
UserApi updateUser Update a user
UserApi updateUserPassword Update the user's password
VclApi createCustomVcl Create a custom VCL file
VclApi deleteCustomVcl Delete a custom VCL file
VclApi getCustomVcl Get a custom VCL file
VclApi getCustomVclBoilerplate Get boilerplate VCL
VclApi getCustomVclGenerated Get the generated VCL for a service
VclApi getCustomVclGeneratedHighlighted Get the generated VCL with syntax highlighting
VclApi getCustomVclHighlighted Get a custom VCL file with syntax highlighting
VclApi getCustomVclRaw Download a custom VCL file
VclApi lintVclDefault Lint (validate) VCL using a default set of flags.
VclApi lintVclForService Lint (validate) VCL using flags set for the service.
VclApi listCustomVcl List custom VCL files
VclApi setCustomVclMain Set a custom VCL file as main
VclApi updateCustomVcl Update a custom VCL file
VclDiffApi vclDiffServiceVersions Get a comparison of the VCL changes between two service versions
VersionApi activateServiceVersion Activate a service version
VersionApi activateServiceVersionEnvironment Activate a service version on the specified environment
VersionApi cloneServiceVersion Clone a service version
VersionApi createServiceVersion Create a service version
VersionApi deactivateServiceVersion Deactivate a service version
VersionApi deactivateServiceVersionEnvironment Deactivate a service version on an environment
VersionApi getServiceVersion Get a version of a service
VersionApi listServiceVersions List versions of a service
VersionApi lockServiceVersion Lock a service version
VersionApi updateServiceVersion Update a service version
VersionApi validateServiceVersion Validate a service version
WafActiveRulesApi bulkDeleteWafActiveRules Delete multiple active rules from a WAF
WafActiveRulesApi bulkUpdateWafActiveRules Update multiple active rules
WafActiveRulesApi createWafActiveRule Add a rule to a WAF as an active rule
WafActiveRulesApi createWafActiveRulesTag Create active rules by tag
WafActiveRulesApi deleteWafActiveRule Delete an active rule
WafActiveRulesApi getWafActiveRule Get an active WAF rule object
WafActiveRulesApi listWafActiveRules List active rules on a WAF
WafActiveRulesApi updateWafActiveRule Update an active rule
WafExclusionsApi createWafRuleExclusion Create a WAF rule exclusion
WafExclusionsApi deleteWafRuleExclusion Delete a WAF rule exclusion
WafExclusionsApi getWafRuleExclusion Get a WAF rule exclusion
WafExclusionsApi listWafRuleExclusions List WAF rule exclusions
WafExclusionsApi updateWafRuleExclusion Update a WAF rule exclusion
WafFirewallVersionsApi cloneWafFirewallVersion Clone a firewall version
WafFirewallVersionsApi createWafFirewallVersion Create a firewall version
WafFirewallVersionsApi deployActivateWafFirewallVersion Deploy or activate a firewall version
WafFirewallVersionsApi getWafFirewallVersion Get a firewall version
WafFirewallVersionsApi listWafFirewallVersions List firewall versions
WafFirewallVersionsApi updateWafFirewallVersion Update a firewall version
WafFirewallsApi createWafFirewall Create a firewall
WafFirewallsApi deleteWafFirewall Delete a firewall
WafFirewallsApi getWafFirewall Get a firewall
WafFirewallsApi listWafFirewalls List firewalls
WafFirewallsApi updateWafFirewall Update a firewall
WafRuleRevisionsApi getWafRuleRevision Get a revision of a rule
WafRuleRevisionsApi listWafRuleRevisions List revisions for a rule
WafRulesApi getWafRule Get a rule
WafRulesApi listWafRules List available WAF rules
WafTagsApi listWafTags List tags
WholePlatformDdosHistoricalApi getPlatformDdosHistorical Get historical DDoS metrics for the entire Fastly platform

Issues

The fastly-php API client currently does not support the following endpoints:

If you encounter any non-security-related bug or unexpected behavior, please file an issue using the bug report template.

Security issues

Please see our SECURITY.md for guidance on reporting security-related issues.

License

MIT.