Help Center/ Data Security Center/ API Reference/ API Description/ Document Watermarking/ Obtaining Information About All Buckets Under an Account
Updated on 2026-01-13 GMT+08:00

Obtaining Information About All Buckets Under an Account

Function

This API is used to obtain all storage buckets of the current account.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/sdg/watermark/buckets

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

limit

offset

No

Integer

offset

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

buckets

Array of Bucket objects

OBS bucket list.

total

Integer

Total number of OBS buckets.

Table 4 Bucket

Parameter

Type

Description

asset_name

String

Asset name.

bucket_location

String

Bucket location.

bucket_name

String

Bucket name.

bucket_policy

String

Bucket policy.

create_time

Long

Creation time.

id

String

Bucket ID.

is_deleted

Boolean

Deleted or not.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Obtained.

401

Unauthorized.

403

Access denied.

404

Resource not found.

Error Codes

See Error Codes.