Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.89 KB

ContentApi.md

File metadata and controls

66 lines (45 loc) · 1.89 KB

WebService::Fastly::ContentApi

Load the API package

use WebService::Fastly::Object::ContentApi;

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
content_check GET /content/edge_check Check status of content in each POP's cache

content_check

ARRAY[Content] content_check(url => $url)

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.

Example

use Data::Dumper;
use WebService::Fastly::ContentApi;
my $api_instance = WebService::Fastly::ContentApi->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 $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.

eval {
    my $result = $api_instance->content_check(url => $url);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContentApi->content_check: $@\n";
}

Parameters

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[Content]

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]