The "mtime" action (NS4)

Incorporate the "mtime" action to change a files modification time ("touch") in an ObjectStore (NS4) storage group.

CAUTION: This action only applies to individual files. It can not be used with a directory.
POST /[CP Code]/[path]/[file.ext] HTTP/1.1 
Host: [Domain Prefix]-nsu.akamaihd.net 
X-Akamai-ACS-Action: version=1&action=mtime&mtime=[#] 
[Signature Header 1]
[Signature Header 2]

[Body]

Required variables

Variable values are as follows:

  • [CP code]: The unique CP code that represents the root directory in the applicable NetStorage Storage Group.
  • [path]: Any sub-directories off of the CP Code root, that are to serve as parents of the new directory (if applicable).
  • [file.ext]: The target filename (plus the extension, if applicable).
  • mtime=[#] - Set the “[#]” variable as the desired modification time for the target content (using UNIX epoch time).
Note: If the specified object does not exist, an HTTP 404 “Not Found” error is returned.
  • [Domain Prefix]: This is the unique domain prefix set up for the storage group during its creation. It can be viewed in the NetStorage Groups UI in Control Center.
  • [Signature Header 1] and [Signature Header 2]: Applicable signature headers.
  • [Body]: You must also include an applicable request [Body], which is the case with any “PUT” or “POST” action.