Skip to main content

Scaleway Serverless Functions

@sntxrr/scaleway-serverless-functionsv2026.07.19.1· 6d agoMODELS
01README

Manage a Scaleway Serverless Function — sync state, create, update, deploy, and delete functions, and discover functions and namespaces in a region, via the Serverless Functions API with X-Auth-Token auth.

02Models1
@sntxrr/scaleway-serverless-functionsv2026.07.19.1scaleway_serverless_functions.ts

Global Arguments

ArgumentTypeDescription
secretKeystringScaleway API secret key. Wire with ${{ vault.get(scaleway, SCW_SECRET_KEY) }}.
projectIdstringScaleway Project ID that owns the function and namespace.
regionstringRegion, e.g. fr-par, nl-ams, pl-waw.
functionId?stringID of the serverless function this model manages. Optional — `create`
namespaceId?stringID of the namespace that owns the function (required for create; also
endpoint?stringOverride the API host. Defaults to https://api.scaleway.com.
fn sync()
Fetch the function's current state (GetFunction).
fn create(name: string, runtime: string, privacy: string, handler?: string, memoryLimit?: number, minScale?: number, maxScale?: number, timeout?: string, description?: string, environmentVariables?: record, secretEnvironmentVariables?: record, httpOption?: string)
Provision a new function (CreateFunction) and snapshot it.
ArgumentTypeDescription
namestringName of the new function.
runtimestringFunction runtime, e.g. node22, python312, go123.
privacystringPrivacy type: public (no auth) or private (token-gated).
handler?stringHandler entrypoint, e.g. handler.handle.
memoryLimit?numberMemory allocation in MB (e.g. 128, 256, 512).
minScale?numberMinimum number of running instances.
maxScale?numberMaximum number of running instances.
timeout?stringRequest timeout as a duration string, e.g. 300s.
description?stringDescription of the function.
environmentVariables?recordNon-secret environment variables (key/value map).
secretEnvironmentVariables?recordSecret environment variables (key/value map). Sent only to provision;
httpOption?stringHTTP option: enabled (HTTP+HTTPS) or redirected (HTTPS only).
fn update(runtime?: string, privacy?: string, handler?: string, memoryLimit?: number, minScale?: number, maxScale?: number, timeout?: string, description?: string, environmentVariables?: record, secretEnvironmentVariables?: record, httpOption?: string)
Mutate a function's mutable fields (UpdateFunction).
ArgumentTypeDescription
runtime?stringNew runtime for the function.
privacy?stringNew privacy type.
handler?stringNew handler entrypoint.
memoryLimit?numberNew memory allocation in MB.
minScale?numberNew minimum instance count.
maxScale?numberNew maximum instance count.
timeout?stringNew request timeout, e.g. 300s.
description?stringNew description.
environmentVariables?recordReplacement set of non-secret environment variables.
secretEnvironmentVariables?recordReplacement set of secret environment variables. Sent only; never stored.
httpOption?stringNew HTTP option.
fn action(op: enum)
Perform a lifecycle operation on the function. op=deploy builds and
ArgumentTypeDescription
openumLifecycle operation to perform. deploy builds and rolls out the function.
fn delete()
Deprovision the function (DeleteFunction).
fn list()
Discover all functions in the region (factory).

Resources

function(infinite)— Snapshot of the serverless function's state
namespace(infinite)— Snapshot of a function namespace's state
03Previous Versions2
2026.07.18.2
2026.07.18.1
04Stats
A
100 / 100
Downloads
0
Archive size
14.2 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels