Coder Social home page Coder Social logo

qiniu-manager's Introduction

qiniu-manager

七牛云资源管理 Api, 根据官方文档整理.

bucket

  1. 获取 buckets 列表
GET: /api/buckets
  1. 创建一个新的 Bucket
POST: /api/mkbucket
data: {
  name: '' // 空间名称, 仅支持字母、短划线-、下划线_、数字的组合,
  regin: '' // 存储区域,默认华东。 z0 华东 z1 华北 z2 华南 na0 北美 as0 东南亚
}
  1. 删除指定的 Bucket
GET: /api/dropbuctet/<bucketName>
  1. 获取 Bucket 空间域名
GET: /api/domainlist/<bucketName>
  1. 设置 Bucket 访问权限
POST: /api/bucketPrivate
data: {
  bucket: '',
  private: ''
}

object

  1. 资源元信息查询, 仅获取资源的 Metadata 信息
GET: /api/metainfo/<bucket>/<key>
@return {
    "code": 200,
    "msg": "操作成功!",
    "data": {
        "fsize": 222605,
        "hash": "FrzkHBy8S162RKHFaxXtpHokgrdC",
        "mimeType": "image/jpeg",
        "putTime": 15024139829990268,
        "type": 0
    }
}
  1. 更新文件生命周期, 设置指定资源的生命周期
GET: /api/deleteAfterDays/<bucket>/<key>
  1. 列举指定空间里的所有文件条目
GET: /api/files/<bucket>?marker=<marker>&limit=<limit>&prefix=<prefix>
  1. 设置指定资源的生命周期
GET: /api/lifecycle/<bucket>/<key>/<day>

qiniu-manager's People

Stargazers

qx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.