GET
/
functions
/
{functionName}
curl --request GET \
  --url https://api.blaxel.ai/v0/functions/{functionName} \
  --header 'Authorization: Bearer <token>'
{
  "events": [
    {
      "message": "<string>",
      "revision": "<string>",
      "status": "<string>",
      "time": "<string>",
      "type": "<string>"
    }
  ],
  "metadata": {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "displayName": "<string>",
    "labels": {},
    "name": "<string>",
    "workspace": "<string>"
  },
  "spec": {
    "configurations": {
      "key": {
        "secret": true,
        "value": "<string>"
      }
    },
    "enabled": true,
    "flavors": [
      {
        "name": "<string>",
        "type": "<string>"
      }
    ],
    "integrationConnections": [
      "<string>"
    ],
    "podTemplate": {},
    "policies": [
      "<string>"
    ],
    "privateClusters": {
      "baseUrl": "<string>",
      "enabled": true,
      "name": "<string>"
    },
    "revision": {
      "active": "<string>",
      "canary": "<string>",
      "canaryPercent": 123,
      "previousActive": "<string>",
      "traffic": 123
    },
    "runtime": {
      "args": [
        "<any>"
      ],
      "command": [
        "<any>"
      ],
      "cpu": 123,
      "endpointName": "<string>",
      "envs": [
        "<any>"
      ],
      "image": "<string>",
      "memory": 123,
      "metricPort": 123,
      "model": "<string>",
      "organization": "<string>",
      "servingPort": 123,
      "startupProbe": {},
      "type": "<string>"
    },
    "sandbox": true,
    "serverlessConfig": {
      "maxScale": 123,
      "minScale": 123,
      "timeout": 123
    },
    "description": "<string>",
    "kit": [
      {
        "description": "<string>",
        "name": "<string>",
        "parameters": [
          {
            "description": "<string>",
            "name": "<string>",
            "required": true,
            "type": "<string>"
          }
        ]
      }
    ],
    "parameters": [
      {
        "description": "<string>",
        "name": "<string>",
        "required": true,
        "type": "<string>"
      }
    ],
    "storeId": "<string>"
  },
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

functionName
string
required

Name of the function

Response

200 - application/json
successful operation

Function

events
object[]

Core events

Core event

metadata
object

Metadata

spec
object

Function specification

status
string

Function status