通过Key列表获取AccountManagement数据
功能介绍
Get the data for the specified keys.
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
POST /internal/get-by-keys
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
collection |
是 |
String |
The unique name of a data collection. region_switch 禁用region列表 |
keys |
是 |
Array of strings |
The unique key of a data. 数组长度:1 - 200 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
data_list |
Array of Data objects |
The data object. 数组长度:0 - 200 |
参数 |
参数类型 |
描述 |
---|---|---|
key |
String |
The unique key of a data. |
status |
String |
The status of a data.normal 正常存在数据,soft-deleted 软删数据,nonexistent 不存在数据 |
version |
Integer |
The version of a data. |
account_id |
String |
The unique identifier (ID) of an account. |
created_at |
String |
The created date of a data. |
updated_at |
String |
The updated date of a data. |
value |
map<string, object> |
The value of a data. |
请求示例
无
响应示例
状态码: 200
Successful.
{ "data_list" : [ { "key" : "p-0c72ca49f26142389729cb49744f546c", "status" : "normal", "version" : 1667374528187, "account_id" : "abc4fcec974c4ee88fa60d6438e49a7c", "created_at" : "2023-02-08T04:00:55.924Z", "updated_at" : "2023-02-08T04:00:55.924Z", "value" : { "id" : "p-0c72ca49f26142389729cb49744f546c", "document" : "{\"Version\":\"5.0\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"sts:agencies:assume\"]}]}" } } ] }
状态码
状态码 |
描述 |
---|---|
200 |
Successful. |
错误码
请参见错误码。