Retrieves the resource policy configuration of a specified table.
Usage notes
-
If no resource policy is configured for the table, the command returns an empty policy or an error message.
-
The policy is returned in JSON format and includes fields such as Version and Statement.
Syntax
ossutil tables-api get-table-policy --table-bucket-arn value --namespace value --name value [flags]
|
Parameter |
Type |
Description |
|
--name |
string |
The name of the table. This parameter is required. |
|
--namespace |
string |
The namespace of the table. This parameter is required. |
|
--table-bucket-arn |
string |
The ARN of the bucket that contains the table. The format is |
-
The get-table-policy command corresponds to the GetTablePolicy API operation. For more information, see GetTablePolicy.
-
For global command-line options, see ossutil Global Options.
Examples
The following example retrieves the resource policy for the my_table table in the my_namespace namespace.
ossutil tables-api get-table-policy --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket --namespace my_namespace --name my_table