get-bucket-logging
Updated at:
The get-bucket-logging command views the access log configuration of a bucket.
Precautions
By default, an Alibaba Cloud account has the permission to view the access log configuration of a bucket. If you view the configuration as a Resource Access Management (RAM) user or using Security Token Service (STS), you must have the oss:GetBucketLogging permission. For more information, see Grant custom access policies to a RAM user.
Command format
ossutil vectors-api get-bucket-logging --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the bucket. |
Note
-
The get-bucket-logging command calls the GetBucketLogging API operation.
-
For more information about the supported global command line options, see Supported global command line options.
Usage example
View the access log configuration of the bucket named examplebucket.
ossutil vectors-api get-bucket-logging --bucket examplebucket
Is this page helpful?