Function

Create the edge worker metadata.

Create the edge worker metadata.

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

Request

Path parameters

fabricstring string required

The name of the fabric.

Request body

type'akamai' | 'macrometa' required

Type of the edge function.

accessTokenstring required

Akamai access token.

baseUristring required

Host name of the Akamai edge worker.

clientSecretstring required

Akamai client secret.

clientTokenstring required

Akamai client token.

resourceTierIdstring required

Resource tier identifier.

groupIdstring required

Group identifier.

hostNamestring required

Edge function hostname.

Example request

{
  "type": "akamai",
  "accessToken": "66c6c8a1d7112066cbd1905cb909bbe1e29ae730f7873b4ff35afe286",
  "baseUri": "something.akamai.com",
  "clientSecret": "86c6c8a1d7112066cbd1905cb909bbe1e29ae730f7873b4ff35afe286",
  "clientToken": "96c6c8a1d7112066cbd1905cb909bbe1e29ae730f7873b4ff35afe286",
  "resourceTierId": "201",
  "groupId": "221222",
  "hostName": "macrometa-akamai-ew.macrometa.io"
}

Response

Successfully created the edge worker metadata.

codeinteger

HTTP response code.

errorboolean

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

resultboolean

Flag for if the metadata for edge function is set successfully.

Example response

{
  "code": 201,
  "result": true
}

Changes

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