Boffin Codersts-netstorageapi-akamaiby Boffin Coders

Manage

symlink POST

Create a symlink that points to an existing file.

await ns.symlinkAsync("/123456/static/app.v2.js", "/123456/static/app.latest.js");

Signatures

symlinkAsync(ns_target: string, ns_destination: string): Promise<SymlinkResponse>
symlink(ns_target: string, ns_destination: string, callback: (err: any, res?: http.IncomingMessage, body?: SymlinkResponse) => void): void

Parameters

NameTypeDescription
ns_targetstringExisting file the link points to.
ns_destinationstringPath of the new link.

Returns

SymlinkResponse

parsed response body

On the wire

HTTP methodPOST
X-Akamai-ACS-Actionversion=1&action=symlink&target=…
Signed withX-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256)
CLIakamai-netstorage symlink static/app.v2.js static/app.latest.js

Build and sign this request in the playground →

Notes

← renamemtime →