# 分页查看存储对象列表

# 调用方式: GET

# 接口地址:

url1: https://api.freelog.com/v2/storages/buckets/{bucketName}/objects
1

# url传入参数说明:

参数 必选 类型及范围 说明
skip 可选 int 跳过的数量.默认为0.
limit 可选 int 本次请求获取的数据条数.一般不允许超过100
bucketName 必选 string 查询全部时固定位_all, bucket名称,1-63个字符之间,数字小写字母和-组成,连接符不能位于头尾
resourceTypeCode 可选 string 资源类型编号
omitResourceType 可选 string 忽略的资源类型,与resourceType,isLoadingTypeless参数互斥
isLoadingTypeless 可选 int 是否加载无类型资源 0:否 1:是
keywords 可选 string 搜索关键字,目前只是bucketName和objectName
projection 可选 string 需要提取的属性名,多个用逗号分隔
mime 可选 string 搜索指定的mimeType, 前缀搜索. 例如搜索image 或搜索image/jpeg、image/png
extNames 可选 string 文件拓展名过滤; 比如.jpg 多个用逗号分隔

# 返回说明:

返回值字段 字段类型 字段说明
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": {
		"skip": 0,
		"limit": 10,
		"totalItem": 2,
		"dataList": [{
			"objectId": "5f55a969aa39f71c50100444",
			"resourceType": "image",
			"sha1": "edf31f7f2d7814d45d08666c13524bc2de600cb1",
			"objectName": "yuliang-a-1",
			"bucketId": "5f50b0cdf0c6814af84eaa3e",
			"bucketName": "yuliang",
			"userId": 50021,
			"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,
			"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
56
57
58
59