Queries the information about the metadata index library of a bucket.
Usage notes
If you want to query the information about the metadata index library of a bucket, you must have the oss:GetMetaQueryStatus
permission. For more information, see Attach a custom policy to a RAM user.
Request syntax
GET /?metaQuery HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request headers
All headers in this request are common request headers. For more information, see Common Request Headers.
Response headers
All headers in the response are common response headers. For more information, see Common Response Headers.
Response elements
Element | Type | Example | Description |
MetaQueryStatus | Container | N/A | The container that stores metadata information. Child nodes: State, Phase, CreateTime, and UpdateTime. |
Phase | String | FullScanning | The scan type. Valid values:
Parent node: MetaQueryStatus |
State | String | Running | The status of the metadata index library. Valid values:
Parent node: MetaQueryStatus |
CreateTime | String | 2021-08-02T10:49:17.289372919+08:00 | The time when the metadata index library was created. The value follows the RFC 3339 standard in the YYYY-MM-DDTHH:mm:ss+TIMEZONE format. YYYY-MM-DD indicates the year, month, and day. T indicates the beginning of the time element. HH:mm:ss indicates the hour, minute, and second. TIMEZONE indicates the time zone. Parent node: MetaQueryStatus |
UpdateTime | String | 2021-08-02T10:49:17.289372919+08:00 | The time when the metadata index library was updated. The value follows the RFC 3339 standard in the YYYY-MM-DDTHH:mm:ss+TIMEZONE format. YYYY-MM-DD indicates the year, month, and day. T indicates the beginning of the time element. HH:mm:ss indicates the hour, minute, and second. TIMEZONE indicates the time zone. Parent node: MetaQueryStatus |
MetaQueryMode | String | basic | Retrieval modes:
Parent node: MetaQueryStatus |
Examples
Sample requests
GET /?metaQuery HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 11 Sep 2024 13:08:38 GMT
Authorization: OSS qn6q**************:77Dv****************
Sample responses
HTTP/1.1 200 OK
x-oss-request-id: 5C1B138A109F4E405B2D****
Date: Wed, 11 Sep 2024 13:08:38 GMT
Content-Length: 118
Content-Type: application/xml
Connection: keep-alive
Server: AliyunOSS
<?xml version="1.0" encoding="UTF-8"?>
<MetaQueryStatus>
<State>Running</State>
<Phase>FullScanning</Phase>
<CreateTime>2024-09-11T10:49:17.289372919+08:00</CreateTime>
<UpdateTime>2024-09-11T10:49:17.289372919+08:00</UpdateTime>
<MetaQueryMode>basic<MetaQueryMode>
</MetaQueryStatus>