Get Lambda

Retrieves a specific lambda by ID.

Authentication

Requires X-Glue-Authentication.

Path Parameters

Parameter Type Description
lambda_id string Lambda identifier

HTTP Request

1GET /api/v0/lambdas/f1a2b3c4-d5e6-7890-abcd-ef0123456789 HTTP/1.1
2Host: api.hola.cloud
3X-Glue-Authentication: YOUR_TOKEN

Example

1curl -X GET "https://api.hola.cloud/api/v0/lambdas/f1a2b3c4-d5e6-7890-abcd-ef0123456789" \
2  -H "X-Glue-Authentication: YOUR_TOKEN"

Response

 1{
 2  "id": "f1a2b3c4-d5e6-7890-abcd-ef0123456789",
 3  "created_timestamp": 1751378400,
 4  "owner": "user_123",
 5  "project_id": "project_456",
 6  "name": "hello-world",
 7  "language": "javascript",
 8  "code": "export default (req) => ({ body: { message: \"Hello, World!\" } })",
 9  "method": "GET",
10  "path": "/hello-world"
11}

Error Codes

Code Description
401 Missing or invalid authentication
404 Lambda not found

Comments

Leave a comment