Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_service_settings | GET /service/{service_id}/version/{version_id}/settings | Get service settings |
update_service_settings | PUT /service/{service_id}/version/{version_id}/settings | Update service settings |
Get the settings for a particular service and version.
let cfg = &Configuration::default();
let params = GetServiceSettingsParams {
// parameters
};
get_service_settings(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] |
crate::models::SettingsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update the settings for a particular service and version. NOTE: If you override TTLs with custom VCL, any general.default_ttl value will not be honored and the expected behavior may change.
let cfg = &Configuration::default();
let params = UpdateServiceSettingsParams {
// parameters
};
update_service_settings(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] | |
general_default_host | Option<String> | The default host name for the version. | ||
general_default_ttl | Option<i32> | The default time-to-live (TTL) for the version. | ||
general_stale_if_error | Option<bool> | Enables serving a stale object if there is an error. | [default to false] | |
general_stale_if_error_ttl | Option<i32> | The default time-to-live (TTL) for serving the stale object for the version. | [default to 43200] |
crate::models::SettingsResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json