All Products
Search
Document Center

Object Storage Service:Get table bucket policy

Last Updated:May 08, 2026

The get-table-bucket-policy command retrieves the resource policy of a table bucket.

Usage notes

  • If no resource policy is configured for the table bucket, this command returns an empty policy.

Syntax

ossutil tables-api get-table-bucket-policy --table-bucket-arn value [flags]

Parameter

Type

Description

--table-bucket-arn

string

The ARN of the table bucket. Format: acs:osstables:{region}:{accountId}:bucket/{name}.

Note

Examples

The following example retrieves the resource policy for a table bucket named my-table-bucket in the China (Hangzhou) region.

ossutil tables-api get-table-bucket-policy --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket