Sha256: 08ea7634b56801bfc5ca87b845a4c5afbece677950493377f6f3e61799bac1bd

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

# Fastly::SettingsApi


```ruby
require 'fastly'
api_instance = Fastly::SettingsApi.new
```

## Methods

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_service_settings**](SettingsApi.md#get_service_settings) | **GET** /service/{service_id}/version/{version_id}/settings | Get service settings |


## `get_service_settings()`

```ruby
get_service_settings(opts): <SettingsResponse> # Get service settings
```

Get the settings for a particular service and version.

### Examples

```ruby
api_instance = Fastly::SettingsApi.new
opts = {
    service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
    version_id: 56, # Integer | Integer identifying a service version.
}

begin
  # Get service settings
  result = api_instance.get_service_settings(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling SettingsApi->get_service_settings: #{e}"
end
```

### Options

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **service_id** | **String** | Alphanumeric string identifying the service. |  |
| **version_id** | **Integer** | Integer identifying a service version. |  |

### Return type

[**SettingsResponse**](SettingsResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fastly-4.0.1.pre.alpha.0 docs/SettingsApi.md
fastly-4.0.0 docs/SettingsApi.md
fastly-4.0.0.alpha4 docs/SettingsApi.md
fastly-4.0.0.alpha3 docs/SettingsApi.md
fastly-4.0.0.alpha2 docs/SettingsApi.md