Skip to content

Commit 3b97ada

Browse files
authored
feat(vpc): filter private_networks by ids (#1489)
1 parent afa7e56 commit 3b97ada

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/vpc/v1/vpc_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ type ListPrivateNetworksRequest struct {
143143
OrganizationID *string `json:"-"`
144144
// ProjectID: the project ID on which to filter the returned private networks
145145
ProjectID *string `json:"-"`
146+
// PrivateNetworkIDs: the PrivateNetwork IDs on which to filter the returned private networks
147+
PrivateNetworkIDs []string `json:"-"`
146148
}
147149

148150
// ListPrivateNetworks: list private networks
@@ -167,6 +169,7 @@ func (s *API) ListPrivateNetworks(req *ListPrivateNetworksRequest, opts ...scw.R
167169
parameter.AddToQuery(query, "tags", req.Tags)
168170
parameter.AddToQuery(query, "organization_id", req.OrganizationID)
169171
parameter.AddToQuery(query, "project_id", req.ProjectID)
172+
parameter.AddToQuery(query, "private_network_ids", req.PrivateNetworkIDs)
170173

171174
if fmt.Sprint(req.Zone) == "" {
172175
return nil, errors.New("field Zone cannot be empty in request")

0 commit comments

Comments
 (0)