Updated on 2024-04-25 GMT+08:00

Middleware: OBSQuery

This system keyword is used for querying OBS content, that is, to obtain the file content based on a specified key.

Parameter

Mandatory

Type

Description

Access Key ID

Yes

String

OBS AK (This personal information must be defined as sensitive in the environment parameters.)

Secret Access ID

Yes

String

OBS SK (This personal information must be defined as sensitive in the environment parameters.)

Rest Endpoint

Yes

String

OBS endpoint

Bucket Name

Yes

String

OBS bucket name

Key

Yes

String

OBS file path

OBSQuery Response

Status: success

The file content is directly returned, for example, "Test data".

"Test data"

Status: failed

Parameter

Type

Description

result

String

Failed

errorMessage

String

Failure cause

OBSQuery Usage Example

Query data based on the key1/key2 path.

Check whether the data is obtained successfully.