דלג לתוכן הראשי

שירות אינטרנט (HTTP API)

Connection typehttp

מערכת שקוראים לה דרך האינטרנט: הכתובת שלה ואיך מזדהים. תהליכים יכולים לקרוא לה בשלב "קריאה ל-API".

במבט אחד​

מאפייןערך
Class namehttp
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: http}
Driverhttp
Provideshttp
Modepull (Lumen reaches out to the system)
Credential keystoken, username, password, key (kept in a Secret, never in config)

A workspace adds this connection on the Connections page or with lumen connect; credentials are kept in a Secret, never in the flow.

הגדרות​

Set under config: on the Connector.

הגדרהסוגברירת מחדלתיאור
authstring"none"The key or password is kept out of sight, apart from the connection.one of none, bearer, basic, apiKeyHeader, apiKeyQuery
authNamestring-For an API key, the header (X-Api-Key) or the address parameter (api_key) it goes in.maxLength 64
baseURLחובהstring-Where the API lives, for example https://api.example.com/v1. Calls add their path to it.minLength 8
defaultHeadersmap of string-One per line, as Name: value. Never put a key or a password here.

ה-JSON Schema המלא של ההגדרות: http.schema.json.

שימוש​

connector.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-http
namespace: tenant-acme
spec:
classRef: {name: http}
config: {}