Delete table policy

更新时间:
复制 MD 格式

Deletes the resource policy (Resource Policy) configuration for a specified table.

Usage notes

  • After you delete the resource policy, the table is no longer governed by the custom policy, and access control reverts to the default permission rules.

  • This operation is irreversible. To restore the policy, run the put-table-policy command.

Syntax

ossutil tables-api delete-table-policy --table-bucket-arn value --namespace value --name value [flags]

Parameter

Type

Description

--name

string

The name of the table. Required.

--namespace

string

The namespace of the table. Required.

--table-bucket-arn

string

The ARN of the table bucket, in the format acs:osstables:{region}:{uid}:bucket/{bucket-name}. Required.

Note
  • The delete-table-policy command corresponds to the DeleteTablePolicy API operation. For more information about the API parameters, see DeleteTablePolicy.

  • For supported global command-line options, see ossutil global options.

Examples

The following example deletes the resource policy from the my_table table in the my_namespace namespace.

ossutil tables-api delete-table-policy --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket --namespace my_namespace --name my_table