StorageGateway / Client / start_cache_report
start_cache_report#
- StorageGateway.Client.start_cache_report(**kwargs)#
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.
Note
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
orExclusionFilters
in the request.
See also: AWS API Documentation
Request Syntax
response = client.start_cache_report( FileShareARN='string', Role='string', LocationARN='string', BucketRegion='string', VPCEndpointDNSName='string', InclusionFilters=[ { 'Name': 'UploadState'|'UploadFailureReason', 'Values': [ 'string', ] }, ], ExclusionFilters=[ { 'Name': 'UploadState'|'UploadFailureReason', 'Values': [ 'string', ] }, ], ClientToken='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
FileShareARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the file share.
Role (string) –
[REQUIRED]
The ARN of the IAM role used when saving the cache report to Amazon S3.
LocationARN (string) –
[REQUIRED]
The ARN of the Amazon S3 bucket where the cache report will be saved.
Note
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 (string) –
[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 (string) – The DNS name of the VPC endpoint associated with the Amazon S3 where you want to save the cache report. Optional.
InclusionFilters (list) –
The list of filters and parameters that determine which files are included in the report. You must specify at least one value for
InclusionFilters
orExclusionFilters
in aStartCacheReport
request.(dict) –
A list of filter parameters and associated values that determine which files are included or excluded from a cache report created by a
StartCacheReport
request. Multiple instances of the same filter parameter are combined with an OR operation, while different parameters are combined with an AND operation.Name (string) – [REQUIRED]
The parameter name for a filter that determines which files are included or excluded from a cache report.
Valid Names:
UploadFailureReason | UploadState
Values (list) – [REQUIRED]
The parameter value for a filter that determines which files are included or excluded from a cache report.
Valid
UploadFailureReason
Values:InaccessibleStorageClass
|InvalidObjectState
|ObjectMissing
|S3AccessDenied
Valid
UploadState
Values:FailingUpload
(string) –
ExclusionFilters (list) –
The list of filters and parameters that determine which files are excluded from the report. You must specify at least one value for
InclusionFilters
orExclusionFilters
in aStartCacheReport
request.(dict) –
A list of filter parameters and associated values that determine which files are included or excluded from a cache report created by a
StartCacheReport
request. Multiple instances of the same filter parameter are combined with an OR operation, while different parameters are combined with an AND operation.Name (string) – [REQUIRED]
The parameter name for a filter that determines which files are included or excluded from a cache report.
Valid Names:
UploadFailureReason | UploadState
Values (list) – [REQUIRED]
The parameter value for a filter that determines which files are included or excluded from a cache report.
Valid
UploadFailureReason
Values:InaccessibleStorageClass
|InvalidObjectState
|ObjectMissing
|S3AccessDenied
Valid
UploadState
Values:FailingUpload
(string) –
ClientToken (string) –
[REQUIRED]
A unique identifier that you use to ensure idempotent report generation if you need to retry an unsuccessful
StartCacheReport
request. If you retry a request, use the sameClientToken
you specified in the initial request.Tags (list) –
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.
(dict) –
A key-value pair that helps you manage, filter, and search for your resource. Allowed characters: letters, white space, and numbers, representable in UTF-8, and the following characters: + - = . _ : /.
Key (string) – [REQUIRED]
Tag key. The key can’t start with aws:.
Value (string) – [REQUIRED]
Value of the tag key.
- Return type:
dict
- Returns:
Response Syntax
{ 'CacheReportARN': 'string' }
Response Structure
(dict) –
CacheReportARN (string) –
The Amazon Resource Name (ARN) of the cache report generated by the
StartCacheReport
request.
Exceptions