Function As A Service

function_as_a_service

Methods

Get Faa S Flavors -> { count, results }
get/v1/faas/flavors/{project_id}/{region_id}

Get FaaS flavors

Get Faa S Runtimes -> { runtimes }
get/v1/faas/runtimes/{project_id}/{region_id}

Get FaaS runtimes

Parameters
project_id: number

Project ID

region_id: number

Region ID

Response fields
runtimes: Record<string, Array<string>>

FaaS runtimes.

Request example
200Example

function_as_a_service.keys

Methods

Create API Key -> { created_at, functions, name, 4 more... }
post/v1/faas/keys/{project_id}/{region_id}

Create api key

Delete API Key ->
delete/v1/faas/keys/{project_id}/{region_id}/{key_name}

Delete api key

Get API Key ->
get/v1/faas/keys/{project_id}/{region_id}/{key_name}

Get api key

List API Keys -> OffsetPage<>
get/v1/faas/keys/{project_id}/{region_id}

List api keys

Change API Key ->
patch/v1/faas/keys/{project_id}/{region_id}/{key_name}

Change api key

Domain types

FaasAPIKey = { created_at, functions, name, 3 more... }

function_as_a_service.namespaces

Methods

Create Namespace -> { tasks }
post/v1/faas/namespaces/{project_id}/{region_id}

Create namespace

Delete Namespace -> { tasks }
delete/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}

Delete namespace

Get Namespace -> { created_at, functions, functions_deploy_status, 4 more... }
get/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}

Get namespace

List Namespaces -> OffsetPage<{ created_at, functions, functions_deploy_status, 4 more... }>
get/v1/faas/namespaces/{project_id}/{region_id}

List namespaces

Change Namespace -> { tasks }
patch/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}

Change namespace

Domain types

OrderByChoices = "created_at.asc" | "created_at.desc" | "name.asc" | 1 more...

function_as_a_service.namespaces.functions

Methods

Create Function -> { tasks }
post/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions

Create function

Delete Function -> { tasks }
delete/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name}

Delete function

Get Function -> { id, autoscaling, build_message, 15 more... }
get/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name}

Get function

Get Function Logs -> { logs }
get/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name}/logs

Path Parameter: project_id (int) -- Project ID region_id (int) -- Region ID namespace_name (str) -- Namespace name function_name (str) -- Function name

Query Parameter: limit (int) -- Optional. Log line limit

HTTP 200 Response: logs (LogsSchema) -- Function logs

Error Response: 404 -- Resource not found

Tags: Function-as-a-Service

Security: Bearer

List Functions -> OffsetPage<{ id, autoscaling, build_message, 15 more... }>
get/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions

List functions

Change Function -> { tasks }
patch/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name}

Change function