diff --git a/cmd/scw/testdata/test-all-usage-edge-services-route-rules-add-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-route-rules-add-usage.golden index bff9bf4911..05ea183f79 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-route-rules-add-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-route-rules-add-usage.golden @@ -11,7 +11,7 @@ ARGS: [route-rules.{index}.rule-http-match.path-filter.path-filter-type] Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type (unknown_path_filter | regex) [route-rules.{index}.rule-http-match.path-filter.value] Value to be matched for the HTTP URL path [route-rules.{index}.backend-stage-id] ID of the backend stage that requests matching the rule should be forwarded to - [route-rules.{index}.waf-stage-id] + [route-rules.{index}.waf-stage-id] ID of the WAF stage that requests matching the rule should be forwarded to [after-position] Add rules after the given position [before-position] Add rules before the given position diff --git a/cmd/scw/testdata/test-all-usage-edge-services-route-rules-set-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-route-rules-set-usage.golden index 97048ea8ce..8b34d5fc1e 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-route-rules-set-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-route-rules-set-usage.golden @@ -11,7 +11,7 @@ ARGS: [route-rules.{index}.rule-http-match.path-filter.path-filter-type] Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type (unknown_path_filter | regex) [route-rules.{index}.rule-http-match.path-filter.value] Value to be matched for the HTTP URL path [route-rules.{index}.backend-stage-id] ID of the backend stage that requests matching the rule should be forwarded to - [route-rules.{index}.waf-stage-id] + [route-rules.{index}.waf-stage-id] ID of the WAF stage that requests matching the rule should be forwarded to FLAGS: -h, --help help for set diff --git a/cmd/scw/testdata/test-all-usage-edge-services-route-stage-create-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-route-stage-create-usage.golden index d4351cf073..c4d44c222c 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-route-stage-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-route-stage-create-usage.golden @@ -6,8 +6,9 @@ USAGE: scw edge-services route-stage create [arg=value ...] ARGS: - pipeline-id Pipeline ID the route stage belongs to - [waf-stage-id] ID of the WAF stage HTTP requests should be forwarded to when no rules are matched + pipeline-id Pipeline ID the route stage belongs to + [waf-stage-id] ID of the WAF stage HTTP requests should be forwarded to when no rules are matched + [backend-stage-id] FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-edge-services-route-stage-update-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-route-stage-update-usage.golden index b98c1ab051..5c63aa9a40 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-route-stage-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-route-stage-update-usage.golden @@ -6,8 +6,9 @@ USAGE: scw edge-services route-stage update [arg=value ...] ARGS: - route-stage-id ID of the route stage to update - [waf-stage-id] ID of the WAF stage HTTP requests should be forwarded to when no rules are matched + route-stage-id ID of the route stage to update + [waf-stage-id] ID of the WAF stage HTTP requests should be forwarded to when no rules are matched + [backend-stage-id] FLAGS: -h, --help help for update diff --git a/docs/commands/edge-services.md b/docs/commands/edge-services.md index 49a74c2aa2..83f33b9159 100644 --- a/docs/commands/edge-services.md +++ b/docs/commands/edge-services.md @@ -643,7 +643,7 @@ scw edge-services route-rules add [arg=value ...] | route-rules.{index}.rule-http-match.path-filter.path-filter-type | One of: `unknown_path_filter`, `regex` | Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type | | route-rules.{index}.rule-http-match.path-filter.value | | Value to be matched for the HTTP URL path | | route-rules.{index}.backend-stage-id | | ID of the backend stage that requests matching the rule should be forwarded to | -| route-rules.{index}.waf-stage-id | | | +| route-rules.{index}.waf-stage-id | | ID of the WAF stage that requests matching the rule should be forwarded to | | after-position | | Add rules after the given position | | before-position | | Add rules before the given position | @@ -712,7 +712,7 @@ scw edge-services route-rules set [arg=value ...] | route-rules.{index}.rule-http-match.path-filter.path-filter-type | One of: `unknown_path_filter`, `regex` | Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type | | route-rules.{index}.rule-http-match.path-filter.value | | Value to be matched for the HTTP URL path | | route-rules.{index}.backend-stage-id | | ID of the backend stage that requests matching the rule should be forwarded to | -| route-rules.{index}.waf-stage-id | | | +| route-rules.{index}.waf-stage-id | | ID of the WAF stage that requests matching the rule should be forwarded to | @@ -738,6 +738,7 @@ scw edge-services route-stage create [arg=value ...] |------|---|-------------| | pipeline-id | Required | Pipeline ID the route stage belongs to | | waf-stage-id | | ID of the WAF stage HTTP requests should be forwarded to when no rules are matched | +| backend-stage-id | | | @@ -816,6 +817,7 @@ scw edge-services route-stage update [arg=value ...] |------|---|-------------| | route-stage-id | Required | ID of the route stage to update | | waf-stage-id | | ID of the WAF stage HTTP requests should be forwarded to when no rules are matched | +| backend-stage-id | | | diff --git a/internal/namespaces/edge_services/v1beta1/edge_services_cli.go b/internal/namespaces/edge_services/v1beta1/edge_services_cli.go index 0e5b5c4739..358f30eeee 100644 --- a/internal/namespaces/edge_services/v1beta1/edge_services_cli.go +++ b/internal/namespaces/edge_services/v1beta1/edge_services_cli.go @@ -1819,6 +1819,12 @@ func edgeServicesRouteStageCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "backend-stage-id", + Required: false, + Deprecated: false, + Positional: false, + }, }, Run: func(ctx context.Context, args any) (i any, e error) { request := args.(*edge_services.CreateRouteStageRequest) @@ -1884,6 +1890,12 @@ func edgeServicesRouteStageUpdate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "backend-stage-id", + Required: false, + Deprecated: false, + Positional: false, + }, }, Run: func(ctx context.Context, args any) (i any, e error) { request := args.(*edge_services.UpdateRouteStageRequest) @@ -2022,6 +2034,7 @@ func edgeServicesRouteRulesSet() *core.Command { }, { Name: "route-rules.{index}.waf-stage-id", + Short: `ID of the WAF stage that requests matching the rule should be forwarded to`, Required: false, Deprecated: false, Positional: false, @@ -2099,6 +2112,7 @@ func edgeServicesRouteRulesAdd() *core.Command { }, { Name: "route-rules.{index}.waf-stage-id", + Short: `ID of the WAF stage that requests matching the rule should be forwarded to`, Required: false, Deprecated: false, Positional: false,