Scaleway · Schema
scaleway.functions.v1beta1.Function
AICloud ComputingContainersDatabaseEuropean CloudInfrastructureKubernetesServerlessStorage
Properties
| Name | Type | Description |
|---|---|---|
| id | string | UUID of the function. |
| name | string | Name of the function. |
| namespace_id | string | UUID of the namespace the function belongs to. |
| status | string | Status of the function. |
| environment_variables | object | Environment variables of the function. |
| min_scale | integer | Minimum number of instances to scale the function to. |
| max_scale | integer | Maximum number of instances to scale the function to. |
| runtime | string | Runtime of the function. |
| memory_limit | integer | Memory limit of the function in MB. |
| cpu_limit | integer | CPU limit of the function. |
| timeout | string | Request processing time limit for the function. (in seconds) |
| handler | string | Handler to use for the function. |
| error_message | string | Error message if the function is in "error" state. |
| build_message | string | Description of the current build step. |
| privacy | string | Privacy setting of the function. |
| description | string | Description of the function. |
| domain_name | string | Domain name associated with the function. |
| secret_environment_variables | array | Secret environment variables of the function. |
| region | string | Region in which the function is deployed. |
| http_option | string | Configuration for handling of HTTP and HTTPS requests. Possible values: - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS. - enabled: Serve both HTTP and HTTPS |
| runtime_message | string | |
| sandbox | string | Execution environment of the function. |
| created_at | string | Creation date of the function. (RFC 3339 format) |
| updated_at | string | Last update date of the function. (RFC 3339 format) |
| ready_at | string | Last date when the function was successfully deployed and set to ready. (RFC 3339 format) |
| tags | array | List of tags applied to the Serverless Function. |
| private_network_id | string | ID of the Private Network the function is connected to. When connected to a Private Network, the function can access other Scaleway resources in this Private Network. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/scaleway.functions.v1beta1.Function",
"title": "scaleway.functions.v1beta1.Function",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "UUID of the function."
},
"name": {
"type": "string",
"description": "Name of the function."
},
"namespace_id": {
"type": "string",
"description": "UUID of the namespace the function belongs to."
},
"status": {
"type": "string",
"description": "Status of the function.",
"enum": [
"unknown",
"ready",
"deleting",
"error",
"locked",
"creating",
"pending",
"created"
],
"default": "unknown"
},
"environment_variables": {
"type": "object",
"description": "Environment variables of the function.",
"properties": {
"<environment_variableKey>": {
"type": "string",
"description": "Environment variables of the function."
}
},
"additionalProperties": true
},
"min_scale": {
"type": "integer",
"description": "Minimum number of instances to scale the function to.",
"format": "uint32"
},
"max_scale": {
"type": "integer",
"description": "Maximum number of instances to scale the function to.",
"format": "uint32"
},
"runtime": {
"type": "string",
"description": "Runtime of the function.",
"enum": [
"unknown_runtime",
"golang",
"python",
"python3",
"node8",
"node10",
"node14",
"node16",
"node17",
"python37",
"python38",
"python39",
"python310",
"go113",
"go117",
"go118",
"node18",
"rust165",
"go119",
"python311",
"php82",
"node19",
"go120",
"node20",
"go121",
"node22",
"python312",
"php83",
"go122",
"rust179",
"go123",
"go124",
"python313",
"rust185",
"php84"
],
"default": "unknown_runtime"
},
"memory_limit": {
"type": "integer",
"description": "Memory limit of the function in MB.",
"format": "uint32"
},
"cpu_limit": {
"type": "integer",
"description": "CPU limit of the function.",
"format": "uint32"
},
"timeout": {
"type": "string",
"description": "Request processing time limit for the function. (in seconds)",
"example": "2.5s",
"nullable": true
},
"handler": {
"type": "string",
"description": "Handler to use for the function."
},
"error_message": {
"type": "string",
"description": "Error message if the function is in \"error\" state.",
"nullable": true
},
"build_message": {
"type": "string",
"description": "Description of the current build step.",
"nullable": true
},
"privacy": {
"type": "string",
"description": "Privacy setting of the function.",
"enum": [
"unknown_privacy",
"public",
"private"
],
"default": "unknown_privacy"
},
"description": {
"type": "string",
"description": "Description of the function.",
"nullable": true
},
"domain_name": {
"type": "string",
"description": "Domain name associated with the function."
},
"secret_environment_variables": {
"type": "array",
"description": "Secret environment variables of the function.",
"items": {
"$ref": "#/components/schemas/scaleway.functions.v1beta1.SecretHashedValue"
}
},
"region": {
"type": "string",
"description": "Region in which the function is deployed."
},
"http_option": {
"type": "string",
"description": "Configuration for handling of HTTP and HTTPS requests.\nPossible values:\n - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.\n - enabled: Serve both HTTP and HTTPS traffic.",
"enum": [
"unknown_http_option",
"enabled",
"redirected"
],
"default": "enabled"
},
"runtime_message": {
"type": "string"
},
"sandbox": {
"type": "string",
"description": "Execution environment of the function.",
"enum": [
"unknown_sandbox",
"v1",
"v2"
],
"x-enum-descriptions": {
"values": {
"unknown_sandbox": "Unknown sandbox",
"v1": "Legacy sandboxing with slower cold starts. Fully supports the Linux system call interface",
"v2": "Recommended sandboxing with faster cold starts"
}
},
"default": "unknown_sandbox"
},
"created_at": {
"type": "string",
"description": "Creation date of the function. (RFC 3339 format)",
"format": "date-time",
"example": "2022-03-22T12:34:56.123456Z",
"nullable": true
},
"updated_at": {
"type": "string",
"description": "Last update date of the function. (RFC 3339 format)",
"format": "date-time",
"example": "2022-03-22T12:34:56.123456Z",
"nullable": true
},
"ready_at": {
"type": "string",
"description": "Last date when the function was successfully deployed and set to ready. (RFC 3339 format)",
"format": "date-time",
"example": "2022-03-22T12:34:56.123456Z",
"nullable": true
},
"tags": {
"type": "array",
"description": "List of tags applied to the Serverless Function.",
"items": {
"type": "string"
}
},
"private_network_id": {
"type": "string",
"description": "ID of the Private Network the function is connected to.\nWhen connected to a Private Network, the function can access other Scaleway resources in this Private Network.",
"nullable": true
}
},
"x-properties-order": [
"id",
"name",
"namespace_id",
"status",
"environment_variables",
"min_scale",
"max_scale",
"runtime",
"memory_limit",
"cpu_limit",
"timeout",
"handler",
"error_message",
"build_message",
"privacy",
"description",
"domain_name",
"secret_environment_variables",
"region",
"http_option",
"runtime_message",
"sandbox",
"created_at",
"updated_at",
"ready_at",
"tags",
"private_network_id"
]
}