> 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/resource-tiers/get-resource-tiers/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # List resource tiers GET https://{hostname}/edgeworkers/v1/resource-tiers View the list of available resource tiers for a specific contract ID. The resource tier defines the resource consumption limits for an EdgeWorker ID. Reference: https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/resource-tiers/get-resource-tiers ## Request ### Query parameters - `contractId` (string, required) — Unique identifier of a contract. - `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 Describes a list of resource tiers. - `resourceTiers` (list of ResourceTiersGetResponsesContentApplicationJsonSchemaResourceTiersItems, required) — List of resource tiers. ## Types ### ResourceTiersGetResponsesContentApplicationJsonSchemaResourceTiersItems - `edgeWorkerLimits` (list of ResourceTiersGetResponsesContentApplicationJsonSchemaResourceTiersItemsEdgeWorkerLimitsItems, required) — List of EdgeWorker limits. - `resourceTierId` (integer, required) — Unique identifier of the resource tier. - `resourceTierName` (string, required) — Name of the resource tier. ### ResourceTiersGetResponsesContentApplicationJsonSchemaResourceTiersItemsEdgeWorkerLimitsItems Provides details for an EdgeWorker limit. - `limitName` (string, required) — Name of the limit. - `limitValue` (integer, required) — Value of the limit. - `limitUnit` (enum, optional) — Unit of the limit, either `BYTE`, `MILLISECOND`, or `COUNT`. - Allowed values: `BYTE`, `MILLISECOND`, `COUNT` ## Examples **Response** ```json { "resourceTiers": [ { "edgeWorkerLimits": [ { "limitName": "Maximum CPU time during initialization", "limitValue": 30, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time during initialization", "limitValue": 100, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel per EdgeWorker ID", "limitValue": 0, "limitUnit": "COUNT" }, { "limitName": "Maximum memory usage per event handler", "limitValue": 1310720, "limitUnit": "BYTE" }, { "limitName": "Maximum CPU time per event handler", "limitValue": 10, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time per event handler", "limitValue": 100, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed from a parent request", "limitValue": 0, "limitUnit": "COUNT" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel with the parent request", "limitValue": 0, "limitUnit": "COUNT" }, { "limitName": "Maximum wall time per HTTP sub-request", "limitValue": 0, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum response size per HTTP sub-request", "limitValue": 0, "limitUnit": "BYTE" }, { "limitName": "Maximum memory usage for responseProvider", "limitValue": 2097152, "limitUnit": "BYTE" }, { "limitName": "Maximum CPU time for responseProvider", "limitValue": 100, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time for responseProvider", "limitValue": 4000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed for responseProvider", "limitValue": 50, "limitUnit": "COUNT" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel for responseProvider", "limitValue": 5, "limitUnit": "COUNT" }, { "limitName": "Maximum wall time for HTTP sub-requests during the execution of the responseProvider event handler", "limitValue": 1000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum response size for HTTP sub-requests during the responseProvider event handler", "limitValue": 1048576, "limitUnit": "BYTE" } ], "resourceTierId": 100, "resourceTierName": "Basic Compute" }, { "edgeWorkerLimits": [ { "limitName": "Maximum CPU time during initialization", "limitValue": 30, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time during initialization", "limitValue": 100, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel per EdgeWorker ID", "limitValue": 0, "limitUnit": "COUNT" }, { "limitName": "Maximum memory usage per event handler", "limitValue": 1310720, "limitUnit": "BYTE" }, { "limitName": "Maximum CPU time per event handler", "limitValue": 50, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time per event handler", "limitValue": 4000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed from a parent request", "limitValue": 1, "limitUnit": "COUNT" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel with the parent request", "limitValue": 1, "limitUnit": "COUNT" }, { "limitName": "Maximum wall time per HTTP sub-request", "limitValue": 1000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum response size per HTTP sub-request", "limitValue": 1048576, "limitUnit": "BYTE" }, { "limitName": "Maximum memory usage for responseProvider", "limitValue": 2097152, "limitUnit": "BYTE" }, { "limitName": "Maximum CPU time for responseProvider", "limitValue": 100, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum wall time for responseProvider", "limitValue": 4000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum number of HTTP sub-requests allowed for responseProvider", "limitValue": 50, "limitUnit": "COUNT" }, { "limitName": "Maximum number of HTTP sub-requests allowed in parallel for responseProvider", "limitValue": 5, "limitUnit": "COUNT" }, { "limitName": "Maximum wall time for HTTP sub-requests during the execution of the responseProvider event handler", "limitValue": 1000, "limitUnit": "MILLISECOND" }, { "limitName": "Maximum response size for HTTP sub-requests during the execution of the responseProvider event handler", "limitValue": 1048576, "limitUnit": "BYTE" } ], "resourceTierId": 200, "resourceTierName": "Dynamic Compute" } ] } ``` **SDK Code** ```python import requests url = "https://{hostname}/edgeworkers/v1/resource-tiers" querystring = {"contractId":"{{contractId}}","accountSwitchKey":"{{accountSwitchKey}}"} response = requests.get(url, params=querystring) print(response.json()) ``` ```javascript const url = 'https://{hostname}/edgeworkers/v1/resource-tiers?contractId=%7B%7BcontractId%7D%7D&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/resource-tiers?contractId=%7B%7BcontractId%7D%7D&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/resource-tiers?contractId=%7B%7BcontractId%7D%7D&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/resource-tiers?contractId=%7B%7BcontractId%7D%7D&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D") .asString(); ``` ```php request('GET', 'https://{hostname}/edgeworkers/v1/resource-tiers?contractId=%7B%7BcontractId%7D%7D&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://{hostname}/edgeworkers/v1/resource-tiers?contractId=%7B%7BcontractId%7D%7D&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/resource-tiers?contractId=%7B%7BcontractId%7D%7D&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() ```