Stores

Updated at:

The Store API applies only to hosted mode. client is a PDSClient instance. The options parameter specifies additional request configurations. For more information, see AxiosRequestConfig.

listAllStores method

Warning

Not supported in standard mode.

Important

Supported in hosted mode.

Retrieves a list of stores. This operation requires admin or superadmin permissions.

const result = await client.listAllStores(options)

Example

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

Parameters

Field

Type

Required

Description

options

AxiosRequestConfig

Other configuration items.

Returns

Field

Type

Required

Description

result

IListRes

The result.

IListRes

Field

Type

Required

Description

items

IStoreItem[]

Back to the store list

IStoreItem

Field

Type

Required

Description

accelerate_endpoint

string

The Global Accelerator domain name. Example: "https://oss-cn-shenzhen.aliyuncs.com/"

base_path

string

The common prefix for storage. Example: "pds-data"

bucket

string

Yes

The bucket name. Example: "data-sz-bucket"

customized_endpoint

string

The user-defined storage address. Example: "https://oss-cn-shenzhen.aliyuncs.com/"

domain_id

string

Example: "string"

endpoint

string

Yes

The storage endpoint. Example: "https://oss-cn-shenzhen.aliyuncs.com/"

internal_endpoint

string

The internal storage address. Example: "https://oss-cn-shenzhen.aliyuncs.com/"

ownership

string

Yes

The ownership of the store. `system` indicates that the store is provided by the system. `custom` indicates that you use your own store. Example: "system"

policy

string

Yes

The policy authorization. For a store of the `system` type, bucket permissions are granted to the current Alibaba Cloud account. Example: "string"

role_arn

string

The Alibaba Cloud Resource Name (ARN) of the role used to access the bucket. Example: "acs:oss:*:*:*"

store_id

string

Yes

The store ID. Example: "cdjaksbwuiqbxuiassd"

type

string

Yes

The storage class. Currently, only Object Storage Service (OSS) is supported. Example: "oss"