> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/activations/get-activations/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # List activations GET https://{hostname}/edgeworkers/v1/ids/{edgeWorkerId}/activations View the list of activations for an existing EdgeWorker based on ID. You can choose to specify the version in the request. The response filters the list of activations down by version number. Reference: https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/activations/get-activations ## Request ### Path parameters - `edgeWorkerId` (string, required) ### Query parameters - `version` (string, optional) — Unique identifier for a specific EdgeWorker version. - `activeOnNetwork` (boolean, optional) — When enabled, limits results to show only currently activate versions. Pair this with a `network` to get the version that's currently active on a specific network. Otherwise the response may include up to two versions. - `network` (enum, optional) — __Enum__ When enabled, limits results to show only versions activated on a specific network, either `STAGING` or `PRODUCTION`. Pair this with `activeOnNetwork=true` to get the version that's currently active on the specified network. - Allowed values: `STAGING`, `PRODUCTION` - `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). ## Response ### 200 This section describes a list of EdgeWorker activations. - `activations` (list of IdsEdgeWorkerIdActivationsGetResponsesContentApplicationJsonSchemaActivationsItems, required) — List of EdgeWorker activations. ## Types ### IdsEdgeWorkerIdActivationsGetResponsesContentApplicationJsonSchemaActivationsItems - `accountId` (string, required) — Identifier for the account under which the EdgeWorker was created. - `activationId` (integer, required) — Unique identifier of the activation. - `createdBy` (string, required) — Username of the person who created the EdgeWorker. - `createdTime` (datetime, required) — ISO 8601 timestamp indicating when the EdgeWorker was created. - `edgeWorkerId` (integer, required) — Unique identifier of the EdgeWorker. - `lastModifiedTime` (datetime, required) — ISO 8601 timestamp indicating when the EdgeWorker was most recently modified. - `network` (enum, required) — The network on which the version is activated, either `PRODUCTION` or `STAGING`. - Allowed values: `STAGING`, `PRODUCTION` - `status` (enum, required) — The activation status of the EdgeWorker version, either `PRESUBMIT`, `PENDING`, `IN_PROGRESS`, `COMPLETE`, `CANCELLED`, `ABORTED`, `ERROR`, `DELETED_BY_AKAMAI`, or `EXPIRED`. - Allowed values: `PRESUBMIT`, `PENDING`, `IN_PROGRESS`, `ABORTED`, `ERROR`, `COMPLETE`, `DELETED_BY_AKAMAI`, `EXPIRED`, `CANCELLED` - `version` (string, required) — Unique identifier of the version. - `note` (string, optional) — Note to specify why the version is being activated. ## Examples **Response** ```json { "activations": [ { "accountId": "A-CCT7890", "activationId": 3, "createdBy": "jkowalski", "createdTime": "2020-07-09T09:03:28Z", "edgeWorkerId": 42, "lastModifiedTime": "2020-07-09T09:04:42Z", "network": "PRODUCTION", "status": "PENDING", "version": "2", "note": "Version 2 fixes an issue detected in production." }, { "accountId": "A-CCT9012", "activationId": 1, "createdBy": "jsmith", "createdTime": "2020-07-09T08:13:54Z", "edgeWorkerId": 42, "lastModifiedTime": "2020-07-09T08:35:02Z", "network": "STAGING", "status": "IN_PROGRESS", "version": "1" }, { "accountId": "A-CCT5678", "activationId": 2, "createdBy": "adevi", "createdTime": "2020-07-10T14:23:42Z", "edgeWorkerId": 42, "lastModifiedTime": "2020-07-10T14:53:25Z", "network": "PRODUCTION", "status": "COMPLETE", "version": "2" } ] } ``` **SDK Code** ```python import requests url = "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations" querystring = {"version":"{{version}}","activeOnNetwork":"true","network":"STAGING","accountSwitchKey":"{{accountSwitchKey}}"} response = requests.get(url, params=querystring) print(response.json()) ``` ```javascript const url = 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D") .asString(); ``` ```php request('GET', 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/activations?version=%7B%7Bversion%7D%7D&activeOnNetwork=true&network=STAGING&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```