Queries a specific image style of a bucket.
Usage notes
By default, an Alibaba Cloud account has permission to query image styles of a bucket. To use a RAM user or Security Token Service (STS) to query an image style, you must grant the oss:GetStyle permission. For more information, see Attach a custom policy to a RAM user.
Syntax
ossutil api get-style --bucket <value> --style-name <value> [--output-format <value>] [flags]Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | The name of the bucket. |
--style-name | string | Yes | The name of the image style. |
--output-format | string | No | The output format of the command result. Valid values: json, yaml. Default: plain text. |
The get-style command corresponds to the GetStyle operation. For parameter details, see GetStyle. For supported global command-line options, see Global command-line options.
Examples
Query the image style named imageStyle of the examplebucket bucket:
ossutil api get-style --bucket examplebucket --style-name imageStyleQuery the same image style and display the result in JSON format:
ossutil api get-style --bucket examplebucket --style-name imageStyle --output-format jsonQuery the same image style and display the result in YAML format:
ossutil api get-style --bucket examplebucket --style-name imageStyle --output-format yaml