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 a named gzip configuration on a particular service and version.
let cfg = &Configuration::default();
let params = CreateGzipConfigParams {
// parameters
};
create_gzip_config(cfg, params)
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. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete a named gzip configuration on a particular service and version.
let cfg = &Configuration::default();
let params = DeleteGzipConfigParams {
// parameters
};
delete_gzip_config(cfg, params)
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] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get the gzip configuration for a particular service, version, and name.
let cfg = &Configuration::default();
let params = GetGzipConfigsParams {
// parameters
};
get_gzip_configs(cfg, params)
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] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all gzip configurations for a particular service and version.
let cfg = &Configuration::default();
let params = ListGzipConfigsParams {
// parameters
};
list_gzip_configs(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] |
Vec<crate::models::GzipResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update a named gzip configuration on a particular service and version.
let cfg = &Configuration::default();
let params = UpdateGzipConfigParams {
// parameters
};
update_gzip_config(cfg, params)
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. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json