Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARGS:
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
[tags.{index}] Tags of the Serverless Function
[private-network-id] ID of the Private Network the function is connected to.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARGS:
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
[tags.{index}] Tags of the Serverless Function
[private-network-id] ID of the Private Network the function is connected to.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ARGS:
[secret-environment-variables.{index}.key]
[secret-environment-variables.{index}.value]
[tags.{index}] Tags of the Serverless Function Namespace
[activate-vpc-integration] Activate VPC integration for the namespace.
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
Expand Down
3 changes: 3 additions & 0 deletions docs/commands/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ scw function function create [arg=value ...]
| http-option | Default: `enabled`<br />One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
| tags.{index} | | Tags of the Serverless Function |
| private-network-id | | ID of the Private Network the function is connected to. |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down Expand Up @@ -465,6 +466,7 @@ scw function function update <function-id ...> [arg=value ...]
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
| tags.{index} | | Tags of the Serverless Function |
| private-network-id | | ID of the Private Network the function is connected to. |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down Expand Up @@ -496,6 +498,7 @@ scw function namespace create [arg=value ...]
| secret-environment-variables.{index}.key | | |
| secret-environment-variables.{index}.value | | |
| tags.{index} | | Tags of the Serverless Function Namespace |
| activate-vpc-integration | | Activate VPC integration for the namespace. |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down
21 changes: 21 additions & 0 deletions internal/namespaces/function/v1beta1/function_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ func functionNamespaceCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "activate-vpc-integration",
Short: `Activate VPC integration for the namespace.`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
Expand Down Expand Up @@ -728,6 +735,13 @@ func functionFunctionCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "private-network-id",
Short: `ID of the Private Network the function is connected to.`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
Expand Down Expand Up @@ -917,6 +931,13 @@ func functionFunctionUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "private-network-id",
Short: `ID of the Private Network the function is connected to.`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
Expand Down
Loading