# 批量查询存储对象列表
# 调用方式: GET
# 接口地址:
https://api.freelog.com/v2/storages/objects/list
1
# URL传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
fullObjectNames | 可选 | string | 对象名称,多个使用.分隔 |
objectIds | 可选 | string | 存储对象ID,多个使用,分隔 |
projection | 可选 | string | 需要返回的字段,多个用,分隔 |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
objectId | string | 存储对象ID |
sha1 | string | 存储对象的sha1值 |
objectName | string | 对象名称 |
bucketId | string | 对象所在的bucketId |
bucketName | string | 对象所在的bucket |
resourceType | string | 对象类型 |
systemProperty | object | 对象的系统属性 |
customProperty | object | 对象的自定义属性 |
# 示例
{
"ret": 0,
"errcode": 0,
"msg": "success",
"data": [{
"objectId": "5f55a969aa39f71c50100444",
"resourceType": "image",
"sha1": "edf31f7f2d7814d45d08666c13524bc2de600cb1",
"objectName": "yuliang-a-1",
"bucketId": "5f50b0cdf0c6814af84eaa3e",
"bucketName": "yuliang",
"userId": 50021,
"uniqueKey": "92f96aa335e313b9a258d3ac3f4484ec",
"systemProperty": {
"fileSize": 85199,
"mime": "image/jpeg",
"width": 1080,
"height": 1920,
"type": "jpg"
},
"customProperty": {},
"dependencies": [],
"createDate": "2020-09-07T03:30:49.948Z",
"updateDate": "2020-09-07T03:30:49.948Z"
}, {
"objectId": "5f50b0e1f0c6814af84eaa3f",
"resourceType": "image",
"sha1": "edf31f7f2d7814d45d08666c13524bc2de600cb1",
"objectName": "2a",
"bucketId": "5f50b0cdf0c6814af84eaa3e",
"bucketName": "yuliang",
"userId": 50021,
"uniqueKey": "01f9db3d6b5e0f30fdd79e6035dccd32",
"systemProperty": {
"fileSize": 85199,
"mime": "image/jpeg",
"width": 1080,
"height": 1920,
"type": "jpg"
},
"customProperty": {
"name": "yuliang"
},
"dependencies": [{
"name": "yuliang/my-resource-1",
"type": "resource",
"versionRange": "^1.0.0"
}, {
"name": "yuliang/yuliang-a-1",
"type": "object"
}],
"createDate": "2020-09-03T09:01:21.264Z",
"updateDate": "2020-09-07T06:56:36.932Z"
}]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55