Quick-Start-Anleitung

Deployen Sie Ihre erste Serverless-Funktion in unter 5 Minuten. Keine Server, keine Konfiguration — nur Code.

01

Registrieren

Portal-Konto erstellen — Namespace und API-Key erhalten Sie sofort.

# Sign up at the portal — no CLI needed.
# You receive:
#   namespace : your-ns
#   API key   : sent as X-API-Key header

# Set up your environment
$ export NS="your-ns"
$ export KEY="your-api-key"
$ export API="https://fnc4.evrtng.cloud/provisioning"
02

Funktion erstellen

Erstellen Sie sie via API — eine Einzeldatei im code-Feld. Archive per URL + Builder oder OCI-Images: siehe Sprachen-Seite.

# Create a function (python)
$ curl -X POST $API/v1/namespaces/$NS/functions \
    -H "X-API-Key: $KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "hello",
      "environment": "python",
      "code": "def main(): return {'status': 200, 'body': 'Hello!'}"
    }'
201 Created
03

Trigger hinzufügen

Ein Trigger gibt der Funktion eine URL. Cron-Trigger führen sie nach Zeitplan aus.

# HTTP trigger — a URL for the function
$ curl -X POST $API/v1/namespaces/$NS/triggers \
    -H "X-API-Key: $KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "hello-http", "function": "hello",
         "type": "http", "url": "/hello",
         "method": "GET"}'
201 Created
04

Aufrufen

Ihre Produktions-URL — jeder Tenant bekommt seine eigene Subdomain mit TLS.

# Call it — your own URL, TLS included
$ curl https://$NS.fnc4.evrtng.cloud/hello \
    -H "X-API-Key: $KEY"
{"body": "Hello, World!", "status": 200}

# Cron trigger? Runs on a schedule:
#   {"type": "cron", "cron": "@every 1m"}
05

Überwachen

Aufruf-Historie und Event-Trail Ihres Kontos — Skalierung ist automatisch, Leerlauf kostet nichts.

# Invocation history
$ curl "$API/v1/namespaces/$NS/activations?limit=5" \
    -H "X-API-Key: $KEY"

# Account events (audit trail)
$ curl "$API/v1/namespaces/$NS/events" \
    -H "X-API-Key: $KEY"

Cheat Sheet

# Functions
$ curl $API/v1/namespaces/$NS/functions \
    -H "X-API-Key: $KEY"            # list
$ curl -X PUT $API/v1/namespaces/$NS/functions/hello \
    -d '{"code": "..."}'            # update
$ curl -X DELETE $API/v1/namespaces/$NS/functions/hello \
    -H "X-API-Key: $KEY"

# Triggers (http + cron)
$ curl $API/v1/namespaces/$NS/triggers \
    -d '{"type": "cron", "cron": "@every 1m"}'

# Invoke (via management API)
$ curl -X POST $API/v1/namespaces/$NS/functions/hello \
    -H "X-API-Key: $KEY"

# History + events
$ curl $API/v1/namespaces/$NS/activations?limit=5 \
    -H "X-API-Key: $KEY"
$ curl $API/v1/namespaces/$NS/events \
    -H "X-API-Key: $KEY"
API-Host
https://fnc4.evrtng.cloud