您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > OSS_API_XXXX1115
1目录前言.......................................................31.阿里云存储服务简介.......................................42.基本概念.................................................52.1Object.............................................................................................52.2Bucket............................................................................................52.3AccessKeyID、AccessKeySecret...............................................52.4Service...........................................................................................63.OSS功能简介.............................................73.1OSS基本功能...............................................................................73.2Object外链地址的构成规则.........................................................73.3OSS防盗链...................................................................................83.4访问日志记录(ServerAccessLogging)..........................................83.5服务器端加密编码.......................................................................114.访问控制................................................134.1用户签名验证(Authentication)................................................134.2在Head中包含签名.....................................................................134.3在URL中包含签名.....................................................................184.4Bucket权限控制...........................................................................195.开放接口规范............................................215.1公共HTTP头定义.......................................................................225.1.1公共请求头(CommonRequestHeaders)....................225.1.2公共响应头(CommonResponseHeaders)..................225.2关于Service的操作.....................................................................235.2.1GetService(ListBucket)...................................................235.3关于Bucket的操作......................................................................265.3.1DeleteBucket..................................................................265.3.2GetBucket(ListObject)..................................................285.3.3GetBucketAcl.................................................................3625.3.4PutBucket.......................................................................385.3.5PutBucketAcl.................................................................405.4关于Object操作..........................................................................425.4.1CopyObject.....................................................................425.4.2DeleteObject...................................................................465.4.3DeleteMultipleObjects...................................................475.4.4GetObject........................................................................515.4.5HeadObject.....................................................................555.4.6PutObject........................................................................575.5关于MultipartUpload的操作......................................................605.5.1InitiateMultipartUpload..................................................605.5.2UploadPart......................................................................635.5.3CompleteMultipartUpload..............................................655.5.4AbortMultipartUpload....................................................695.5.5ListMultipartUploads.....................................................705.5.6ListParts..........................................................................746.OSS的错误响应..........................................786.1OSS的错误响应格式...................................................................786.2OSS的错误码..............................................................................796.3OSS不支持分块传输编码...........................................................816.4OSS不支持的操作.......................................................................826.5OSS操作支持但参数不支持的操作............................................843前言本文档是阿里云存储服务(OSS)的开发帮助指南,描述了OSS中的基本概念、提供的服务以及可用的API。41.阿里云存储服务简介阿里云存储服务(OpenStorageService,简称OSS),是阿里云对外提供的海量,安全,低成本,高可靠的云存储服务。用户可以通过简单的REST接口,在任何时间、任何地点、任何互联网设备上进行上传和下载数据,也可以使用WEB页面对数据进行管理。同时,OSS提供Java、Python、PHP、C#语言的SDK,简化用户的编程。基于OSS,用户可以搭建出各种多媒体分享网站、网盘、个人和企业数据备份等基于大规模数据的服务。公网的OSS访问地址::控制台地址:阿里云主机通过内网域名访问OSS,会拥有比访问公网域名更快的响应时间、更高的传输速度;同时,上传、下载流量都是免费的。52.基本概念2.1Object在OSS中,用户操作的基本数据单元是Object。单个Object最大允许存储5TB的数据。Object包含key、meta和data。其中,key是Object的名字;meta是用户对该object的描述,由一系列name-value对组成;data是Object的数据。Object命名规范使用UTF-8编码长度必须在1-1023字节之间不能以“/”或者“\”字符开头2.2BucketBucket是OSS上的命名空间,也是计费、权限控制、日志记录等高级功能的管理实体;Bucket名称在整个OSS服务中具有全局唯一性,且不能修改;存储在OSS上的每个Object必须都包含在某个Bucket中。一个应用,例如图片分享网站,可以对应一个或多个Bucket。一个用户最多可创建10个Bucket,但每个Bucket中存放的Object的数量和大小总和没有限制,用户不需要考虑数据的可扩展性。Bucket命名规范只能包括小写字母,数字,短横线(-)必须以小写字母或者数字开头长度必须在3-63字节之间2.3AccessKeyID、AccessKeySecret用户注册OSS时,系统会给用户分配一对AccessKeyID和AccessKeySecret,6称为ID对,用于标识用户,为访问OSS做签名验证。2.4ServiceO
本文标题:OSS_API_XXXX1115
链接地址:https://www.777doc.com/doc-1085089 .html