All Products
Search
Document Center

Object Storage Service:get-bucket-https-config

Last Updated:Aug 28, 2024

Queries the Transport Layer Security (TLS) version configurations of a bucket.

Usage notes

By default, an Alibaba Cloud account has the permissions to query the TLS version configurations of a bucket. If you want to query the TLS version configurations of a bucket by using a RAM user or Security Token Service (STS), you must have the oss:GetBucketHttpsConfig permission. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api get-bucket-https-config --bucket value [flags]

Parameter

Type

Description

--bucket

string

The name of the bucket.

Note
  • The get-bucket-https-config command corresponds to the GetBucketHttpsConfig operation. For more information about the parameters in the GetBucketHttpsConfig operation, see GetBucketHttpsConfig.

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

Examples

  • Run the following command to query the TLS version configurations of a bucket named examplebucket:

    ossutil api get-bucket-https-config --bucket examplebucket
  • Run the following command to query the TLS version configurations of a bucket named examplebucket and display the version configurations in the JSON format:

    ossutil api get-bucket-https-config --bucket examplebucket --output-format json
  • Run the following command to query the TLS version configurations of a bucket named examplebucket and display the version configurations in the YAML format:

    ossutil api get-bucket-https-config --bucket examplebucket --output-format yaml