NetStorageKit-Node icon indicating copy to clipboard operation
NetStorageKit-Node copied to clipboard

How to get hostname, keyName, key and cpCode?

Open SharkBaby opened this issue 6 years ago • 2 comments

when I access to Akamai control center, I only have client_secret , host, access_token and client_token, May I know how to get hostname, keyname, key and cpCode ? image

SharkBaby avatar Nov 28 '19 03:11 SharkBaby

Hi @SharkBaby,

The NetStorage content management API is a little bit older than the standard OPEN API model, and uses its own authentication. (If you're looking for the API for managing storage groups - provisioning and administering NetStorage - this is not the correct library.)

In Akamai Control Center, you should go to NetStorage > Upload Accounts, create an upload account if required, and enable the HTTP API authentication. This will give you the key. The hostname is xxx-nsu.akamaihd.net The keyname is the id of the upload account.

Each NetStorage storage group can have multiple upload directories, adding an upload directory will also add a CP Code (the upload directory name will be the CP Code).

Hope that helps!

ynohat avatar Dec 15 '19 16:12 ynohat

Hi @ynohat can you point me to correct library to manage netstorage via Java code?

MilindKhairnar avatar Mar 25 '21 00:03 MilindKhairnar