Returns the AccessKey ID associated with a raster object stored in Object Storage Service (OSS).
Prerequisites
The raster object must be stored in OSS.
Syntax
text ST_AKId(raster raster_obj)Return type: text — the AccessKey ID string associated with the raster object.
Parameters
| Parameter | Description |
|---|---|
raster_obj | The raster object to query. |
Examples
SELECT ST_AKId(rast) FROM raster_table;Expected output:
st_akid
------------------
OSS_ACCESSKEY_IDThe output is the literal AccessKey ID string stored with the raster object.
Usage notes
Use
ST_AKIdtogether with the function that updates AccessKey IDs in batch to verify the AccessKey ID before and after an update.