Skip to content

Commit 92def89

Browse files
authored
feat(ipam): add support for resource_id filtering in ListIPsRequest (scaleway#2341)
1 parent eced26f commit 92def89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/ipam/v1/ipam_sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ type ListIPsRequest struct {
339339
// ResourceID: resource ID to filter for. Only IPs attached to this resource will be returned.
340340
ResourceID *string `json:"-"`
341341

342+
// ResourceIDs: resource IDs to filter for. Only IPs attached to at least one of these resources will be returned.
343+
ResourceIDs []string `json:"-"`
344+
342345
// ResourceType: resource type to filter for. Only IPs attached to this type of resource will be returned.
343346
// Default value: unknown_type
344347
ResourceType ResourceType `json:"-"`
@@ -640,6 +643,7 @@ func (s *API) ListIPs(req *ListIPsRequest, opts ...scw.RequestOption) (*ListIPsR
640643
parameter.AddToQuery(query, "vpc_id", req.VpcID)
641644
parameter.AddToQuery(query, "attached", req.Attached)
642645
parameter.AddToQuery(query, "resource_id", req.ResourceID)
646+
parameter.AddToQuery(query, "resource_ids", req.ResourceIDs)
643647
parameter.AddToQuery(query, "resource_type", req.ResourceType)
644648
parameter.AddToQuery(query, "mac_address", req.MacAddress)
645649
parameter.AddToQuery(query, "tags", req.Tags)

0 commit comments

Comments
 (0)