开发者社区> 问答> 正文

什么是Action 定义

Action 是 API 的名称,可以根据 Action 设置开放或限制用户可以访问的 API。在创建表格存储的授权策略时,每个 Action 都需要添加ots:前缀,多个 Action 以逗号分隔,并且支持星号通配符(包括前缀匹配和后缀匹配)。
下面是一些典型的 Action 定义:


  • 单个 API"Action": "ots:GetRow"


  • 多个 API"Action": [
  •   "ots:PutRow",
  •   "ots:GetRow"
  • ]


  • 所有只读 API"Action": [
  •   "ots:BatchGet*",
  •   "ots:Describe*",
  •   "ots:Get*",
  •   "ots:List*"
  • ]


  • 所有读写 API"Action": "ots:*"

展开
收起
云栖大讲堂 2017-10-25 09:54:00 2126 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
AutoAlerts-From Data to Action 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载