Scaleway Serverless Functions
@sntxrr/scaleway-serverless-functionsv2026.07.19.1
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.
02Models
@sntxrr/scaleway-serverless-functionsv2026.07.19.1scaleway_serverless_functions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| secretKey | string | Scaleway API secret key. Wire with ${{ vault.get(scaleway, SCW_SECRET_KEY) }}. |
| projectId | string | Scaleway Project ID that owns the function and namespace. |
| region | string | Region, e.g. fr-par, nl-ams, pl-waw. |
| functionId? | string | ID of the serverless function this model manages. Optional — `create` |
| namespaceId? | string | ID of the namespace that owns the function (required for create; also |
| endpoint? | string | Override 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.
| Argument | Type | Description |
|---|---|---|
| name | string | Name of the new function. |
| runtime | string | Function runtime, e.g. node22, python312, go123. |
| privacy | string | Privacy type: public (no auth) or private (token-gated). |
| handler? | string | Handler entrypoint, e.g. handler.handle. |
| memoryLimit? | number | Memory allocation in MB (e.g. 128, 256, 512). |
| minScale? | number | Minimum number of running instances. |
| maxScale? | number | Maximum number of running instances. |
| timeout? | string | Request timeout as a duration string, e.g. 300s. |
| description? | string | Description of the function. |
| environmentVariables? | record | Non-secret environment variables (key/value map). |
| secretEnvironmentVariables? | record | Secret environment variables (key/value map). Sent only to provision; |
| httpOption? | string | HTTP 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).
| Argument | Type | Description |
|---|---|---|
| runtime? | string | New runtime for the function. |
| privacy? | string | New privacy type. |
| handler? | string | New handler entrypoint. |
| memoryLimit? | number | New memory allocation in MB. |
| minScale? | number | New minimum instance count. |
| maxScale? | number | New maximum instance count. |
| timeout? | string | New request timeout, e.g. 300s. |
| description? | string | New description. |
| environmentVariables? | record | Replacement set of non-secret environment variables. |
| secretEnvironmentVariables? | record | Replacement set of secret environment variables. Sent only; never stored. |
| httpOption? | string | New HTTP option. |
fn action(op: enum)
Perform a lifecycle operation on the function. op=deploy builds and
| Argument | Type | Description |
|---|---|---|
| op | enum | Lifecycle 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 Versions
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
Repository
https://github.com/sntxrr/swamp-scaleway05Platforms
06Labels