/
GetBucketInventoryConfiguration
GetBucketInventoryConfiguration
Retorna uma configuração de inventário (identificada pelo ID de configuração de inventário) do bucket.
Request Syntax
GET /?inventory&Id=Id HTTP/1.1 Host: bucket-name.bigfile.brascloud.com.br:443
Response Syntax
HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <InventoryConfiguration> <Destination> <S3BucketDestination> <AccountId>string</AccountId> <Bucket>string</Bucket> <Encryption> <SSE-KMS> <KeyId>string</KeyId> </SSE-KMS> <SSE-S3> </SSE-S3> </Encryption> <Format>string</Format> <Prefix>string</Prefix> </S3BucketDestination> </Destination> <IsEnabled>boolean</IsEnabled> <Filter> <Prefix>string</Prefix> </Filter> <Id>string</Id> <IncludedObjectVersions>string</IncludedObjectVersions> <OptionalFields> <Field>string</Field> </OptionalFields> <Schedule> <Frequency>string</Frequency> </Schedule> </InventoryConfiguration>
Exemplos
A seguinte solicitação GET para o bucket bucket
retorna a configuração do inventário com o ID list1
.
Request
GET /?inventory&id=list1 HTTP/1.1 Host: bucket.bigfile.brascloud.com.br:443 Date: Mon, 31 Oct 2016 12:00:00 GMT Authorization: authorization string
Response
HTTP/1.1 200 OK x-amz-id-2: YgIPIfBiKa2bj0KMgUAdQkf3ShJTOOpXUueF6QKo x-amz-request-id: 236A8905248E5A02 Date: Mon, 31 Oct 2016 12:00:00 GMT Server: bigfile Content-Length: length <?xml version="1.0" encoding="UTF-8"?> <InventoryConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Id>report1</Id> <IsEnabled>true</IsEnabled> <Destination> <S3BucketDestination> <Format>CSV</Format> <AccountId>123456789012</AccountId> <Bucket>arn:aws:s3:::destination-bucket</Bucket> <Prefix>prefix1</Prefix> <SSE-S3/> </S3BucketDestination> </Destination> <Schedule> <Frequency>Daily</Frequency> </Schedule> <Filter> <Prefix>myprefix/</Prefix> </Filter> <IncludedObjectVersions>All</IncludedObjectVersions> <OptionalFields> <Field>Size</Field> <Field>LastModifiedDate</Field> <Field>ETag</Field> <Field>StorageClass</Field> <Field>IsMultipartUploaded</Field> <Field>ReplicationStatus</Field> <Field>ObjectLockRetainUntilDate</Field> <Field>ObjectLockMode</Field> <Field>ObjectLockLegalHoldStatus</Field> </OptionalFields> </InventoryConfiguration>
, multiple selections available,
Related content
GetBucketReplication
GetBucketReplication
More like this
GetBucketAnalyticsConfiguration
GetBucketAnalyticsConfiguration
More like this
GetBucketMetricsConfiguration
GetBucketMetricsConfiguration
More like this
ListObjects
ListObjects
More like this
ListBuckets
ListBuckets
More like this
CreateBucket
CreateBucket
More like this