Skip to content

feat(cloud): add --region filter to gateway list - #291

Merged
amstuta merged 2 commits into
mainfrom
dev/mrocher/gateway-list-region-filter
Oct 8, 2026
Merged

amstuta merged 2 commits into
mainfrom
dev/mrocher/gateway-list-region-filter

Conversation

@Gandalf-Le-Dev

Copy link
Copy Markdown
Contributor

Description

ovhcloud cloud network gateway list --region <region> sends the region query parameter to the Cloud API v2 gateway list (GET /v2/publicCloud/project/{projectId}/gateway?region=<region>). The API returns only the gateways of that region. It returns 400 for a region that the API instance does not serve.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code
  • I ran go mod tidy
  • I have added tests that prove my fix is effective or that my feature works

ovhcloud cloud network gateway list --region <region> sends the region query parameter to the Cloud API v2 gateway list.

Signed-off-by: Mathis Rocher <mathis.rocher@corp.ovh.com>
@Gandalf-Le-Dev
Gandalf-Le-Dev requested a review from a team as a code owner October 5, 2026 13:10
Comment thread internal/cmd/cloud_network_gateway_test.go Outdated
The method name did not start with Test, so the suite never ran it.

Signed-off-by: Mathis Rocher <mathis.rocher@corp.ovh.com>
@amstuta
amstuta merged commit 7bdf8d6 into main Oct 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants