表格存储 - tablestore CLI 命令参考

更新时间:
复制 MD 格式

本文列出表格存储 - tablestore 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。

前提条件

  • 已安装阿里云 CLI。安装方法请参见安装/更新 CLI。

  • 执行需要身份认证的命令前,请确认已配置阿里云 CLI 凭证,且凭证对应的身份拥有所需权限。配置方法请参见配置与管理身份凭证。

地域与接入点

凭证配置中的默认地域可用 --region <regionId> 覆盖。

未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。

版本信息

属性

值

CLI 版本

3.5.4

API 版本

2020-12-09

可用命令

单击命令名称,查看命令描述、语法和参数说明。

命令详情

语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。

BindAgentStorage2Vpc

命令描述

绑定智能体存储到vpc

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/bindagentstorage2vpc

语法

aliyun tablestore BindAgentStorage2Vpc
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/bindagentstorage2vpc --region cn-hangzhou --header "Content-Type=application/json" --body '{"AgentStorageName":"agent-test","VpcId":"vpc-2ze00000000000g31n7","AgentStorageVpcName":"remua","VirtualSwitchId":"vsw-uf600000000000ez6ge"}' --version 2020-12-09 --force

BindInstance2Vpc

命令描述

绑定VPC

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/bindinstance2vpc

语法

aliyun tablestore BindInstance2Vpc
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/bindinstance2vpc --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"mkdd-test","VpcId":"vpc-2ze00000000000g31n7","InstanceVpcName":"xu6666","VirtualSwitchId":"vsw-uf600000000000ez6ge"}' --version 2020-12-09 --force

ChangeResourceGroup

命令描述

变更实例所属的资源组

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/changeresourcegroup

语法

aliyun tablestore ChangeResourceGroup
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/changeresourcegroup --region cn-hangzhou --header "Content-Type=application/json" --body '{"NewResourceGroupId":"rg-aek3bgek3kxhyky","ResourceId":"first-ins"}' --version 2020-12-09 --force

CheckAgentStoragePolicy

命令描述

检查智能体存储访问控制策略的有效性

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/checkagentstoragepolicy

语法

aliyun tablestore CheckAgentStoragePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/checkagentstoragepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:agentstorage/myagentstorage0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"172.16.0.1\"]}}}]}","AgentStorageName":"agent-test"}' --version 2020-12-09 --force

CheckInstancePolicy

命令描述

检查实例访问控制策略的有效性

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/checkinstancepolicy

语法

aliyun tablestore CheckInstancePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/checkinstancepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"workshop-bj-ots1","Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:instance/myinstance0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"172.16.0.1\"]}}}]}"}' --version 2020-12-09 --force

CreateAgentStorage

命令描述

创建智能体存储

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/createagentstorage

语法

aliyun tablestore CreateAgentStorage
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/createagentstorage --region cn-hangzhou --header "Content-Type=application/json" --body '{"Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:agentstorage/myagentstorage0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"198.51.100.1\"]}}}]}","AgentStorageName":"first-agent","NetworkSourceACL":["TRUST_PROXY"],"NetworkTypeACL":["INTERNET"],"ResourceGroupId":"rg-acfmxh4em5jnbcd","Network":"VPC","AgentStorageDescription":"description_for_agent_storage","Tags":[{"Value":"0woauavextilfqr61","Key":"created"}]}' --version 2020-12-09 --force

CreateInstance

命令描述

创建实例

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/createinstance

语法

aliyun tablestore CreateInstance
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/createinstance --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"instance-test","Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:instance/myinstance0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"198.51.100.1\"]}}}]}","NetworkSourceACL":["TRUST_PROXY"],"NetworkTypeACL":["VPC"],"ResourceGroupId":"rg-acfmxh4em5jnbcd","Network":"NORMAL","InstanceDescription":"the_test_instance","ClusterType":"SSD","DisableReplication":false,"Tags":[{"Value":"0woauavextilfqr61","Key":"p_instance"}]}' --version 2020-12-09 --force

CreateVCUInstance

命令描述

创建VCU实例

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/createvcuinstance

语法

aliyun tablestore CreateVCUInstance
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

request body

示例

aliyun tablestore POST /v2/openapi/createvcuinstance --region cn-hangzhou --header "Content-Type=application/json" --body '{"EnableElasticVCU":true,"PeriodInMonth":1,"ResourceGroupId":"rg-acfmxh4em5jnbcd","AliasName":"test","DryRun":false,"VCU":1,"InstanceDescription":"testvcu","AutoRenewPeriodInMonth":1,"ClusterType":"SSD_vs_HYBRID","Tags":[{"Value":"0woauavextilfqr61","Key":"created"}],"EnableAutoRenew":true}' --version 2020-12-09 --force

DeleteAgentStorage

命令描述

删除智能体存储

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/deleteagentstorage

语法

aliyun tablestore DeleteAgentStorage
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/deleteagentstorage --region cn-hangzhou --header "Content-Type=application/json" --body '{"AgentStorageName":"agent-test"}' --version 2020-12-09 --force

DeleteAgentStoragePolicy

命令描述

删除智能体存储访问控制策略

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/deleteagentstoragepolicy

语法

aliyun tablestore DeleteAgentStoragePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/deleteagentstoragepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"PolicyVersion":2,"AgentStorageName":"first-agent"}' --version 2020-12-09 --force

DeleteInstance

命令描述

删除实例

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/deleteinstance

语法

aliyun tablestore DeleteInstance
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/deleteinstance --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"instance-test"}' --version 2020-12-09 --force

DeleteInstancePolicy

命令描述

删除实例访问控制策略

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/deleteinstancepolicy

语法

aliyun tablestore DeleteInstancePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/deleteinstancepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"my-test-12345","PolicyVersion":2}' --version 2020-12-09 --force

DeleteVCUInstance

命令描述

删除VCU实例

HTTP 方法:DELETE

protocol:HTTPS

url:/v2/openapi/deletevcuinstance

语法

aliyun tablestore DeleteVCUInstance
    --InstanceName <string>
    [options]

参数

参数

类型

必填

说明

--InstanceName

String

是

实例名称

示例

aliyun tablestore DELETE /v2/openapi/deletevcuinstance --region cn-hangzhou --InstanceName instance_name --header "Content-Type=application/json" --version 2020-12-09 --force

DescribeRegions

命令描述

获取可用地域列表

HTTP 方法:GET

protocol:HTTPS

url:/region/DescribeRegions

语法

aliyun tablestore DescribeRegions
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

幂等参数。
用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符,且该参数值中不能包含非 ASCII 字符

示例

aliyun tablestore GET /region/DescribeRegions --region cn-hangzhou --ClientToken ETnLKlblzczshOTUbOCzxxxxxxxxxx --header "Content-Type=application/json" --version 2020-12-09 --force

GetAgentStorage

命令描述

获取智能体存储

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/getagentstorage

语法

aliyun tablestore GetAgentStorage
    --AgentStorageName <string>
    [options]

参数

参数

类型

必填

说明

--AgentStorageName

String

是

智能体存储名称

示例

aliyun tablestore GET /v2/openapi/getagentstorage --region cn-hangzhou --AgentStorageName 'agent-test' --header "Content-Type=application/json" --version 2020-12-09 --force

GetInstance

命令描述

获取实例信息

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/getinstance

语法

aliyun tablestore GetInstance
    --InstanceName <string>
    [options]

参数

参数

类型

必填

说明

--InstanceName

String

是

实例名称

示例

aliyun tablestore GET /v2/openapi/getinstance --region cn-hangzhou --InstanceName 'instance-test' --header "Content-Type=application/json" --version 2020-12-09 --force

ListAgentStorages

命令描述

列举智能体存储

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listagentstorages

语法

aliyun tablestore ListAgentStorages
    [--AgentStorageName <string>]
    [--AgentStorageNameList <array>]
    [--MaxResults <int>]
    [--NextToken <string>]
    [--ResourceGroupId <string>]
    [--Status <string>]
    [--Tag <array>]
    [options]

参数

参数

类型

必填

说明

--AgentStorageName

String

否

智能体存储名称

--AgentStorageNameList

List

否

智能体存储名称列表,用于批量查询多个指定智能体存储

--MaxResults

Integer

否

本次请求返回标签资源的最大个数

--NextToken

String

否

当预期返回的标签资源总数大于设置的MaxResults时,将作为查询后续页的凭证。只有当资源标签未全部返回时,此参数才有值

--ResourceGroupId

String

否

资源组ID,可通过资源组控制台查询

--Status

String

否

智能体存储状态

--Tag

List

否

标签列表

示例

aliyun tablestore GET /v2/openapi/listagentstorages --region cn-hangzhou --Status normal --AgentStorageName 'agent-test' --NextToken CAESCG15aC1xxxxx --ResourceGroupId 'rg-acfmxh4em5jncda' --MaxResults 20 --AgentStorageNameList 'agent-test' --Tag '[{"Value":"Tester","Key":"Owner"}]' --header "Content-Type=application/json" --version 2020-12-09 --force

ListClusterType

命令描述

列举当前地域支持的集群类型

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listclustertype

语法

aliyun tablestore ListClusterType
    [options]

参数

该命令没有专属参数。CLI 通用选项见“全局选项”。

示例

aliyun tablestore GET /v2/openapi/listclustertype --region cn-hangzhou --header "Content-Type=application/json" --version 2020-12-09 --force

ListInstances

命令描述

获取实例列表

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listinstances

语法

aliyun tablestore ListInstances
    [--InstanceName <string>]
    [--InstanceNameList <array>]
    [--MaxResults <int>]
    [--NextToken <string>]
    [--ResourceGroupId <string>]
    [--Status <string>]
    [--Tag <array>]
    [options]

参数

参数

类型

必填

说明

--InstanceName

String

否

实例名称,支持模糊搜索

--InstanceNameList

List

否

实例名称列表,用于批量查询多个指定实例

--MaxResults

Integer

否

返回实例的最大个数,取值范围为0~200。不设置此参数或者设置为0时,则默认值为100

--NextToken

String

否

查询凭证(Token),取值为上一次API调用返回的NextToken参数值。从NextToken开始按字典序返回实例列表。第一次调用此接口时,设置为空

--ResourceGroupId

String

否

资源组ID,可通过资源组控制台查询

--Status

String

否

实例状态

--Tag

List

否

标签列表

示例

aliyun tablestore GET /v2/openapi/listinstances --region cn-hangzhou --Status normal --InstanceName instance --NextToken CAESCG15aC1xxxxx --ResourceGroupId 'rg-aek24upgom6p5ri' --MaxResults 100 --InstanceNameList 'instance-test' --Tag '[{"Value":"Tester","Key":"Owner"}]' --header "Content-Type=application/json" --version 2020-12-09 --force

ListTagResources

命令描述

获取标签资源列表

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listtagresources

语法

aliyun tablestore ListTagResources
    [--MaxResults <int>]
    [--NextToken <string>]
    [--ResourceIds <array>]
    [--ResourceType <string>]
    [--Tags <array>]
    [options]

参数

参数

类型

必填

说明

--MaxResults

Integer

否

返回标签资源的最大个数,取值范围为0~200。不设置此参数或者设置为0时,则默认值为100

--NextToken

String

否

查询凭证(Token),取值为上一次API调用返回的NextToken参数值。从NextToken开始按字典序返回资源标签列表。第一次调用此接口时,设置为空

--ResourceIds

List

否

资源ID列表(即实例名称列表)

--ResourceType

String

否

资源类型。
instance:实例

--Tags

List

否

标签列表

示例

aliyun tablestore GET /v2/openapi/listtagresources --region cn-hangzhou --ResourceIds 'instance-test' --NextToken CAESCG15aC1xxxxx --MaxResults 20 --ResourceType instance --Tags '[{"Value":"Tester","Key":"Owner"}]' --header "Content-Type=application/json" --version 2020-12-09 --force

ListVpcInfoByAgentStorage

命令描述

获取智能体存储的vpcInfo列表

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listvpcinfobyagentstorage

语法

aliyun tablestore ListVpcInfoByAgentStorage
    --AgentStorageName <string>
    [--PageNum <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--AgentStorageName

String

是

智能体存储名称

--PageNum

Integer

否

页码

--PageSize

Integer

否

分页大小,查询时设置的每页 VPC 数量

示例

aliyun tablestore GET /v2/openapi/listvpcinfobyagentstorage --region cn-hangzhou --AgentStorageName 'agent-test' --header "Content-Type=application/json" --version 2020-12-09 --force

ListVpcInfoByInstance

命令描述

获取实例的VpcInfo列表

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listvpcinfobyinstance

语法

aliyun tablestore ListVpcInfoByInstance
    --InstanceName <string>
    [--PageNum <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--InstanceName

String

是

实例名称

--PageNum

Integer

否

页码

--PageSize

Integer

否

分页大小,查询时设置的每页VPC数量

示例

aliyun tablestore GET /v2/openapi/listvpcinfobyinstance --region cn-hangzhou --InstanceName 'mkdd-test' --header "Content-Type=application/json" --version 2020-12-09 --force

ListVpcInfoByVpc

命令描述

获取给定VPC对应的VpcInfo列表信息

HTTP 方法:GET

protocol:HTTPS

url:/v2/openapi/listvpcinfobyvpc

语法

aliyun tablestore ListVpcInfoByVpc
    [--PageNum <int>]
    [--PageSize <int>]
    --VpcId <string>
    [options]

参数

参数

类型

必填

说明

--PageNum

Integer

否

页码

--PageSize

Integer

否

分页大小,查询时设置的每页VPC数量

--VpcId

String

是

VPC ID

示例

aliyun tablestore GET /v2/openapi/listvpcinfobyvpc --region cn-hangzhou --VpcId 'vpc-bp1000000000000mh8' --header "Content-Type=application/json" --version 2020-12-09 --force

TagResources

命令描述

为实例创建并绑定标签

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/tagresources

语法

aliyun tablestore TagResources
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/tagresources --region cn-hangzhou --header "Content-Type=application/json" --body '{"ResourceIds":["c-74b774f34061e022"],"ResourceType":"instance","Tags":[{"Value":"job-0007z8j1omiabo5i872l","Key":"created"}]}' --version 2020-12-09 --force

UnbindAgentStorage2Vpc

命令描述

从VPC解绑智能体存储

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/unbindagentstorage2vpc

语法

aliyun tablestore UnbindAgentStorage2Vpc
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/unbindagentstorage2vpc --region cn-hangzhou --header "Content-Type=application/json" --body '{"AgentStorageName":"agent-test","AgentStorageVpcName":"remua"}' --version 2020-12-09 --force

UnbindInstance2Vpc

命令描述

用于解绑VPC

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/unbindinstance2vpc

语法

aliyun tablestore UnbindInstance2Vpc
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体

示例

aliyun tablestore POST /v2/openapi/unbindinstance2vpc --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"mkdd-test","InstanceVpcName":"xu6666"}' --version 2020-12-09 --force

UntagResources

命令描述

解绑资源标签

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/untagresources

语法

aliyun tablestore UntagResources
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/untagresources --region cn-hangzhou --header "Content-Type=application/json" --body '{"All":false,"ResourceIds":["asg-bp1gnlr8vqatuqukwrx1"],"ResourceType":"instance","TagKeys":["app-fl-test-0"]}' --version 2020-12-09 --force

UpdateAgentStorage

命令描述

更新智能体存储

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/updateagentstorage

语法

aliyun tablestore UpdateAgentStorage
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求参数的主体信息

示例

aliyun tablestore POST /v2/openapi/updateagentstorage --region cn-hangzhou --header "Content-Type=application/json" --body '{"AgentStorageName":"agent-test","NetworkSourceACL":["TRUST_PROXY"],"NetworkTypeACL":["VPC"],"AliasName":"agent-test","Network":"VPC","AgentStorageDescription":"description_for_agent_storage"}' --version 2020-12-09 --force

UpdateAgentStoragePolicy

命令描述

修改智能体存储的访问控制策略

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/updateagentstoragepolicy

语法

aliyun tablestore UpdateAgentStoragePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/updateagentstoragepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:agentstorage/myagentstorage0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"172.16.0.1\"]}}}]}","PolicyVersion":2,"AgentStorageName":"agent-test"}' --version 2020-12-09 --force

UpdateInstance

命令描述

更新实例信息

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/updateinstance

语法

aliyun tablestore UpdateInstance
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求体参数

示例

aliyun tablestore POST /v2/openapi/updateinstance --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"instance-test","NetworkSourceACL":["TRUST_PROXY"],"NetworkTypeACL":["INTERNET"],"AliasName":"instance-test","Network":"VPC","InstanceDescription":"the_test_instance"}' --version 2020-12-09 --force

UpdateInstanceElasticVCUUpperLimit

命令描述

修改VCU模式(原预留模式)下实例的弹性上限

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/updateinstanceelasticvcuupperlimit

语法

aliyun tablestore UpdateInstanceElasticVCUUpperLimit
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求参数

示例

aliyun tablestore POST /v2/openapi/updateinstanceelasticvcuupperlimit --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"workshop-bj-ots1","ElasticVCUUpperLimit":6.0}' --version 2020-12-09 --force

UpdateInstancePolicy

命令描述

修改实例访问控制策略

contentType:application/json

HTTP 方法:POST

protocol:HTTPS

requestBodyType:json

url:/v2/openapi/updateinstancepolicy

语法

aliyun tablestore UpdateInstancePolicy
    [--body <string>]
    [options]

参数

参数

类型

必填

说明

--body

String

否

请求参数的主体信息

示例

aliyun tablestore POST /v2/openapi/updateinstancepolicy --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceName":"my-test-12345","Policy":"{\"Version\":\"1\",\"Statement\":[{\"Action\":[\"ots:0\"],\"Resource\":[\"acs:ots:0:13791xxxxxxxxxxx:instance/myinstance0\"],\"Principal\":[\"0\"],\"Effect\":\"Allow\",\"Condition\":{\"StringEquals\":{\"ots:TLSVersion\":[\"1.2\"]},\"IpAddress\":{\"acs:SourceIp\":[\"192.168.0.1\",\"172.16.0.1\"]}}}]}","PolicyVersion":2}' --version 2020-12-09 --force

全局选项

以下为 CLI 通用选项,各选项的适用范围以说明为准。

选项

说明

--cli-dry-run

使用 --cli-dry-run 在执行校验后以人类可读格式输出请求详情,跳过实际运行

--cli-input-json

使用 --cli-input-json foo.json 从 JSON 对象读取产品 API 参数,命令行显式参数覆盖文件值

--cli-output

设置宿主 CLI Help、本地错误和更新检查的输出格式(json)

--cli-query

使用 --cli-query <jmespath> 通过 JMESPath 表达式过滤输出结果

--cli-sign-version

短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名(aliyun configure set 可写入 Profile)

--language

使用 --language [en|zh] 来指定语言

--output -o

使用 --output cols=Field1,Field1 [rows=jmesPath] 使用表格方式打印输出

--profile -p

使用 --profile <profileName> 指定操作的配置集

--region

使用 --region <regionId> 来指定访问大区

--version --api-version

使用 --version <YYYY-MM-DD> 来指定访问的API版本

--yes -y

跳过安全策略的确认提示(用于非交互式/Agent 场景)