All Products
Search
Document Center

Object Storage Service:Kueri semua gaya gambar dari sebuah bucket

Last Updated:Jun 23, 2026

Menampilkan semua gaya gambar dalam sebuah bucket.

Usage notes

Secara default, Akun Alibaba Cloud memiliki izin untuk mengkueri semua gaya gambar dalam sebuah bucket. Untuk mengkueri gaya gambar menggunakan pengguna RAM atau Security Token Service (STS), Anda harus memiliki izin oss:ListStyle. Untuk informasi selengkapnya, lihat Contoh umum kebijakan RAM.

Request syntax

GET /?style HTTP/1.1
Date:  GMT Date
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

Request headers

Permintaan ListStyle hanya menggunakan header permintaan umum. Untuk informasi selengkapnya, lihat Header HTTP umum.

Response headers

Tanggapan terhadap permintaan ListStyle hanya berisi header respons umum. Untuk informasi selengkapnya, lihat Header HTTP umum.

Response elements

Element

Type

Example

Description

StyleList

Container

N/A

Kontainer untuk informasi gaya gambar.

Parent nodes: none

Child nodes: Style

Style

Container

N/A

Kontainer untuk detail setiap gaya gambar.

Parent nodes: StyleList

Child nodes: Name, Content, CreateTime, dan LastModifyTime

Name

String

imagestyle

Nama gaya gambar.

Parent nodes: Style

Child nodes: none

Content

String

image/resize,p_50

Konten gaya gambar.

Parent nodes: Style

Child nodes: none

Category

String

image

Kategori gaya gambar.

Parent nodes: Style

Child nodes: none

CreateTime

String

Wed, 20 May 2020 12:07:15 GMT

Waktu saat gaya gambar dibuat.

Parent nodes: Style

Child nodes: none

LastModifyTime

String

Wed, 21 May 2020 12:07:15 GMT

Waktu saat gaya gambar terakhir dimodifikasi.

Parent nodes: Style

Child nodes: none

Examples

  • Sample request

GET /?style HTTP/1.1
Date: Thu, 17 Apr 2025 05:34:24 GMT
Content-Length: 63
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,AdditionalHeaders=content-length,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e

  • Sample success response

HTTP/1.1 200 OK
Server: AliyunOSS
Date: Fri, 04 Mar 2022 04:43:37 GMT
Content-Type: application/xml
Content-Length: 695
Connection: keep-alive
x-oss-request-id: 622198F90612433336EC66A6
 
<?xml version="1.0" encoding="UTF-8"?>
<StyleList>
 <Style>
 <Name>imagestyle</Name>
 <Content>image/resize,p_50</Content>
 <Category>image</Category>
 <CreateTime>Wed, 20 May 2020 12:07:15 GMT</CreateTime>
 <LastModifyTime>Wed, 21 May 2020 12:07:15 GMT</LastModifyTime>
 </Style>
 <Style>
 <Name>imagestyle1</Name>
 <Content>image/resize,w_200</Content>
 <Category>image</Category>
 <CreateTime>Wed, 20 May 2020 12:08:04 GMT</CreateTime>
 <LastModifyTime>Wed, 21 May 2020 12:08:04 GMT</LastModifyTime>
 </Style>
 <Style>
 <Name>imagestyle2</Name>
 <Content>image/resize,w_300</Content>
 <Category>image</Category>
 <CreateTime>Fri, 12 Mar 2021 06:19:13 GMT</CreateTime>
 <LastModifyTime>Fri, 13 Mar 2021 06:27:21 GMT</LastModifyTime>
 </Style>
</StyleList>

OSS SDK

Anda dapat menggunakan OSS SDK untuk Python guna memanggil operasi ListStyle.

ossutil

Untuk perintah ossutil yang sesuai dengan operasi ListStyle, lihat list-style.