Skip to content
Console

容量与文件数

GEThttps://api.bitiful.com/s4/data/:bucket/usage

查询存储桶当前的存储容量与文件数,按文件类型(Content-Type)分类返回。

容量单位是字节。total_* 等于其余五类之和。

Authentication

Authorizationstring

控制台的 API Token,直接作为 Authorization 请求头的值(不加 Bearer 前缀)。在 控制台 › API Token 获取。

Path parameters

bucketstringRequired

存储桶名称。只能查询当前账户自己的桶。

Response

存储桶的容量与文件数。
total_filesintegerOptional

文件总数。

total_bytesintegerOptional

总容量,单位字节。

image_filesintegerOptional

图片数量(Content-Type 以 image/ 开头)。

image_bytesintegerOptional

图片容量,单位字节。

video_filesintegerOptional

视频数量(Content-Type 以 video/ 开头)。

video_bytesintegerOptional

视频容量,单位字节。

audio_filesintegerOptional

音频数量(Content-Type 以 audio/ 开头)。

audio_bytesintegerOptional

音频容量,单位字节。

tmp_filesintegerOptional

分片上传产生的临时文件数量。

tmp_bytesintegerOptional

分片上传产生的临时文件容量,单位字节。

other_filesintegerOptional

其他类型的文件数量。

other_bytesintegerOptional

其他类型的文件容量,单位字节。

Errors