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
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
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.