File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
1212 "github.com/scaleway/terraform-provider-scaleway/v2/internal/locality/zonal"
1313 "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/account"
1414 "github.com/scaleway/terraform-provider-scaleway/v2/internal/types"
15+ "github.com/scaleway/terraform-provider-scaleway/v2/internal/verify"
1516)
1617
1718func DataSourceIPs () * schema.Resource {
@@ -71,7 +72,12 @@ func DataSourceIPs() *schema.Resource {
7172 Optional : true ,
7273 Description : "IP Type (ipv4, ipv6) to filter for" ,
7374 },
74- "zonal" : zonal .Schema (),
75+ "zonal" : {
76+ Type : schema .TypeString ,
77+ Description : "The zone you want to filter upon" ,
78+ Optional : true ,
79+ ValidateDiagFunc : verify .ValidateStringInSliceWithWarning (zonal .AllZones (), "zone" ),
80+ },
7581 "region" : regional .Schema (),
7682 "project_id" : account .ProjectIDSchema (),
7783 "organization_id" : account .OrganizationIDSchema (),
You can’t perform that action at this time.
0 commit comments