start_cache_report
¶
start_cache_report(
file_share_arn: FileShareARN,
role: Role,
location_arn: LocationARN,
bucket_region: RegionId,
client_token: ClientToken,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
vpc_endpoint_dns_name: Optional[DNSHostName] = None,
inclusion_filters: Optional[CacheReportFilterList] = None,
exclusion_filters: Optional[CacheReportFilterList] = None,
tags: Optional[Tags] = None,
) -> StartCacheReportOutput
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
s3:PutObjectands3:AbortMultipartUploadpermissions for the Amazon S3 bucket where you want to store the cache report. -
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
InclusionFiltersorExclusionFiltersin the request.
Parameters:
-
role(Role) –The ARN of the IAM role used when saving the cache report to Amazon S3.
-
location_arn(LocationARN) –The ARN of the Amazon S3 bucket where you want to save the cache report.
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.
-
bucket_region(RegionId) –The Amazon Web Services Region of the Amazon S3 bucket where you want to save the cache report.
-
vpc_endpoint_dns_name(Optional[DNSHostName], default:None) –The DNS name of the VPC endpoint associated with the Amazon S3 where you want to save the cache report. Optional.
-
inclusion_filters(Optional[CacheReportFilterList], default:None) –The list of filters and parameters that determine which files are included in the report. You must specify at least one value for
InclusionFiltersorExclusionFiltersin aStartCacheReportrequest. -
exclusion_filters(Optional[CacheReportFilterList], default:None) –The list of filters and parameters that determine which files are excluded from the report. You must specify at least one value for
InclusionFiltersorExclusionFiltersin aStartCacheReportrequest. -
client_token(ClientToken) –A unique identifier that you use to ensure idempotent report generation if you need to retry an unsuccessful
StartCacheReportrequest. If you retry a request, use the sameClientTokenyou specified in the initial request. -
tags(Optional[Tags], default:None) –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.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 | |