34 stable releases (4 major)
new 5.0.0 | Dec 6, 2024 |
---|---|
4.13.0 | Oct 23, 2024 |
4.12.0 | Sep 13, 2024 |
4.8.0 | Jul 1, 2024 |
1.0.0-beta.0 | Sep 5, 2022 |
#62 in Web programming
468 downloads per month
Used in 2 crates
4.5MB
67K
SLoC
fastly-api
A Rust 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.
Requirements
Rust 2021 Edition
Installation
Add the following to Cargo.toml
under [dependencies]
:
fastly-api = "5.0.0"
Usage
use anyhow::Result;
use fastly_api::apis::configuration::{ApiKey, Configuration};
use fastly_api::apis::service_api::{create_service, CreateServiceParams};
use std::env;
#[tokio::main]
async fn main() -> Result<()> {
let cfg = &Configuration {
api_key: Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY",
}),
..Default::default()
};
let service_name = "fastly-rust-service";
let customer_id = env::var("FASTLY_CUSTOMER_ID")?;
let params = CreateServiceParams {
name: Some(service_name.to_string()),
customer_id: Some(customer_id),
..Default::default()
};
create_service(cfg, params).await?
}
Authorization
[!NOTE] The Fastly API requires an API token for most operations.
Set up the API token by assigning api_key
to a configuration as shown:
let cfg = &Configuration {
api_key: Some(ApiKey {
prefix: None,
key: "YOUR_API_KEY",
}),
..Default::default()
};
Alternatively, set the FASTLY_API_TOKEN
environment variable and use the default constructor:
let cfg = &Configuration::default();
API Endpoints
The main documentation for the Fastly API can be found on our Developer Hub.
Table of API endpoints
Class | Method | Description |
---|---|---|
AclApi | create_acl | Create a new ACL |
AclApi | delete_acl | Delete an ACL |
AclApi | get_acl | Describe an ACL |
AclApi | list_acls | List ACLs |
AclApi | update_acl | Update an ACL |
AclEntryApi | bulk_update_acl_entries | Update multiple ACL entries |
AclEntryApi | create_acl_entry | Create an ACL entry |
AclEntryApi | delete_acl_entry | Delete an ACL entry |
AclEntryApi | get_acl_entry | Describe an ACL entry |
AclEntryApi | list_acl_entries | List ACL entries |
AclEntryApi | update_acl_entry | Update an ACL entry |
AclsInComputeApi | compute_acl_create_acls | Create a new ACL |
AclsInComputeApi | compute_acl_delete_s_acl_id | Delete an ACL |
AclsInComputeApi | compute_acl_list_acl_entries | List an ACL |
AclsInComputeApi | compute_acl_list_acls | List ACLs |
AclsInComputeApi | compute_acl_list_acls_s_acl_id | Describe an ACL |
AclsInComputeApi | compute_acl_lookup_acls | Lookup an ACL |
AclsInComputeApi | compute_acl_update_acls | Update an ACL |
ApexRedirectApi | create_apex_redirect | Create an apex redirect |
ApexRedirectApi | delete_apex_redirect | Delete an apex redirect |
ApexRedirectApi | get_apex_redirect | Get an apex redirect |
ApexRedirectApi | list_apex_redirects | List apex redirects |
ApexRedirectApi | update_apex_redirect | Update an apex redirect |
AutomationTokensApi | create_automation_token | Create Automation Token |
AutomationTokensApi | get_automation_token_id | Retrieve an Automation Token by ID |
AutomationTokensApi | get_automation_tokens_id_services | List Automation Token Services |
AutomationTokensApi | list_automation_tokens | List Customer Automation Tokens |
AutomationTokensApi | revoke_automation_token_id | Revoke an Automation Token by ID |
BackendApi | create_backend | Create a backend |
BackendApi | delete_backend | Delete a backend |
BackendApi | get_backend | Describe a backend |
BackendApi | list_backends | List backends |
BackendApi | update_backend | Update a backend |
BillingApi | get_invoice | Get an invoice |
BillingApi | get_invoice_by_id | Get an invoice |
BillingApi | get_invoice_mtd | Get month-to-date billing estimate |
BillingAddressApi | add_billing_addr | Add a billing address to a customer |
BillingAddressApi | delete_billing_addr | Delete a billing address |
BillingAddressApi | get_billing_addr | Get a billing address |
BillingAddressApi | update_billing_addr | Update a billing address |
BillingInvoicesApi | get_invoice_by_invoice_id | Get invoice by ID. |
BillingInvoicesApi | get_month_to_date_invoice | Get month-to-date invoice. |
BillingInvoicesApi | list_invoices | List of invoices. |
BillingUsageMetricsApi | get_service_level_usage | Retrieve service-level usage metrics for a product. |
BillingUsageMetricsApi | get_usage_metrics | Get monthly usage metrics |
CacheSettingsApi | create_cache_settings | Create a cache settings object |
CacheSettingsApi | delete_cache_settings | Delete a cache settings object |
CacheSettingsApi | get_cache_settings | Get a cache settings object |
CacheSettingsApi | list_cache_settings | List cache settings objects |
CacheSettingsApi | update_cache_settings | Update a cache settings object |
ConditionApi | create_condition | Create a condition |
ConditionApi | delete_condition | Delete a condition |
ConditionApi | get_condition | Describe a condition |
ConditionApi | list_conditions | List conditions |
ConditionApi | update_condition | Update a condition |
ConfigStoreApi | create_config_store | Create a config store |
ConfigStoreApi | delete_config_store | Delete a config store |
ConfigStoreApi | get_config_store | Describe a config store |
ConfigStoreApi | get_config_store_info | Get config store metadata |
ConfigStoreApi | list_config_store_services | List linked services |
ConfigStoreApi | list_config_stores | List config stores |
ConfigStoreApi | update_config_store | Update a config store |
ConfigStoreItemApi | bulk_update_config_store_item | Update multiple entries in a config store |
ConfigStoreItemApi | create_config_store_item | Create an entry in a config store |
ConfigStoreItemApi | delete_config_store_item | Delete an item from a config store |
ConfigStoreItemApi | get_config_store_item | Get an item from a config store |
ConfigStoreItemApi | list_config_store_items | List items in a config store |
ConfigStoreItemApi | update_config_store_item | Update an entry in a config store |
ConfigStoreItemApi | upsert_config_store_item | Insert or update an entry in a config store |
ContactApi | create_contacts | Add a new customer contact |
ContactApi | delete_contact | Delete a contact |
ContactApi | list_contacts | List contacts |
ContentApi | content_check | Check status of content in each POP's cache |
CustomerApi | delete_customer | Delete a customer |
CustomerApi | get_customer | Get a customer |
CustomerApi | get_logged_in_customer | Get the logged in customer |
CustomerApi | list_users | List users |
CustomerApi | update_customer | Update a customer |
CustomerAddressesApi | create_customer_address | Creates an address associated with a customer account. |
CustomerAddressesApi | list_customer_addresses | Return the list of addresses associated with a customer account. |
CustomerAddressesApi | update_customer_address | Updates an address associated with a customer account. |
DictionaryApi | create_dictionary | Create an edge dictionary |
DictionaryApi | delete_dictionary | Delete an edge dictionary |
DictionaryApi | get_dictionary | Get an edge dictionary |
DictionaryApi | list_dictionaries | List edge dictionaries |
DictionaryApi | update_dictionary | Update an edge dictionary |
DictionaryInfoApi | get_dictionary_info | Get edge dictionary metadata |
DictionaryItemApi | bulk_update_dictionary_item | Update multiple entries in an edge dictionary |
DictionaryItemApi | create_dictionary_item | Create an entry in an edge dictionary |
DictionaryItemApi | delete_dictionary_item | Delete an item from an edge dictionary |
DictionaryItemApi | get_dictionary_item | Get an item from an edge dictionary |
DictionaryItemApi | list_dictionary_items | List items in an edge dictionary |
DictionaryItemApi | update_dictionary_item | Update an entry in an edge dictionary |
DictionaryItemApi | upsert_dictionary_item | Insert or update an entry in an edge dictionary |
DiffApi | diff_service_versions | Diff two service versions |
DirectorApi | delete_director | Delete a director |
DirectorApi | get_director | Get a director |
DirectorApi | list_directors | List directors |
DirectorApi | update_director | Update a director |
DirectorBackendApi | create_director_backend | Create a director-backend relationship |
DirectorBackendApi | delete_director_backend | Delete a director-backend relationship |
DirectorBackendApi | get_director_backend | Get a director-backend relationship |
DomainApi | check_domain | Validate DNS configuration for a single domain on a service |
DomainApi | create_domain | Add a domain name to a service |
DomainApi | delete_domain | Remove a domain from a service |
DomainApi | get_domain | Describe a domain |
DomainApi | list_domains | List domains |
DomainApi | update_domain | Update a domain |
DomainInspectorHistoricalApi | get_domain_inspector_historical | Get historical domain data for a service |
DomainInspectorRealtimeApi | get_domain_inspector_last120_seconds | Get real-time domain data for the last 120 seconds |
DomainInspectorRealtimeApi | get_domain_inspector_last_max_entries | Get a limited number of real-time domain data entries |
DomainInspectorRealtimeApi | get_domain_inspector_last_second | Get real-time domain data from a specified time |
DomainOwnershipsApi | list_domain_ownerships | List domain-ownerships |
EnabledProductsApi | disable_product | Disable a product |
EnabledProductsApi | enable_product | Enable a product |
EnabledProductsApi | get_enabled_product | Get enabled product |
EnabledProductsApi | get_product_configuration | Get configuration for a product |
EnabledProductsApi | set_product_configuration | Update configuration for a product |
EventsApi | get_event | Get an event |
EventsApi | list_events | List events |
GzipApi | create_gzip_config | Create a gzip configuration |
GzipApi | delete_gzip_config | Delete a gzip configuration |
GzipApi | get_gzip_configs | Get a gzip configuration |
GzipApi | list_gzip_configs | List gzip configurations |
GzipApi | update_gzip_config | Update a gzip configuration |
HeaderApi | create_header_object | Create a Header object |
HeaderApi | delete_header_object | Delete a Header object |
HeaderApi | get_header_object | Get a Header object |
HeaderApi | list_header_objects | List Header objects |
HeaderApi | update_header_object | Update a Header object |
HealthcheckApi | create_healthcheck | Create a health check |
HealthcheckApi | delete_healthcheck | Delete a health check |
HealthcheckApi | get_healthcheck | Get a health check |
HealthcheckApi | list_healthchecks | List health checks |
HealthcheckApi | update_healthcheck | Update a health check |
Http3Api | create_http3 | Enable support for HTTP/3 |
Http3Api | delete_http3 | Disable support for HTTP/3 |
Http3Api | get_http3 | Get HTTP/3 status |
IamPermissionsApi | list_permissions | List permissions |
IamRolesApi | add_role_permissions | Add permissions to a role |
IamRolesApi | create_a_role | Create a role |
IamRolesApi | delete_a_role | Delete a role |
IamRolesApi | get_a_role | Get a role |
IamRolesApi | list_role_permissions | List permissions in a role |
IamRolesApi | list_roles | List roles |
IamRolesApi | remove_role_permissions | Remove permissions from a role |
IamRolesApi | update_a_role | Update a role |
IamServiceGroupsApi | add_service_group_services | Add services in a service group |
IamServiceGroupsApi | create_a_service_group | Create a service group |
IamServiceGroupsApi | delete_a_service_group | Delete a service group |
IamServiceGroupsApi | get_a_service_group | Get a service group |
IamServiceGroupsApi | list_service_group_services | List services to a service group |
IamServiceGroupsApi | list_service_groups | List service groups |
IamServiceGroupsApi | remove_service_group_services | Remove services from a service group |
IamServiceGroupsApi | update_a_service_group | Update a service group |
IamUserGroupsApi | add_user_group_members | Add members to a user group |
IamUserGroupsApi | add_user_group_roles | Add roles to a user group |
IamUserGroupsApi | add_user_group_service_groups | Add service groups to a user group |
IamUserGroupsApi | create_a_user_group | Create a user group |
IamUserGroupsApi | delete_a_user_group | Delete a user group |
IamUserGroupsApi | get_a_user_group | Get a user group |
IamUserGroupsApi | list_user_group_members | List members of a user group |
IamUserGroupsApi | list_user_group_roles | List roles in a user group |
IamUserGroupsApi | list_user_group_service_groups | List service groups in a user group |
IamUserGroupsApi | list_user_groups | List user groups |
IamUserGroupsApi | remove_user_group_members | Remove members of a user group |
IamUserGroupsApi | remove_user_group_roles | Remove roles from a user group |
IamUserGroupsApi | remove_user_group_service_groups | Remove service groups from a user group |
IamUserGroupsApi | update_a_user_group | Update a user group |
ImageOptimizerDefaultSettingsApi | get_default_settings | Get current Image Optimizer Default Settings |
ImageOptimizerDefaultSettingsApi | update_default_settings | Update Image Optimizer Default Settings |
InsightsApi | get_log_insights | Retrieve log insights |
InvitationsApi | create_invitation | Create an invitation |
InvitationsApi | delete_invitation | Delete an invitation |
InvitationsApi | list_invitations | List invitations |
KvStoreApi | create_store | Create a KV store. |
KvStoreApi | delete_store | Delete a KV store. |
KvStoreApi | get_store | Describe a KV store. |
KvStoreApi | get_stores | List KV stores. |
KvStoreItemApi | delete_key_from_store | Delete kv store item. |
KvStoreItemApi | get_keys | List kv store keys. |
KvStoreItemApi | get_value_for_key | Get the value of an kv store item |
KvStoreItemApi | set_value_for_key | Insert an item into an kv store |
LegacyWafConfigurationSetsApi | list_waf_config_sets | List configuration sets |
LegacyWafConfigurationSetsApi | list_wafs_config_set | List WAFs currently using a configuration set |
LegacyWafConfigurationSetsApi | use_waf_config_set | Apply a configuration set to a WAF |
LegacyWafFirewallApi | create_legacy_waf_firewall_service | Create a firewall |
LegacyWafFirewallApi | disable_legacy_waf_firewall | Disable a firewall |
LegacyWafFirewallApi | enable_legacy_waf_firewall | Enable a firewall |
LegacyWafFirewallApi | get_legacy_waf_firewall | Get a firewall object |
LegacyWafFirewallApi | get_legacy_waf_firewall_service | Get a firewall |
LegacyWafFirewallApi | list_legacy_waf_firewalls | List active firewalls |
LegacyWafFirewallApi | list_legacy_waf_firewalls_service | List firewalls |
LegacyWafFirewallApi | update_legacy_waf_firewall_service | Update a firewall |
LegacyWafOwaspApi | create_owasp_settings | Create an OWASP settings object |
LegacyWafOwaspApi | get_owasp_settings | Get the OWASP settings object |
LegacyWafOwaspApi | update_owasp_settings | Update the OWASP settings object |
LegacyWafRuleApi | get_legacy_waf_firewall_rule_vcl | Get VCL for a rule associated with a firewall |
LegacyWafRuleApi | get_legacy_waf_rule | Get a rule |
LegacyWafRuleApi | get_legacy_waf_rule_vcl | Get VCL for a rule |
LegacyWafRuleApi | list_legacy_waf_rules | List rules in the latest configuration set |
LegacyWafRuleStatusApi | get_waf_firewall_rule_status | Get the status of a rule on a firewall |
LegacyWafRuleStatusApi | list_waf_firewall_rule_statuses | List rule statuses |
LegacyWafRuleStatusApi | update_waf_firewall_rule_status | Update the status of a rule |
LegacyWafRuleStatusApi | update_waf_firewall_rule_statuses_tag | Create or update status of a tagged group of rules |
LegacyWafRulesetApi | get_waf_ruleset | Get a WAF ruleset |
LegacyWafRulesetApi | get_waf_ruleset_vcl | Generate WAF ruleset VCL |
LegacyWafRulesetApi | update_waf_ruleset | Update a WAF ruleset |
LegacyWafTagApi | list_legacy_waf_tags | List WAF tags |
LegacyWafUpdateStatusApi | get_waf_update_status | Get the status of a WAF update |
LegacyWafUpdateStatusApi | list_waf_update_statuses | List update statuses |
LogExplorerApi | get_log_records | Retrieve log records |
LoggingAzureblobApi | create_log_azure | Create an Azure Blob Storage log endpoint |
LoggingAzureblobApi | delete_log_azure | Delete the Azure Blob Storage log endpoint |
LoggingAzureblobApi | get_log_azure | Get an Azure Blob Storage log endpoint |
LoggingAzureblobApi | list_log_azure | List Azure Blob Storage log endpoints |
LoggingAzureblobApi | update_log_azure | Update an Azure Blob Storage log endpoint |
LoggingBigqueryApi | create_log_bigquery | Create a BigQuery log endpoint |
LoggingBigqueryApi | delete_log_bigquery | Delete a BigQuery log endpoint |
LoggingBigqueryApi | get_log_bigquery | Get a BigQuery log endpoint |
LoggingBigqueryApi | list_log_bigquery | List BigQuery log endpoints |
LoggingBigqueryApi | update_log_bigquery | Update a BigQuery log endpoint |
LoggingCloudfilesApi | create_log_cloudfiles | Create a Cloud Files log endpoint |
LoggingCloudfilesApi | delete_log_cloudfiles | Delete the Cloud Files log endpoint |
LoggingCloudfilesApi | get_log_cloudfiles | Get a Cloud Files log endpoint |
LoggingCloudfilesApi | list_log_cloudfiles | List Cloud Files log endpoints |
LoggingCloudfilesApi | update_log_cloudfiles | Update the Cloud Files log endpoint |
LoggingDatadogApi | create_log_datadog | Create a Datadog log endpoint |
LoggingDatadogApi | delete_log_datadog | Delete a Datadog log endpoint |
LoggingDatadogApi | get_log_datadog | Get a Datadog log endpoint |
LoggingDatadogApi | list_log_datadog | List Datadog log endpoints |
LoggingDatadogApi | update_log_datadog | Update a Datadog log endpoint |
LoggingDigitaloceanApi | create_log_digocean | Create a DigitalOcean Spaces log endpoint |
LoggingDigitaloceanApi | delete_log_digocean | Delete a DigitalOcean Spaces log endpoint |
LoggingDigitaloceanApi | get_log_digocean | Get a DigitalOcean Spaces log endpoint |
LoggingDigitaloceanApi | list_log_digocean | List DigitalOcean Spaces log endpoints |
LoggingDigitaloceanApi | update_log_digocean | Update a DigitalOcean Spaces log endpoint |
LoggingElasticsearchApi | create_log_elasticsearch | Create an Elasticsearch log endpoint |
LoggingElasticsearchApi | delete_log_elasticsearch | Delete an Elasticsearch log endpoint |
LoggingElasticsearchApi | get_log_elasticsearch | Get an Elasticsearch log endpoint |
LoggingElasticsearchApi | list_log_elasticsearch | List Elasticsearch log endpoints |
LoggingElasticsearchApi | update_log_elasticsearch | Update an Elasticsearch log endpoint |
LoggingFtpApi | create_log_ftp | Create an FTP log endpoint |
LoggingFtpApi | delete_log_ftp | Delete an FTP log endpoint |
LoggingFtpApi | get_log_ftp | Get an FTP log endpoint |
LoggingFtpApi | list_log_ftp | List FTP log endpoints |
LoggingFtpApi | update_log_ftp | Update an FTP log endpoint |
LoggingGcsApi | create_log_gcs | Create a GCS log endpoint |
LoggingGcsApi | delete_log_gcs | Delete a GCS log endpoint |
LoggingGcsApi | get_log_gcs | Get a GCS log endpoint |
LoggingGcsApi | list_log_gcs | List GCS log endpoints |
LoggingGcsApi | update_log_gcs | Update a GCS log endpoint |
LoggingGrafanacloudlogsApi | create_log_grafanacloudlogs | Create a Grafana Cloud Logs log endpoint |
LoggingGrafanacloudlogsApi | delete_log_grafanacloudlogs | Delete the Grafana Cloud Logs log endpoint |
LoggingGrafanacloudlogsApi | get_log_grafanacloudlogs | Get a Grafana Cloud Logs log endpoint |
LoggingGrafanacloudlogsApi | list_log_grafanacloudlogs | List Grafana Cloud Logs log endpoints |
LoggingGrafanacloudlogsApi | update_log_grafanacloudlogs | Update a Grafana Cloud Logs log endpoint |
LoggingHerokuApi | create_log_heroku | Create a Heroku log endpoint |
LoggingHerokuApi | delete_log_heroku | Delete the Heroku log endpoint |
LoggingHerokuApi | get_log_heroku | Get a Heroku log endpoint |
LoggingHerokuApi | list_log_heroku | List Heroku log endpoints |
LoggingHerokuApi | update_log_heroku | Update the Heroku log endpoint |
LoggingHoneycombApi | create_log_honeycomb | Create a Honeycomb log endpoint |
LoggingHoneycombApi | delete_log_honeycomb | Delete the Honeycomb log endpoint |
LoggingHoneycombApi | get_log_honeycomb | Get a Honeycomb log endpoint |
LoggingHoneycombApi | list_log_honeycomb | List Honeycomb log endpoints |
LoggingHoneycombApi | update_log_honeycomb | Update a Honeycomb log endpoint |
LoggingHttpsApi | create_log_https | Create an HTTPS log endpoint |
LoggingHttpsApi | delete_log_https | Delete an HTTPS log endpoint |
LoggingHttpsApi | get_log_https | Get an HTTPS log endpoint |
LoggingHttpsApi | list_log_https | List HTTPS log endpoints |
LoggingHttpsApi | update_log_https | Update an HTTPS log endpoint |
LoggingKafkaApi | create_log_kafka | Create a Kafka log endpoint |
LoggingKafkaApi | delete_log_kafka | Delete the Kafka log endpoint |
LoggingKafkaApi | get_log_kafka | Get a Kafka log endpoint |
LoggingKafkaApi | list_log_kafka | List Kafka log endpoints |
LoggingKafkaApi | update_log_kafka | Update the Kafka log endpoint |
LoggingKinesisApi | create_log_kinesis | Create an Amazon Kinesis log endpoint |
LoggingKinesisApi | delete_log_kinesis | Delete the Amazon Kinesis log endpoint |
LoggingKinesisApi | get_log_kinesis | Get an Amazon Kinesis log endpoint |
LoggingKinesisApi | list_log_kinesis | List Amazon Kinesis log endpoints |
LoggingKinesisApi | update_log_kinesis | Update the Amazon Kinesis log endpoint |
LoggingLogentriesApi | create_log_logentries | Create a Logentries log endpoint |
LoggingLogentriesApi | delete_log_logentries | Delete a Logentries log endpoint |
LoggingLogentriesApi | get_log_logentries | Get a Logentries log endpoint |
LoggingLogentriesApi | list_log_logentries | List Logentries log endpoints |
LoggingLogentriesApi | update_log_logentries | Update a Logentries log endpoint |
LoggingLogglyApi | create_log_loggly | Create a Loggly log endpoint |
LoggingLogglyApi | delete_log_loggly | Delete a Loggly log endpoint |
LoggingLogglyApi | get_log_loggly | Get a Loggly log endpoint |
LoggingLogglyApi | list_log_loggly | List Loggly log endpoints |
LoggingLogglyApi | update_log_loggly | Update a Loggly log endpoint |
LoggingLogshuttleApi | create_log_logshuttle | Create a Log Shuttle log endpoint |
LoggingLogshuttleApi | delete_log_logshuttle | Delete a Log Shuttle log endpoint |
LoggingLogshuttleApi | get_log_logshuttle | Get a Log Shuttle log endpoint |
LoggingLogshuttleApi | list_log_logshuttle | List Log Shuttle log endpoints |
LoggingLogshuttleApi | update_log_logshuttle | Update a Log Shuttle log endpoint |
LoggingNewrelicApi | create_log_newrelic | Create a New Relic log endpoint |
LoggingNewrelicApi | delete_log_newrelic | Delete a New Relic log endpoint |
LoggingNewrelicApi | get_log_newrelic | Get a New Relic log endpoint |
LoggingNewrelicApi | list_log_newrelic | List New Relic log endpoints |
LoggingNewrelicApi | update_log_newrelic | Update a New Relic log endpoint |
LoggingNewrelicotlpApi | create_log_newrelicotlp | Create a New Relic OTLP endpoint |
LoggingNewrelicotlpApi | delete_log_newrelicotlp | Delete a New Relic OTLP endpoint |
LoggingNewrelicotlpApi | get_log_newrelicotlp | Get a New Relic OTLP endpoint |
LoggingNewrelicotlpApi | list_log_newrelicotlp | List New Relic OTLP endpoints |
LoggingNewrelicotlpApi | update_log_newrelicotlp | Update a New Relic log endpoint |
LoggingOpenstackApi | create_log_openstack | Create an OpenStack log endpoint |
LoggingOpenstackApi | delete_log_openstack | Delete an OpenStack log endpoint |
LoggingOpenstackApi | get_log_openstack | Get an OpenStack log endpoint |
LoggingOpenstackApi | list_log_openstack | List OpenStack log endpoints |
LoggingOpenstackApi | update_log_openstack | Update an OpenStack log endpoint |
LoggingPapertrailApi | create_log_papertrail | Create a Papertrail log endpoint |
LoggingPapertrailApi | delete_log_papertrail | Delete a Papertrail log endpoint |
LoggingPapertrailApi | get_log_papertrail | Get a Papertrail log endpoint |
LoggingPapertrailApi | list_log_papertrail | List Papertrail log endpoints |
LoggingPapertrailApi | update_log_papertrail | Update a Papertrail log endpoint |
LoggingPubsubApi | create_log_gcp_pubsub | Create a GCP Cloud Pub/Sub log endpoint |
LoggingPubsubApi | delete_log_gcp_pubsub | Delete a GCP Cloud Pub/Sub log endpoint |
LoggingPubsubApi | get_log_gcp_pubsub | Get a GCP Cloud Pub/Sub log endpoint |
LoggingPubsubApi | list_log_gcp_pubsub | List GCP Cloud Pub/Sub log endpoints |
LoggingPubsubApi | update_log_gcp_pubsub | Update a GCP Cloud Pub/Sub log endpoint |
LoggingS3Api | create_log_aws_s3 | Create an AWS S3 log endpoint |
LoggingS3Api | delete_log_aws_s3 | Delete an AWS S3 log endpoint |
LoggingS3Api | get_log_aws_s3 | Get an AWS S3 log endpoint |
LoggingS3Api | list_log_aws_s3 | List AWS S3 log endpoints |
LoggingS3Api | update_log_aws_s3 | Update an AWS S3 log endpoint |
LoggingScalyrApi | create_log_scalyr | Create a Scalyr log endpoint |
LoggingScalyrApi | delete_log_scalyr | Delete the Scalyr log endpoint |
LoggingScalyrApi | get_log_scalyr | Get a Scalyr log endpoint |
LoggingScalyrApi | list_log_scalyr | List Scalyr log endpoints |
LoggingScalyrApi | update_log_scalyr | Update the Scalyr log endpoint |
LoggingSftpApi | create_log_sftp | Create an SFTP log endpoint |
LoggingSftpApi | delete_log_sftp | Delete an SFTP log endpoint |
LoggingSftpApi | get_log_sftp | Get an SFTP log endpoint |
LoggingSftpApi | list_log_sftp | List SFTP log endpoints |
LoggingSftpApi | update_log_sftp | Update an SFTP log endpoint |
LoggingSplunkApi | create_log_splunk | Create a Splunk log endpoint |
LoggingSplunkApi | delete_log_splunk | Delete a Splunk log endpoint |
LoggingSplunkApi | get_log_splunk | Get a Splunk log endpoint |
LoggingSplunkApi | list_log_splunk | List Splunk log endpoints |
LoggingSplunkApi | update_log_splunk | Update a Splunk log endpoint |
LoggingSumologicApi | create_log_sumologic | Create a Sumologic log endpoint |
LoggingSumologicApi | delete_log_sumologic | Delete a Sumologic log endpoint |
LoggingSumologicApi | get_log_sumologic | Get a Sumologic log endpoint |
LoggingSumologicApi | list_log_sumologic | List Sumologic log endpoints |
LoggingSumologicApi | update_log_sumologic | Update a Sumologic log endpoint |
LoggingSyslogApi | create_log_syslog | Create a syslog log endpoint |
LoggingSyslogApi | delete_log_syslog | Delete a syslog log endpoint |
LoggingSyslogApi | get_log_syslog | Get a syslog log endpoint |
LoggingSyslogApi | list_log_syslog | List Syslog log endpoints |
LoggingSyslogApi | update_log_syslog | Update a syslog log endpoint |
MutualAuthenticationApi | create_mutual_tls_authentication | Create a Mutual Authentication |
MutualAuthenticationApi | delete_mutual_tls | Delete a Mutual TLS |
MutualAuthenticationApi | get_mutual_authentication | Get a Mutual Authentication |
MutualAuthenticationApi | list_mutual_authentications | List Mutual Authentications |
MutualAuthenticationApi | patch_mutual_authentication | Update a Mutual Authentication |
ObjectStorageAccessKeysApi | create_access_key | Create an access key |
ObjectStorageAccessKeysApi | delete_access_key | Delete an access key |
ObjectStorageAccessKeysApi | get_access_key | Get an access key |
ObjectStorageAccessKeysApi | list_access_keys | List access keys |
ObservabilityCustomDashboardsApi | create_dashboard | Create a new dashboard |
ObservabilityCustomDashboardsApi | delete_dashboard | Delete an existing dashboard |
ObservabilityCustomDashboardsApi | get_dashboard | Retrieve a dashboard by ID |
ObservabilityCustomDashboardsApi | list_dashboards | List all custom dashboards |
ObservabilityCustomDashboardsApi | update_dashboard | Update an existing dashboard |
OriginInspectorHistoricalApi | get_origin_inspector_historical | Get historical origin data for a service |
OriginInspectorRealtimeApi | get_origin_inspector_last120_seconds | Get real-time origin data for the last 120 seconds |
OriginInspectorRealtimeApi | get_origin_inspector_last_max_entries | Get a limited number of real-time origin data entries |
OriginInspectorRealtimeApi | get_origin_inspector_last_second | Get real-time origin data from specific time. |
PackageApi | get_package | Get details of the service's Compute package. |
PackageApi | put_package | Upload a Compute package. |
PoolApi | create_server_pool | Create a server pool |
PoolApi | delete_server_pool | Delete a server pool |
PoolApi | get_server_pool | Get a server pool |
PoolApi | list_server_pools | List server pools |
PoolApi | update_server_pool | Update a server pool |
PopApi | list_pops | List Fastly POPs |
PublicIpListApi | list_fastly_ips | List Fastly's public IPs |
PublishApi | publish | Send messages to Fanout subscribers |
PurgeApi | bulk_purge_tag | Purge multiple surrogate key tags |
PurgeApi | purge_all | Purge everything from a service |
PurgeApi | purge_single_url | Purge a URL |
PurgeApi | purge_tag | Purge by surrogate key tag |
RateLimiterApi | create_rate_limiter | Create a rate limiter |
RateLimiterApi | delete_rate_limiter | Delete a rate limiter |
RateLimiterApi | get_rate_limiter | Get a rate limiter |
RateLimiterApi | list_rate_limiters | List rate limiters |
RateLimiterApi | update_rate_limiter | Update a rate limiter |
RealtimeApi | get_stats_last120_seconds | Get real-time data for the last 120 seconds |
RealtimeApi | get_stats_last120_seconds_limit_entries | Get a limited number of real-time data entries |
RealtimeApi | get_stats_last_second | Get real-time data from specified time |
RequestSettingsApi | create_request_settings | Create a Request Settings object |
RequestSettingsApi | delete_request_settings | Delete a Request Settings object |
RequestSettingsApi | get_request_settings | Get a Request Settings object |
RequestSettingsApi | list_request_settings | List Request Settings objects |
RequestSettingsApi | update_request_settings | Update a Request Settings object |
ResourceApi | create_resource | Create a resource link |
ResourceApi | delete_resource | Delete a resource link |
ResourceApi | get_resource | Display a resource link |
ResourceApi | list_resources | List resource links |
ResourceApi | update_resource | Update a resource link |
ResponseObjectApi | create_response_object | Create a Response object |
ResponseObjectApi | delete_response_object | Delete a Response Object |
ResponseObjectApi | get_response_object | Get a Response object |
ResponseObjectApi | list_response_objects | List Response objects |
ResponseObjectApi | update_response_object | Update a Response object |
SecretStoreApi | client_key | Create new client key |
SecretStoreApi | create_secret_store | Create new secret store |
SecretStoreApi | delete_secret_store | Delete secret store |
SecretStoreApi | get_secret_store | Get secret store by ID |
SecretStoreApi | get_secret_stores | Get all secret stores |
SecretStoreApi | signing_key | Get public key |
SecretStoreItemApi | create_secret | Create a new secret in a store. |
SecretStoreItemApi | delete_secret | Delete a secret from a store. |
SecretStoreItemApi | get_secret | Get secret metadata. |
SecretStoreItemApi | get_secrets | List secrets within a store. |
SecretStoreItemApi | must_recreate_secret | Recreate a secret in a store. |
SecretStoreItemApi | recreate_secret | Create or recreate a secret in a store. |
ServerApi | create_pool_server | Add a server to a pool |
ServerApi | delete_pool_server | Delete a server from a pool |
ServerApi | get_pool_server | Get a pool server |
ServerApi | list_pool_servers | List servers in a pool |
ServerApi | update_pool_server | Update a server |
ServiceApi | create_service | Create a service |
ServiceApi | delete_service | Delete a service |
ServiceApi | get_service | Get a service |
ServiceApi | get_service_detail | Get service details |
ServiceApi | list_service_domains | List the domains within a service |
ServiceApi | list_services | List services |
ServiceApi | search_service | Search for a service by name |
ServiceApi | update_service | Update a service |
ServiceAuthorizationsApi | create_service_authorization | Create service authorization |
ServiceAuthorizationsApi | delete_service_authorization | Delete service authorization |
ServiceAuthorizationsApi | delete_service_authorization2 | Delete service authorizations |
ServiceAuthorizationsApi | list_service_authorization | List service authorizations |
ServiceAuthorizationsApi | show_service_authorization | Show service authorization |
ServiceAuthorizationsApi | update_service_authorization | Update service authorization |
ServiceAuthorizationsApi | update_service_authorization2 | Update service authorizations |
SettingsApi | get_service_settings | Get service settings |
SettingsApi | update_service_settings | Update service settings |
SnippetApi | create_snippet | Create a snippet |
SnippetApi | delete_snippet | Delete a snippet |
SnippetApi | get_snippet | Get a versioned snippet |
SnippetApi | get_snippet_dynamic | Get a dynamic snippet |
SnippetApi | list_snippets | List snippets |
SnippetApi | update_snippet | Update a versioned snippet |
SnippetApi | update_snippet_dynamic | Update a dynamic snippet |
StarApi | create_service_star | Create a star |
StarApi | delete_service_star | Delete a star |
StarApi | get_service_star | Get a star |
StarApi | list_service_stars | List stars |
StatsApi | get_service_stats | Get stats for a service |
SudoApi | request_sudo_access | Request Sudo access |
TlsActivationsApi | create_tls_activation | Enable TLS for a domain using a custom certificate |
TlsActivationsApi | delete_tls_activation | Disable TLS on a domain |
TlsActivationsApi | get_tls_activation | Get a TLS activation |
TlsActivationsApi | list_tls_activations | List TLS activations |
TlsActivationsApi | update_tls_activation | Update a certificate |
TlsBulkCertificatesApi | delete_bulk_tls_cert | Delete a certificate |
TlsBulkCertificatesApi | get_tls_bulk_cert | Get a certificate |
TlsBulkCertificatesApi | list_tls_bulk_certs | List certificates |
TlsBulkCertificatesApi | update_bulk_tls_cert | Update a certificate |
TlsBulkCertificatesApi | upload_tls_bulk_cert | Upload a certificate |
TlsCertificatesApi | create_tls_cert | Create a TLS certificate |
TlsCertificatesApi | delete_tls_cert | Delete a TLS certificate |
TlsCertificatesApi | get_tls_cert | Get a TLS certificate |
TlsCertificatesApi | get_tls_cert_blob | Get a TLS certificate blob (Limited Availability) |
TlsCertificatesApi | list_tls_certs | List TLS certificates |
TlsCertificatesApi | update_tls_cert | Update a TLS certificate |
TlsConfigurationsApi | get_tls_config | Get a TLS configuration |
TlsConfigurationsApi | list_tls_configs | List TLS configurations |
TlsConfigurationsApi | update_tls_config | Update a TLS configuration |
TlsCsrsApi | create_csr | Create CSR |
TlsDomainsApi | list_tls_domains | List TLS domains |
TlsPrivateKeysApi | create_tls_key | Create a TLS private key |
TlsPrivateKeysApi | delete_tls_key | Delete a TLS private key |
TlsPrivateKeysApi | get_tls_key | Get a TLS private key |
TlsPrivateKeysApi | list_tls_keys | List TLS private keys |
TlsSubscriptionsApi | create_globalsign_email_challenge | Creates a GlobalSign email challenge. |
TlsSubscriptionsApi | create_tls_sub | Create a TLS subscription |
TlsSubscriptionsApi | delete_globalsign_email_challenge | Delete a GlobalSign email challenge |
TlsSubscriptionsApi | delete_tls_sub | Delete a TLS subscription |
TlsSubscriptionsApi | get_tls_sub | Get a TLS subscription |
TlsSubscriptionsApi | list_tls_subs | List TLS subscriptions |
TlsSubscriptionsApi | patch_tls_sub | Update a TLS subscription |
TokensApi | bulk_revoke_tokens | Revoke multiple tokens |
TokensApi | create_token | Create a token |
TokensApi | get_token | Get a token |
TokensApi | get_token_current | Get the current token |
TokensApi | list_tokens_customer | List tokens for a customer |
TokensApi | list_tokens_user | List tokens for the authenticated user |
TokensApi | revoke_token | Revoke a token |
TokensApi | revoke_token_current | Revoke the current token |
UserApi | create_user | Create a user |
UserApi | delete_user | Delete a user |
UserApi | get_current_user | Get the current user |
UserApi | get_user | Get a user |
UserApi | request_password_reset | Request a password reset |
UserApi | update_user | Update a user |
UserApi | update_user_password | Update the user's password |
VclApi | create_custom_vcl | Create a custom VCL file |
VclApi | delete_custom_vcl | Delete a custom VCL file |
VclApi | get_custom_vcl | Get a custom VCL file |
VclApi | get_custom_vcl_boilerplate | Get boilerplate VCL |
VclApi | get_custom_vcl_generated | Get the generated VCL for a service |
VclApi | get_custom_vcl_generated_highlighted | Get the generated VCL with syntax highlighting |
VclApi | get_custom_vcl_highlighted | Get a custom VCL file with syntax highlighting |
VclApi | get_custom_vcl_raw | Download a custom VCL file |
VclApi | lint_vcl_default | Lint (validate) VCL using a default set of flags. |
VclApi | lint_vcl_for_service | Lint (validate) VCL using flags set for the service. |
VclApi | list_custom_vcl | List custom VCL files |
VclApi | set_custom_vcl_main | Set a custom VCL file as main |
VclApi | update_custom_vcl | Update a custom VCL file |
VclDiffApi | vcl_diff_service_versions | Get a comparison of the VCL changes between two service versions |
VersionApi | activate_service_version | Activate a service version |
VersionApi | activate_service_version_environment | Activate a service version on the specified environment |
VersionApi | clone_service_version | Clone a service version |
VersionApi | create_service_version | Create a service version |
VersionApi | deactivate_service_version | Deactivate a service version |
VersionApi | deactivate_service_version_environment | Deactivate a service version on an environment |
VersionApi | get_service_version | Get a version of a service |
VersionApi | list_service_versions | List versions of a service |
VersionApi | lock_service_version | Lock a service version |
VersionApi | update_service_version | Update a service version |
VersionApi | validate_service_version | Validate a service version |
WafActiveRulesApi | bulk_delete_waf_active_rules | Delete multiple active rules from a WAF |
WafActiveRulesApi | bulk_update_waf_active_rules | Update multiple active rules |
WafActiveRulesApi | create_waf_active_rule | Add a rule to a WAF as an active rule |
WafActiveRulesApi | create_waf_active_rules_tag | Create active rules by tag |
WafActiveRulesApi | delete_waf_active_rule | Delete an active rule |
WafActiveRulesApi | get_waf_active_rule | Get an active WAF rule object |
WafActiveRulesApi | list_waf_active_rules | List active rules on a WAF |
WafActiveRulesApi | update_waf_active_rule | Update an active rule |
WafExclusionsApi | create_waf_rule_exclusion | Create a WAF rule exclusion |
WafExclusionsApi | delete_waf_rule_exclusion | Delete a WAF rule exclusion |
WafExclusionsApi | get_waf_rule_exclusion | Get a WAF rule exclusion |
WafExclusionsApi | list_waf_rule_exclusions | List WAF rule exclusions |
WafExclusionsApi | update_waf_rule_exclusion | Update a WAF rule exclusion |
WafFirewallVersionsApi | clone_waf_firewall_version | Clone a firewall version |
WafFirewallVersionsApi | create_waf_firewall_version | Create a firewall version |
WafFirewallVersionsApi | deploy_activate_waf_firewall_version | Deploy or activate a firewall version |
WafFirewallVersionsApi | get_waf_firewall_version | Get a firewall version |
WafFirewallVersionsApi | list_waf_firewall_versions | List firewall versions |
WafFirewallVersionsApi | update_waf_firewall_version | Update a firewall version |
WafFirewallsApi | create_waf_firewall | Create a firewall |
WafFirewallsApi | delete_waf_firewall | Delete a firewall |
WafFirewallsApi | get_waf_firewall | Get a firewall |
WafFirewallsApi | list_waf_firewalls | List firewalls |
WafFirewallsApi | update_waf_firewall | Update a firewall |
WafRuleRevisionsApi | get_waf_rule_revision | Get a revision of a rule |
WafRuleRevisionsApi | list_waf_rule_revisions | List revisions for a rule |
WafRulesApi | get_waf_rule | Get a rule |
WafRulesApi | list_waf_rules | List available WAF rules |
WafTagsApi | list_waf_tags | List tags |
WholePlatformDdosHistoricalApi | get_platform_ddos_historical | Get historical DDoS metrics for the entire Fastly platform |
Issues
The fastly-rust API client currently does not support the following endpoints:
/alerts/definitions/{definition_id}
(DELETE, GET, PUT)/alerts/definitions
(GET, POST)/alerts/history
(GET)/dns/configurations/{dns_configuration_id}
(DELETE, GET, PATCH)/dns/configurations
(GET, POST)/domains/v1/{domain_id}
(DELETE, GET, PATCH)/domains/v1
(GET, POST)/notifications/integration-types
(GET)/notifications/integrations/{integration_id}/rotateSigningKey
(POST)/notifications/integrations/{integration_id}/signingKey
(GET)/notifications/integrations/{integration_id}
(DELETE, GET, PATCH)/notifications/integrations
(GET, POST)/notifications/mailinglist-confirmations
(POST)/resources/stores/kv/{store_id}/batch
(PUT)/security/workspaces/{workspace_id}/events/{event_id}
(GET, PATCH)/security/workspaces/{workspace_id}/events
(GET)/security/workspaces/{workspace_id}/redactions/{redaction_id}
(DELETE, GET, PATCH)/security/workspaces/{workspace_id}/redactions
(GET, POST)/security/workspaces/{workspace_id}/requests/{request_id}
(GET)/security/workspaces/{workspace_id}/requests
(GET)/security/workspaces/{workspace_id}/rules/{rule_id}
(DELETE, GET, PATCH)/security/workspaces/{workspace_id}/rules
(GET, POST)/security/workspaces/{workspace_id}/timeseries
(GET)/security/workspaces/{workspace_id}/virtual-patches/{virtual_patch_id}
(GET, PATCH)/security/workspaces/{workspace_id}/virtual-patches
(GET)/security/workspaces/{workspace_id}
(DELETE, GET, PATCH)/security/workspaces
(GET, POST)/service/{service_id}/version/{version_id}/director
(POST)/stats/aggregate
(GET)/stats/field/{field}
(GET)/stats/regions
(GET)/stats/service/{service_id}/field/{field}
(GET)/stats/service/{service_id}
(GET)/stats/usage_by_month
(GET)/stats/usage_by_service
(GET)/stats/usage
(GET)/stats
(GET)/tls/activations/{tls_activation_id}
(GET, PATCH)/tls/activations
(GET)/tls/configurations/{tls_configuration_id}
(DELETE, GET, PATCH)/tls/configurations
(GET, POST)/v1/channel/{service_id}/ts/h/limit/{max_entries}
(GET)/v1/channel/{service_id}/ts/h
(GET)/v1/channel/{service_id}/ts/{start_timestamp}
(GET)
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.
Dependencies
~4–20MB
~226K SLoC