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");ns.symlink("/123456/a.txt", "/123456/latest.txt", (err, res) => console.log(res?.statusCode));npx akamai-netstorage symlink static/app.v2.js static/app.latest.jsSignatures
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
| Name | Type | Description |
|---|---|---|
ns_target | string | Existing file the link points to. |
ns_destination | string | Path of the new link. |
Returns
SymlinkResponse
parsed response body
On the wire
| HTTP method | POST |
| X-Akamai-ACS-Action | version=1&action=symlink&target=… |
| Signed with | X-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256) |
| CLI | akamai-netstorage symlink static/app.v2.js static/app.latest.js |
Build and sign this request in the playground →
Notes
- The request goes to the link path; the target is URL-encoded into the action header.