Disables access logging for a vector bucket.
Prerequisites
Before you begin, ensure that you have:
The
oss:DeleteBucketLoggingpermission
An Alibaba Cloud account has this permission by default. If you use a Resource Access Management (RAM) user or Security Token Service (STS) to run this command, grant the oss:DeleteBucketLogging permission explicitly. For details, see Grant custom access policies to a RAM user.Syntax
ossutil vectors-api delete-bucket-logging --bucket <bucket-name> [flags]Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | The name of the bucket. |
For global flags supported by all ossutil commands, see Supported global command line options.
Example
Disable access logging for examplebucket:
ossutil vectors-api delete-bucket-logging --bucket examplebucketThis command corresponds to the DeleteBucketLogging API operation.
该文章对您有帮助吗?