diff --git a/cmd/scw/testdata/test-all-usage-function-function-create-usage.golden b/cmd/scw/testdata/test-all-usage-function-function-create-usage.golden index 925d7a815a..5a60902858 100644 --- a/cmd/scw/testdata/test-all-usage-function-function-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-function-function-create-usage.golden @@ -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: diff --git a/cmd/scw/testdata/test-all-usage-function-function-update-usage.golden b/cmd/scw/testdata/test-all-usage-function-function-update-usage.golden index a6847b4b4c..893f5a12db 100644 --- a/cmd/scw/testdata/test-all-usage-function-function-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-function-function-update-usage.golden @@ -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: diff --git a/cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden b/cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden index b1010b45db..2a18b0b440 100644 --- a/cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden @@ -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: diff --git a/docs/commands/function.md b/docs/commands/function.md index d0679d93a6..7026b2d632 100644 --- a/docs/commands/function.md +++ b/docs/commands/function.md @@ -305,6 +305,7 @@ scw function function create [arg=value ...] | http-option | Default: `enabled`
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`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -465,6 +466,7 @@ scw function function update [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`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -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`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/function/v1beta1/function_cli.go b/internal/namespaces/function/v1beta1/function_cli.go index 1dfa618a2e..45bbf182ff 100644 --- a/internal/namespaces/function/v1beta1/function_cli.go +++ b/internal/namespaces/function/v1beta1/function_cli.go @@ -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, @@ -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, @@ -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,