All Products
Search
Document Center

Object Storage Service:list-style

Last Updated:Jun 22, 2026

Lists all image styles created in a bucket.

Usage notes

An Alibaba Cloud account has the permissions to list all image styles of a bucket by default. To perform this operation as a RAM user or by using Security Token Service (STS), you must have the oss:ListStyle permission. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api list-style --bucket value [flags]

Parameter

Type

Description

--bucket

string

The name of the bucket.

Note
  • The list-style command corresponds to the ListStyle operation. For more information about the ListStyle parameters, see ListStyle.

  • For more information about global command-line options, see Global command-line options.

Examples

  • List all image styles of a bucket named examplebucket:

    ossutil api list-style --bucket examplebucket
  • List all image styles of a bucket named examplebucket and display the results in JSON format:

    ossutil api list-style --bucket examplebucket --output-format json
  • List all image styles of a bucket named examplebucket and display the results in YAML format:

    ossutil api list-style --bucket examplebucket --output-format yaml