History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
服务地址/v3/device/account/batchoperate
参数名 | 类型 | 是否必需 | 参数说明 |
operator_type | Integer | 是 | 操作类型参数,取值范围为[1,5];值对应功能说明如下: 1:Token 追加设置 account(该类型已废弃)。 2:Token 覆盖设置 account。 3:Token 删除绑定的多个 account。 4:Token 删除绑定的所有 account。 5: account 删除绑定的所有 Token。 |
account_list | Array | 否 | 账号标识集合,当 operator_type = 5 时有效,且必填每个元素包含 account,以及 account_type 字段,加上 account_type 就可以设置类型。
示例如下:
[{"account":"926@126.com"},{"account":"1527000000"},{"account":"2849249569","account_type":9}] |
token_list | Array | 否 | 设备标识集合, operator_type = 4 时有效,且必填 |
token_accounts | Array | 否 | 当 operator_type = 1、2 、3 时有效且必须每次调用最多允许设置20个 Token。每个 Token_account 由1个 Token 和1个 account_list 组成。 具体示例如下:
[{"token":"token1","account_list":[{"account":"926@126.com"},{"account":"1527000000"}],
{"token":"token2","account_list":[{"account":"926@163.com",{"account":"1527000001"}]}] |
account_type | Integer | 否 |
参数名 | 类型 | 参数说明 |
ret_code | Integer | |
err_msg | String | 错误信息 |
result | Array | 每一个 Token 或账号对应的操作状态码["0","1008006"] |
{"operator_type": 1,"token_accounts": [{"token": "token1","account_list": [{"account": "926@126.com"},{"account": "1527000000"}]},{"token": "token2","account_list": [{"account": "926@163.com"},{"account": "1527000001"}]}]}
{"operator_type": 2,"token_accounts": [{"token": "token1","account_list": [{"account": "926@126.com"},{"account": "1527000000"}]},{"token": "token2","account_list": [{"account": "926@163.com"},{"account": "1527000001"}]}]}
{"operator_type": 3,"token_accounts": [{"token": "token1","account_list": [{"account": "926@126.com"},{"account": "1527000000"}]},{"token": "token2","account_list": [{"account": "926@163.com"},{"account": "1527000001"}]}]}
{"operator_type": 4,"token_list": ["token1","token2","token3"]}
{"operator_type": 5,"account_list": [{"account": "926@126.com"},{"account": "1527000000"}]}
{"ret_code": 0,"err_msg": "NO_ERROR","result": ["0"]}
文档反馈