Skip to content

Start Cache Report

storagegateway_start_cache_report R Documentation

Starts generating a report of the file metadata currently cached by an S3 File Gateway for a specific file share

Description

Starts generating a report of the file metadata currently cached by an S3 File Gateway for a specific file share. You can use this report to identify and resolve issues if you have files failing upload from your gateway to Amazon S3. The report is a CSV file containing a list of files which match the set of filter parameters you specify in the request.

The Files Failing Upload flag is reset every 24 hours and during gateway reboot. If this report captures the files after the reset, but before they become flagged again, they will not be reported as Files Failing Upload.

The following requirements must be met to successfully generate a cache report:

  • You must have permissions to list the entire Amazon S3 bucket associated with the specified file share.

  • No other cache reports can currently be in-progress for the specified file share.

  • There must be fewer than 10 existing cache reports for the specified file share.

  • The gateway must be online and connected to Amazon Web Services.

  • The root disk must have at least 20GB of free space when report generation starts.

  • You must specify at least one value for InclusionFilters or ExclusionFilters in the request.

Usage

storagegateway_start_cache_report(FileShareARN, Role, LocationARN,
  BucketRegion, VPCEndpointDNSName, InclusionFilters, ExclusionFilters,
  ClientToken, Tags)

Arguments

FileShareARN

[required]

Role

[required] The ARN of the IAM role used when saving the cache report to Amazon S3.

LocationARN

[required] The ARN of the Amazon S3 bucket where the cache report will be saved.

We do not recommend saving the cache report to the same Amazon S3 bucket for which you are generating the report.

This field does not accept access point ARNs.

BucketRegion

[required] The Amazon Web Services Region of the Amazon S3 bucket associated with the file share for which you want to generate the cache report.

VPCEndpointDNSName

The DNS name of the VPC endpoint associated with the Amazon S3 where you want to save the cache report. Optional.

InclusionFilters

The list of filters and parameters that determine which files are included in the report. You must specify at least one value for InclusionFilters or ExclusionFilters in a start_cache_report request.

ExclusionFilters

The list of filters and parameters that determine which files are excluded from the report. You must specify at least one value for InclusionFilters or ExclusionFilters in a start_cache_report request.

ClientToken

[required] A unique identifier that you use to ensure idempotent report generation if you need to retry an unsuccessful start_cache_report request. If you retry a request, use the same ClientToken you specified in the initial request.

Tags

A list of up to 50 key/value tags that you can assign to the cache report. Using tags can help you categorize your reports and more easily locate them in search results.

Value

A list with the following syntax:

list(
  CacheReportARN = "string"
)

Request syntax

svc$start_cache_report(
  FileShareARN = "string",
  Role = "string",
  LocationARN = "string",
  BucketRegion = "string",
  VPCEndpointDNSName = "string",
  InclusionFilters = list(
    list(
      Name = "UploadState"|"UploadFailureReason",
      Values = list(
        "string"
      )
    )
  ),
  ExclusionFilters = list(
    list(
      Name = "UploadState"|"UploadFailureReason",
      Values = list(
        "string"
      )
    )
  ),
  ClientToken = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)