GetMetaQueryStatus
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 Grant a custom policy.
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: Thu, 17 Apr 2025 13:08:38 GMT
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e
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>
OSS SDKs
You can use OSS SDKs for the following programming languages to call GetMetaQueryStatus:
ossutil
For information about the ossutil command that corresponds to the GetMetaQueryStatus operation, see get-meta-query-status.