Skip to content

Latest commit

 

History

History
205 lines (131 loc) · 6.39 KB

GzipApi.md

File metadata and controls

205 lines (131 loc) · 6.39 KB

GzipApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
create_gzip_config POST /service/{service_id}/version/{version_id}/gzip Create a gzip configuration
delete_gzip_config DELETE /service/{service_id}/version/{version_id}/gzip/{gzip_name} Delete a gzip configuration
get_gzip_configs GET /service/{service_id}/version/{version_id}/gzip/{gzip_name} Get a gzip configuration
list_gzip_configs GET /service/{service_id}/version/{version_id}/gzip List gzip configurations
update_gzip_config PUT /service/{service_id}/version/{version_id}/gzip/{gzip_name} Update a gzip configuration

create_gzip_config

Create a named gzip configuration on a particular service and version.

let cfg = &Configuration::default();
let params = CreateGzipConfigParams {
    // parameters
};
create_gzip_config(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
cache_condition Option<String> Name of the cache condition controlling when this configuration applies.
content_types Option<String> Space-separated list of content types to compress. If you omit this field a default list will be used.
extensions Option<String> Space-separated list of file extensions to compress. If you omit this field a default list will be used.
name Option<String> Name of the gzip configuration.

Return type

crate::models::GzipResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

delete_gzip_config

Delete a named gzip configuration on a particular service and version.

let cfg = &Configuration::default();
let params = DeleteGzipConfigParams {
    // parameters
};
delete_gzip_config(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
gzip_name String Name of the gzip configuration. [required]

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

get_gzip_configs

Get the gzip configuration for a particular service, version, and name.

let cfg = &Configuration::default();
let params = GetGzipConfigsParams {
    // parameters
};
get_gzip_configs(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
gzip_name String Name of the gzip configuration. [required]

Return type

crate::models::GzipResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

list_gzip_configs

List all gzip configurations for a particular service and version.

let cfg = &Configuration::default();
let params = ListGzipConfigsParams {
    // parameters
};
list_gzip_configs(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]

Return type

Vec<crate::models::GzipResponse>

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

update_gzip_config

Update a named gzip configuration on a particular service and version.

let cfg = &Configuration::default();
let params = UpdateGzipConfigParams {
    // parameters
};
update_gzip_config(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
gzip_name String Name of the gzip configuration. [required]
cache_condition Option<String> Name of the cache condition controlling when this configuration applies.
content_types Option<String> Space-separated list of content types to compress. If you omit this field a default list will be used.
extensions Option<String> Space-separated list of file extensions to compress. If you omit this field a default list will be used.
name Option<String> Name of the gzip configuration.

Return type

crate::models::GzipResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]