WebService-Fastly
view release on metacpan or search on metacpan
docs/RequestSettingsApi.md view on Meta::CPAN
my $version_id = 56; # int | Integer identifying a service version.
eval {
my $result = $api_instance->list_request_settings(service_id => $service_id, version_id => $version_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling RequestSettingsApi->list_request_settings: $@\n";
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**service_id** | **string**| Alphanumeric string identifying the service. |
**version_id** | **int**| Integer identifying a service version. |
### Return type
[**ARRAY[RequestSettingsResponse]**](RequestSettingsResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_request_settings**
> RequestSettingsResponse update_request_settings(service_id => $service_id, version_id => $version_id, request_settings_name => $request_settings_name, action => $action, default_host => $default_host, hash_keys => $hash_keys, name => $name, request...
Update a Request Settings object
Updates the specified Request Settings object.
### Example
```perl
use Data::Dumper;
use WebService::Fastly::RequestSettingsApi;
my $api_instance = WebService::Fastly::RequestSettingsApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
my $request_settings_name = "request_settings_name_example"; # string | Name for the request settings.
my $action = "action_example"; # string | Allows you to terminate request handling and immediately perform an action.
my $default_host = "default_host_example"; # string | Sets the host header.
my $hash_keys = "hash_keys_example"; # string | Comma separated list of varnish request object fields that should be in the hash key.
my $name = "name_example"; # string | Name for the request settings.
my $request_condition = "request_condition_example"; # string | Condition which, if met, will select this configuration during a request. Optional.
my $xff = "xff_example"; # string | Short for X-Forwarded-For.
my $bypass_busy_wait = 56; # int | Disable collapsed forwarding, so you don't wait for other objects to origin.
my $force_miss = 56; # int | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.
my $force_ssl = 56; # int | Forces the request use SSL (redirects a non-SSL to SSL).
my $geo_headers = 56; # int | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.
my $max_stale_age = 56; # int | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.
my $timer_support = 56; # int | Injects the X-Timer info into the request for viewing origin fetch durations.
eval {
my $result = $api_instance->update_request_settings(service_id => $service_id, version_id => $version_id, request_settings_name => $request_settings_name, action => $action, default_host => $default_host, hash_keys => $hash_keys, name => $name, r...
print Dumper($result);
};
if ($@) {
warn "Exception when calling RequestSettingsApi->update_request_settings: $@\n";
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**service_id** | **string**| Alphanumeric string identifying the service. |
**version_id** | **int**| Integer identifying a service version. |
**request_settings_name** | **string**| Name for the request settings. |
**action** | **string**| Allows you to terminate request handling and immediately perform an action. | [optional]
**default_host** | **string**| Sets the host header. | [optional]
**hash_keys** | **string**| Comma separated list of varnish request object fields that should be in the hash key. | [optional]
**name** | **string**| Name for the request settings. | [optional]
**request_condition** | **string**| Condition which, if met, will select this configuration during a request. Optional. | [optional]
**xff** | **string**| Short for X-Forwarded-For. | [optional]
**bypass_busy_wait** | **int**| Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional]
**force_miss** | **int**| Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional]
**force_ssl** | **int**| Forces the request use SSL (redirects a non-SSL to SSL). | [optional]
**geo_headers** | **int**| Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional]
**max_stale_age** | **int**| How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional]
**timer_support** | **int**| Injects the X-Timer info into the request for viewing origin fetch durations. | [optional]
### Return type
[**RequestSettingsResponse**](RequestSettingsResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
( run in 0.924 second using v1.01-cache-2.11-cpan-39bf76dae61 )