The GET Bucket metadata notification configuration request allows you to retrieve the configuration XML used to configure search integration for individual buckets.
You must have the s3:GetBucketMetadataNotification permission to complete this operation.
Request HTTP Header | Description |
---|---|
Authorization | Specifies the AWS signature and the access key ID for the account to use for the request. |
Date | The date and time of the request. |
Host | The host name to which the request is directed. |
This request retrieves the metadata notification configuration for the bucket named "bucket".
GET /bucket?x-ntap-sg-metadata-notification HTTP/1.1 Host: example.com Date: Thu, 20 Jul 2017 18:25:38 +0000 Authorization: AWS QYUTN90RX0RXO70QEGU8:/XpYXJFVGp5pXh0se26ZzxxkuNE=
Response HTTP Header | Description |
---|---|
Connection | Specifies whether the connection to the server is open or closed. |
Content-Length | The length of the response body. |
Content-Type | The Multipurpose Internet Mail Extensions (MIME) type of the response body. |
Date | The date and time of the response. |
Server | The server that created the response. |
x-amz-request-id | The identifier that uniquely identifies the request. Created by the S3 API. |
The response body includes the metadata notification configuration for the bucket. The metadata notification configuration lets you determine how the bucket is configured for search integration. That is, it allows you to determine which objects are indexed, and which endpoints their object metadata is being sent to.
<MetadataNotificationConfiguration> <Rule> <ID>Rule-1</ID> <Status>rule-status</Status> <Prefix>key-prefix</Prefix> <Destination> <Urn>arn:aws:es:region:account-ID:domain/mydomain/myindex/mytype</Urn> </Destination> </Rule> <Rule> <ID>Rule-2</ID> ... </Rule> ... </MetadataNotificationConfiguration>
Each metadata notification configuration includes one or more rules. Each rule specifies the objects that it applies to and the destination where StorageGRID Webscale should send object metadata. Destinations must be specified using the URN of a StorageGRID Webscale endpoint. See the Tenant Administrator Guide for more information on configuring endpoints, and the search integration service.
Name | Description | Required |
---|---|---|
MetadataNotificationConfiguration | Container tag for rules used to specify the objects and destination for metadata notifications. Contains one or more Rule elements. |
Yes |
Rule | Container tag for a rule that identifies the objects whose metadata should be added to a specified index. Rules with overlapping prefixes are rejected. Included in the MetadataNotificationConfiguration element. |
Yes |
ID | Unique identifier for the rule. Included in the Rule element. |
No |
Status | Status can be 'Enabled' or 'Disabled'. No action is taken for rules that are disabled. Included in the Rule element. |
Yes |
Prefix | Objects that match the prefix are affected by the rule, and their metadata is sent to the specified destination. To match all objects, specify an empty prefix. Included in the Rule element. |
Yes |
Destination | Container tag for the destination of a rule. Included in the Rule element. |
Yes |
Urn | URN of the destination where object metadata is sent. Must be the URN of a StorageGRID Webscale endpoint with the following properties:
Endpoints are configured using the Tenant Management Interface or Tenant Management API. They take the following form:
The endpoint must be configured before the configuration XML is submitted, or configuration will fail with a 404 error. Urn is included in the Destination element. |
Yes |
The XML included between the <MetadataNotificationConfiguration> </MetadataNotificationConfiguration> tags shows how integration with a search integration endpoint is configured for the bucket. In this example, object metadata is being sent to an Elasticsearch index named "current" and type named "2017" that is hosted in an AWS domain named "records."
HTTP/1.1 200 OK Date: Thu, 20 Jul 2017 18:24:05 GMT Connection: KEEP-ALIVE Server: StorageGRID/11.0.0 x-amz-request-id: 3832973499 Content-Length: 264 Content-Type: application/xml <MetadataNotificationConfiguration> <Rule> <ID>Rule-1</ID> <Status>Enabled</Status> <Prefix>2017</Prefix> <Destination> <Urn>arn:aws:es:us-east-1:3333333:domain/records/current/2017</Urn> </Destination> </Rule> </MetadataNotificationConfiguration>