All Products
Search
Document Center

:list-style

Last Updated:Aug 28, 2024

Queries all image styles of a bucket.

Usage notes

By default, an Alibaba Cloud account has the permissions to query all image styles of a bucket. To query all image styles of a bucket by using a RAM user or 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 parameters in the ListStyle operation, see ListStyle.

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

Examples

  • Run the following command to query all image styles of a bucket named examplebucket:

    ossutil api list-style --bucket examplebucket
  • Run the following command to query all image styles of a bucket named examplebucket and display the image styles in the JSON format:

    ossutil api list-style --bucket examplebucket --output-format json
  • Run the following command to query all image styles of a bucket named examplebucket and display the image styles in the YAML format:

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