This endpoint is currently available as a BETA. Business-critical processes should not depend on this functionality.
Retrieves all of your Function@Edge functions.
Use the cdn.origins scope to authenticate and authorize requests for the Origins API.
Platform-specific requests to retrieve all of your functions are described below.
HTTP Method | Request URI |
---|---|
GET |
HTTP Large: https://api.vdms.io/cdn/origins/v0.5/http-large/edge-functions ADN: https://api.vdms.io/cdn/origins/v0.5/adn/edge-functions |
This endpoint only takes advantage of common request headers.
Request body parameters are not required by this endpoint.
The response to the above request includes an HTTP status code, response headers, and a response body.
A status code indicates whether the request was successfully performed.
The response for this endpoint only includes standard HTTP response headers.
The response body for a successful request contains the following response elements for each function returned by this endpoint:
Name | Data Type | Description |
---|---|---|
edge_function_name |
String |
Indicates the name of the project corresponding to your function. |
edge_function_id |
String |
Indicates the function's system-defined ID. |
edge_function_hostname |
String |
Indicates the endpoint through which you may access your function. If your function has not been deployed, then this field will report PENDING. |
The response body for an unsuccessful request may contain an error element that provides additional information.
A sample JSON request is shown below.
GET https://api.vdms.io/cdn/origins/v0.5/http-large/edge-functions HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: api.vdms.io
A sample JSON response is shown below.
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Apr 2021 12:00:00 GMT
Content-Length: 416
[{ "edge_function_name": "myfunction", "edge_function_id": "0bf1ercb6-255b-15ec-8e9c-5ech615857f4", "edge_function_hostname": "https://ec-0bf1ercb6-255b-15ec-8e9c-5ech615857f4.edgefunctions.com" }, { "edge_function_name": "helloworld", "edge_function_id": "ebc18143-217e-12ec-8h9c-5ech615857f4", "edge_function_hostname": "https://ec-ebc18143-217e-12ec-8h9c-5ech615857f4.edgefunctions.com" } ]