get-bucket-policy
Updated at:
The get-bucket-policy command retrieves the bucket policy of a specified vector bucket.
Notes
To retrieve the bucket policy for a specified bucket, you must have the oss:GetBucketPolicy permission. For more information, see Grant custom access policies to a RAM user.
Command format
ossutil api get-bucket-policy --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the bucket. |
Note
-
The get-bucket-policy command corresponds to the GetBucketPolicy API operation.
-
For more information about the supported global options, see Supported global command-line options.
Examples
The following example shows how to retrieve the bucket policy of the vector bucket named vectorexample.
ossutil vectors-api get-bucket-policy --bucket vectorexample
Is this page helpful?