文档

存储空间

重要

本文中含有需要您注意的重要提示信息,忽略该信息可能对您的业务造成影响,请务必仔细阅读。

Store API 仅适用于托管模式。clientPDSClient 实例。options 参数是额外请求配置,详见AxiosRequestConfig

listAllStores 方法

警告

标准模式不支持

重要

托管模式支持

获取存储空间列表。 要求admin或superadmin权限。

const result = await client.listAllStores(options)

举例

const {items=[]} = await client.listAllStores()

参数说明

字段

类型

必选

说明

options

AxiosRequestConfig

其它配置项

返回

字段

类型

必选

说明

result

IListRes

返回结果

IListRes

字段

类型

必选

说明

items

IStoreItem[]

返回store列表

IStoreItem

字段

类型

必选

说明

accelerate_endpoint

string

全球加速域名。样例 : "https://oss-cn-shenzhen.aliyuncs.com/"

base_path

string

存储公共前缀。样例 : "pds-data"

bucket

string

bucket名称。样例 : "data-sz-bucket"

customized_endpoint

string

用户自定义绑定存储地址。样例 : "https://oss-cn-shenzhen.aliyuncs.com/"

domain_id

string

样例 : "string"

endpoint

string

存储访问地址。样例 : "https://oss-cn-shenzhen.aliyuncs.com/"

internal_endpoint

string

内网存储地址。样例 : "https://oss-cn-shenzhen.aliyuncs.com/"

ownership

string

存储归属,system表示系统提供,custom表示使用自己的存储。样例 : "system"

policy

string

Policy授权,system类型store会将bucket权限授予当前云账号。样例 : "string"

role_arn

string

访问Bucket的角色ARN 样例 : "acs:oss:*:*:*"

store_id

string

store ID 样例 : "cdjaksbwuiqbxuiassd"

type

string

存储类型,当前只支持OSS 样例 : "oss"

  • 本页导读 (0)
文档反馈