Logo
Akamai APIs API Documentation

Initialize EdgeKV

PUT https://{{host}}/edgekv/v1/initialize

You only need to initialize EdgeKV once. This operation adds the default EdgeKV namespace to Akamai's STAGING and PRODUCTION networks. It also creates a new dedicated CP code for you to track your EdgeKV usage. You won't be able to use any of the EdgeKV API operations or your EdgeKV database until initialization completes. You should only use the default namespace for experimentation and testing purposes. When deploying your EdgeKV database in production, use a new namespace with a different name. If you're part of the EdgeKV Beta for Standard TLS you can also specify a dataAccessPolicy to run this operation. The dataAccessPolicy determines if you can create new namespaces only on Akamai’s Enhanced TLS network, or both the Enhanced TLS and Standard TLS networks. By default, all existing namespaces use only the Enhanced TLS network. Contact your Akamai representative for information on how to add the Beta for Standard TLS to your EdgeKV contract.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status Created

{ "accountStatus": "INITIALIZED", "cpcode": "7651234", "dataAccessPolicy": { "allowNamespacePolicyOverride": false, "restrictDataAccess": true }, "productionStatus": "INITIALIZED", "stagingStatus": "INITIALIZED" }

Curl
curl -X PUT 'https://host/edgekv/v1/initialize?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"dataAccessPolicy":{"allowNamespacePolicyOverride":false,"restrictDataAccess":true}}'

ENDPOINTS