S-Drive 3.6 Documentation

getAccessKey

Returns the storage access key configured on the S-Drive Configuration tab.

This is an optional, supporting piece for anyone making their own direct, signed HTTP calls to the storage backend (S3) — it's one of the values S-Drive itself uses internally when building a signed request. Most integrations won't need to call this directly; see getAmazonHeaders if you just want ready-to-use signed headers instead of assembling a signature yourself.

How to call this method

global static String getAccessKey()

Return value

Returns a String — the configured storage access key.

Example

String accessKey = cg.SDriveTools.getAccessKey();