写点什么

【TcaplusDB 知识库】如何查看按游戏区屏蔽备份

作者:tcaplus
  • 2022 年 4 月 15 日
  • 本文字数:1346 字

    阅读完需:约 4 分钟

【TcaplusDB知识库】如何查看按游戏区屏蔽备份

【TcaplusDB 知识库】如何查看游戏区屏蔽备份

每次允许构造一个 zone 的表的数据。


请求地址


POSThttp://OmsAddress/app/newoms.php/webservice/oamp/table-data/make?cmd=10011&ip-type=webservicerest&access-token=AccessTokenVal
复制代码


POST 请求参数说明


Data 参数

使用 json 格式表示记录相关信息,示例如下:


{    "setId": 126,    "tableInfoList": {        "2-3-add_table1": {            "AppID": 2,            "ZoneID": 3,            "TableName": "add_table1",            "ShardNun": 1,            "ShardList": [                1            ]        },        "2-3-add_table2": {            "AppID": 2,            "ZoneID": 3,            "TableName": "add_table2",            "ShardNum": 1,            "ShardList": [                6            ]        } //表的shard全部构造的时候,ShardList = ["All"]    },    "ipList":"1.1.1.1 tcaplus tcaplus",    "engineBackupDate":"2018-03-07",    "backType":1,"maxConcurrentActionNum":10} //注:tableInfoList中的key格式为:{app_id}-{zone_id}-{table_name}
复制代码

返回语法

返回参数说明

  1. 返回状态码不为 200 时,表示失败,返回数据为构造表数据失败的信息

  2. 返回状态码为 200,表示表数据构造创建成功,返回的数据结构如下:


请求示例

通过 curl 方法发起请求

命令中的红色部分是需要用户自行填写的参数,请参阅[url 中 GET 参数说明](https://tcaplusdb.tencent.com/UserGuide/06TcaplusDB Webservice API/06 数据备份/36 生成表数据构造的事务[TableDataMake].html#getParamDesc)


curl -H "Content-type: application/json" -X "POST" -d '{"setId": 126,"tableInfoList": {"2-3-add_table1": {"AppID": 2,"ZoneID": 3,"TableName": "add_table1","ShardNun": 1,"ShardList": [1]},"2-3-add_table2": {"AppID": 2,"ZoneID": 3,"TableName": "add_table2","ShardNum": 1,"ShardList": [6]} //表的 shard 全部构造的时候,ShardList = ["All"]},"ipList":"1.1.1.1 tcaplus tcaplus","engineBackupDate":"2018-03-07","backType":1,"maxConcurrentActionNum":10}//注:tableInfoList 中的 key 格式为:{app_id}-{zone_id}-{table_name}' http://omsaddress/app/newoms.php/webservice/oamp/table-data/make?cmd=10011&ip-type=webservicerest&access-token=<access-token>

返回示例

成功返回示例

http 请求的 Status=200


{    "set_id": "126",    "TransId": 108,    "username": "username"}
复制代码

错误返回

http 请求的 Status!=200


{    "name": "Unauthorized",    "message": "You are requesting with an invalid credential.",    "code": 0,    "status": 401,    "type": "yii\\web UnauthorizedHttpException"}{    "Error": [        "The Ulog retraction time point must be greater than the cold backup date"    ]}
复制代码





TcaplusDB 是腾讯出品的分布式 NoSQL 数据库,存储和调度的代码完全自研。具备缓存+落地融合架构、PB 级存储、毫秒级时延、无损水平扩展和复杂数据结构等特性。同时具备丰富的生态、便捷的迁移、极低的运维成本和五个九高可用等特点。客户覆盖游戏、互联网、政务、金融、制造和物联网等领域。

用户头像

tcaplus

关注

还未添加个人签名 2021.03.18 加入

还未添加个人简介

评论

发布
暂无评论
【TcaplusDB知识库】如何查看按游戏区屏蔽备份_tcaplus_InfoQ写作平台