Function

Deploy the query worker to the edge worker.

Deploy the query worker to the edge worker environment.

Note: The edge worker activation is delayed while the environment is setup. Use the get edge function information API to get the activation status of the edge worker.

post/_fabric/{fabric}/_api/function/generate

Request

Path parameters

fabricstring string required

The name of the fabric.

Query parameters

type'akamai'

Type of edge worker.

namestring required

Name of the edge worker.

queryWorkerNamestring required

Name of the Macrometa query worker.

environment'STAGING' | 'PRODUCTION'

The environment in which the edge worker is activated.

Response

Successfully deployed the query worker to the edge worker.

codeinteger

HTTP response code.

errorboolean

Flag if there is an error in response. False for this response.

Example response

{
  "code": 202,
  "result": [
    {
      "message": "The edge worker will be generated and activated shortly."
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.