Scaleway logo
Serverless Functions API

A namespace is a project that allows you to group functions. Functions in the same namespace can share environment variables and access tokens, defined at the namespace level.


List all your namespaces

GET
https://api.scaleway.com
/functions/v1beta1/regions/{region}/namespaces

List all existing namespaces in the specified region.

List all your namespaces › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
pl-waw

List all your namespaces › query Parameters

page
​integer · int32

Page number.

page_size
​integer · uint32

Number of namespaces per page.

Order of the namespaces.

Enum values:
created_at_asc
created_at_desc
name_asc
name_desc
Default: created_at_asc
name
​string

Name of the namespace.

organization_id
​string

UUID of the Organization the namespace belongs to.

project_id
​string

UUID of the Project the namespace belongs to.

List all your namespaces › Responses

200
total_count
​integer · uint32

Total number of namespaces.


Create a new namespace

POST
https://api.scaleway.com
/functions/v1beta1/regions/{region}/namespaces

Create a new namespace in a specified Organization or Project.

Create a new namespace › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
pl-waw

Create a new namespace › Request Body

name
​string
environment_variables
​object | null

Environment variables of the namespace.

project_id
​string

UUID of the project in which the namespace will be created.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.Secret[]

Secret environment variables of the namespace.

tags
​string[]

Tags of the Serverless Function Namespace.

Create a new namespace › Responses

200
id
​string

UUID of the namespace.

srn
​string · pattern: ^srn://functions\.[^…

SRN of the namespace.

name
​string

Name of the namespace.

​object

Environment variables of the namespace.

organization_id
​string

UUID of the Organization the namespace belongs to.

project_id
​string

UUID of the Project the namespace belongs to.

status
​scaleway.functions.v1beta1.Namespace.Status · enum

Status of the namespace.

Enum values:
unknown
ready
deleting
error
locked
creating
pending
Default: unknown
registry_namespace_id
​string

UUID of the registry namespace.

error_message
​string | null

Error message if the namespace is in "error" state.

registry_endpoint
​string

Registry endpoint of the namespace.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.SecretHashedValue[]

Secret environment variables of the namespace.

region
​string

Region in which the namespace is located.

tags
​string[]

List of tags applied to the Serverless Function Namespace.

created_at
​string | null · date-time

Creation date of the namespace. (RFC 3339 format)

updated_at
​string | null · date-time

Last update date of the namespace. (RFC 3339 format)


Get a namespace

GET
https://api.scaleway.com
/functions/v1beta1/regions/{region}/namespaces/{namespace_id}

Get the namespace associated with the specified ID.

Get a namespace › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
pl-waw
namespace_id
​string · required

UUID of the namespace.

Get a namespace › Responses

200
id
​string

UUID of the namespace.

srn
​string · pattern: ^srn://functions\.[^…

SRN of the namespace.

name
​string

Name of the namespace.

​object

Environment variables of the namespace.

organization_id
​string

UUID of the Organization the namespace belongs to.

project_id
​string

UUID of the Project the namespace belongs to.

status
​scaleway.functions.v1beta1.Namespace.Status · enum

Status of the namespace.

Enum values:
unknown
ready
deleting
error
locked
creating
pending
Default: unknown
registry_namespace_id
​string

UUID of the registry namespace.

error_message
​string | null

Error message if the namespace is in "error" state.

registry_endpoint
​string

Registry endpoint of the namespace.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.SecretHashedValue[]

Secret environment variables of the namespace.

region
​string

Region in which the namespace is located.

tags
​string[]

List of tags applied to the Serverless Function Namespace.

created_at
​string | null · date-time

Creation date of the namespace. (RFC 3339 format)

updated_at
​string | null · date-time

Last update date of the namespace. (RFC 3339 format)


Update an existing namespace

PATCH
https://api.scaleway.com
/functions/v1beta1/regions/{region}/namespaces/{namespace_id}

Update the namespace associated with the specified ID.

Update an existing namespace › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
pl-waw
namespace_id
​string · required

UUID of the namespapce.

Update an existing namespace › Request Body

environment_variables
​object | null

Environment variables of the namespace.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.Secret[]

Secret environment variables of the namespace.

tags
​array | null

Tags of the Serverless Function Namespace.

Update an existing namespace › Responses

200
id
​string

UUID of the namespace.

srn
​string · pattern: ^srn://functions\.[^…

SRN of the namespace.

name
​string

Name of the namespace.

​object

Environment variables of the namespace.

organization_id
​string

UUID of the Organization the namespace belongs to.

project_id
​string

UUID of the Project the namespace belongs to.

status
​scaleway.functions.v1beta1.Namespace.Status · enum

Status of the namespace.

Enum values:
unknown
ready
deleting
error
locked
creating
pending
Default: unknown
registry_namespace_id
​string

UUID of the registry namespace.

error_message
​string | null

Error message if the namespace is in "error" state.

registry_endpoint
​string

Registry endpoint of the namespace.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.SecretHashedValue[]

Secret environment variables of the namespace.

region
​string

Region in which the namespace is located.

tags
​string[]

List of tags applied to the Serverless Function Namespace.

created_at
​string | null · date-time

Creation date of the namespace. (RFC 3339 format)

updated_at
​string | null · date-time

Last update date of the namespace. (RFC 3339 format)


Delete an existing namespace

DELETE
https://api.scaleway.com
/functions/v1beta1/regions/{region}/namespaces/{namespace_id}

Delete the namespace associated with the specified ID.

Delete an existing namespace › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
pl-waw
namespace_id
​string · required

UUID of the namespace.

Delete an existing namespace › Responses

200
id
​string

UUID of the namespace.

srn
​string · pattern: ^srn://functions\.[^…

SRN of the namespace.

name
​string

Name of the namespace.

​object

Environment variables of the namespace.

organization_id
​string

UUID of the Organization the namespace belongs to.

project_id
​string

UUID of the Project the namespace belongs to.

status
​scaleway.functions.v1beta1.Namespace.Status · enum

Status of the namespace.

Enum values:
unknown
ready
deleting
error
locked
creating
pending
Default: unknown
registry_namespace_id
​string

UUID of the registry namespace.

error_message
​string | null

Error message if the namespace is in "error" state.

registry_endpoint
​string

Registry endpoint of the namespace.

description
​string | null

Description of the namespace.

​scaleway.functions.v1beta1.SecretHashedValue[]

Secret environment variables of the namespace.

region
​string

Region in which the namespace is located.

tags
​string[]

List of tags applied to the Serverless Function Namespace.

created_at
​string | null · date-time

Creation date of the namespace. (RFC 3339 format)

updated_at
​string | null · date-time

Last update date of the namespace. (RFC 3339 format)