检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
支持的值: private public-read public-read-write bucket-owner-full-control 说明: 以上四个值分别对应:私有读写、公共读、公共读写、桶拥有者完全控制,四种预定义访问策略。
仅支持"internal"协议类型,"internal://cache/"为应用的私有目录,是必填字段 const sourceFile = "internal://cache/hello.txt"; // 创建ObsClient实例 const obsClient = new
为确保数据安全,“桶策略”建议选择“私有”,其他参数请根据页面提示进行配置。 单击“立即创建”,完成桶创建。 配置允许上传权限。 部门A、B的管理员用户分别在自己部门的桶中为本部门用户配置上传权限。 分别使用部门A、B的管理员用户登录控制台首页。
默认取值: true 表3 ACL预定义访问策略 常量名 说明 AccessControlList.REST_CANNED_PRIVATE 私有读写。 桶或对象的所有者拥有完全控制的权限,其他任何人都没有访问权限。
断点续传上传 ObsClient.uploadFile 对分段上传的封装和加强,解决上传大文件时由于网络不稳定或程序崩溃导致上传失败的问题。
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
指定桶的标准桶策略为私有且未设置高级桶策略。
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
仅支持"internal"协议类型,"internal://cache/"为应用的私有目录,是必填字段 const sourceFile = "internal://cache/hello.txt"; // 创建ObsClient实例 const obsClient = new
表4 OBS预定义的权限控制策略 预定义的权限控制策略 描述 private 桶或对象的所有者拥有完全控制的权限,其他任何人都没有访问权限。 public-read 设在桶上,所有人可以获取该桶内对象列表、桶内多段任务、桶的元数据。
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
means the client encountered an internal problem when attempting to communicate with OBS, for example, the client was unable to access the network
"StringLike":{"obs:prefix":["private/"]}:表示在列举桶内对象时,需要指定prefix为private/或者包含private/这一子字符串。
默认取值: true 表3 ACL预定义访问策略 常量名 说明 AccessControlList.REST_CANNED_PRIVATE 私有读写。 桶或对象的所有者拥有完全控制的权限,其他任何人都没有访问权限。
默认取值: true 表3 ACL预定义访问策略 常量名 说明 AccessControlList.REST_CANNED_PRIVATE 私有读写。 桶或对象的所有者拥有完全控制的权限,其他任何人都没有访问权限。
endPoint); String content = "Hello OBS"; obsClient.putObject("bucketname", "objectname", new ByteArrayInputStream(content.getBytes())); 上传网络流
检查网络后重试,或联系技术支持。 409 Conflict BucketAlreadyExists 请求的桶名已经存在。桶的命名空间是系统中所有用户共用的,选择一个不同的桶名再重试一次。 更换桶名。
检查网络后重试,或联系技术支持。 409 Conflict BucketAlreadyExists 请求的桶名已经存在。桶的命名空间是系统中所有用户共用的,选择一个不同的桶名再重试一次。 更换桶名。