The "mkdir" action (NS4)

You can use the "mkdir" action to create a new explicit directory in an ObjectStore (NS4) storage group.

PUT /[CP Code]/[path]/[new_directory] HTTP/1.1 
Host: [Domain Prefix]-nsu.akamaihd.net 
X-Akamai-ACS-Action: version=1&action=mkdir 
[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).
  • [new directory]: The name for the new directory.
  • [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.