All Products
Search
Document Center

Object Storage Service:get-bucket-https-config

Last Updated:Mar 20, 2026

Retrieves the Transport Layer Security (TLS) version configuration of a bucket.

Permissions

PrincipalRequired permission
Alibaba Cloud accountPermitted by default
RAM useross:GetBucketHttpsConfig
Security Token Service (STS)oss:GetBucketHttpsConfig

To grant the permission to a RAM user, see Attach a custom policy to a RAM user.

Syntax

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

Parameters

ParameterTypeRequiredDescription
--bucketstringYesThe name of the bucket.

For global flags such as --output-format, see Global command-line options.

This command corresponds to the GetBucketHttpsConfig API operation. For the full parameter reference, see the API documentation.

Examples

Retrieve TLS configuration (default output)

ossutil api get-bucket-https-config --bucket examplebucket

Retrieve TLS configuration in JSON format

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

Retrieve TLS configuration in YAML format

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

What's next