All Products
Search
Document Center

ApsaraDB RDS:ST_SetAKSecret

Last Updated:Mar 28, 2026

Sets the AccessKey secret used to access a raster object stored in Alibaba Cloud Object Storage Service (OSS).

Prerequisites

Before you begin, ensure that you have:

  • A raster object stored in OSS

Syntax

raster ST_SetAKSecret(raster raster_obj, text key, bool valid default true)

Parameters

ParameterDescription
raster_objThe name of the raster object.
keyThe AccessKey secret used to log on to OSS. If set to NULL, the previous AccessKey secret is retained.
validSpecifies whether to verify the validity of the logon information. Default value: true.

Examples

UPDATE raster_table
SET rast = ST_SetAKSecret(rast, 'OSS_ACCESSKEY_SECRET');