Function

Modify the edge worker metadata.

Modify the edge worker metadata.

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

Request

Path parameters

fabricstring string required

The name of the fabric.

Request body

type'akamai' | 'macrometa'

Type of the edge function.

accessTokenstring

Akamai access token.

baseUristring

Host name of the Akamai edge worker.

clientSecretstring

Akamai client secret.

clientTokenstring

Akamai client token.

resourceTierIdstring

Resource tier identifier.

groupIdstring

Group identifier.

hostNamestring

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 modified 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.