Skip to content

fastly/fastly-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastly-go

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

Warning

This API client is auto-generated from Fastly's OpenAPI specification and may not function correctly when used on the Compute platform. Support for Compute is on the roadmap but has not yet been prioritized.

Tip

If you'd like to use the hand-written API client instead, see go-fastly.

Requirements

Go version 1.18

Installation

Add the following to your project's go.mod:

require (
	github.com/fastly/fastly-go 1.0.0-beta.38
)

Usage

Note

The Fastly API requires an API token for most operations.

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/fastly/fastly-go/fastly"
)

func main() {
  cfg := fastly.NewConfiguration()
  apiClient := fastly.NewAPIClient(cfg)
  ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN")

  req := apiClient.ServiceAPI.CreateService(ctx)

  res, httpResp, err := req.Comment("comment_example").Name("name_example").CustomerID(os.Getenv("FASTLY_CUSTOMER_ID")).ResourceType("vcl").Execute()
  if err != nil {
    fmt.Fprintf(os.Stderr, "Error when calling `ServiceAPI.CreateService`: %+v\n", err)
    fmt.Fprintf(os.Stderr, "Full HTTP response: %+v\n", httpResp)
    return
  }

  fmt.Fprintf(os.Stdout, "Response from `ServiceAPI.CreateService`:\n\n%+v\n\n", res)

  serviceID = *res.ID
  fmt.Printf("Service Name: %s\nService ID: %s\n\n", *res.Name, serviceID)
}

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
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

Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Issues

The fastly-go 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.