Sha256: 8641f27a58ebdb3883ba13e189e0689ec80a2769d44b3d56e01d93de968940b3

Contents?: true

Size: 1.36 KB

Versions: 14

Compression:

Stored size: 1.36 KB

Contents

# Fastly::ContentApi


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

## Methods

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**content_check**](ContentApi.md#content_check) | **GET** /content/edge_check | Check status of content in each POP's cache |


## `content_check()`

```ruby
content_check(opts): <Array<Content>> # Check status of content in each POP's cache
```

Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour.

### Examples

```ruby
api_instance = Fastly::ContentApi.new
opts = {
    url: 'https://www.example.com/foo/bar', # String | Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed.
}

begin
  # Check status of content in each POP's cache
  result = api_instance.content_check(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling ContentApi->content_check: #{e}"
end
```

### Options

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **url** | **String** | Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed. | [optional] |

### Return type

[**Array&lt;Content&gt;**](Content.md)

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fastly-8.2.0 docs/ContentApi.md
fastly-8.1.0 docs/ContentApi.md
fastly-8.0.1 docs/ContentApi.md
fastly-8.0.0 docs/ContentApi.md
fastly-7.2.2 docs/ContentApi.md
fastly-7.2.1 docs/ContentApi.md
fastly-7.2.0 docs/ContentApi.md
fastly-7.1.1 docs/ContentApi.md
fastly-7.1.0 docs/ContentApi.md
fastly-7.0.0 docs/ContentApi.md
fastly-6.0.2 docs/ContentApi.md
fastly-6.0.1 docs/ContentApi.md
fastly-6.0.0 docs/ContentApi.md
fastly-4.0.0.alpha4 docs/ContentApi.md