@@ -336,6 +336,9 @@ type ListIPsRequest struct {
336336 // Attached: defines whether to filter only for IPs which are attached to a resource.
337337 Attached * bool `json:"-"`
338338
339+ // ResourceName: attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
340+ ResourceName * string `json:"-"`
341+
339342 // ResourceID: resource ID to filter for. Only IPs attached to this resource will be returned.
340343 ResourceID * string `json:"-"`
341344
@@ -346,6 +349,9 @@ type ListIPsRequest struct {
346349 // Default value: unknown_type
347350 ResourceType ResourceType `json:"-"`
348351
352+ // ResourceTypes: resource types to filter for. Only IPs attached to these types of resources will be returned.
353+ ResourceTypes []ResourceType `json:"-"`
354+
349355 // MacAddress: mAC address to filter for. Only IPs attached to a resource with this MAC address will be returned.
350356 MacAddress * string `json:"-"`
351357
@@ -358,11 +364,8 @@ type ListIPsRequest struct {
358364 // IsIPv6: defines whether to filter only for IPv4s or IPv6s.
359365 IsIPv6 * bool `json:"-"`
360366
361- // ResourceName: attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
362- ResourceName * string `json:"-"`
363-
364- // ResourceTypes: resource types to filter for. Only IPs attached to these types of resources will be returned.
365- ResourceTypes []ResourceType `json:"-"`
367+ // IPIDs: IP IDs to filter for. Only IPs with these UUIDs will be returned.
368+ IPIDs []string `json:"-"`
366369}
367370
368371// ListIPsResponse: list i ps response.
@@ -642,15 +645,16 @@ func (s *API) ListIPs(req *ListIPsRequest, opts ...scw.RequestOption) (*ListIPsR
642645 parameter .AddToQuery (query , "project_id" , req .ProjectID )
643646 parameter .AddToQuery (query , "vpc_id" , req .VpcID )
644647 parameter .AddToQuery (query , "attached" , req .Attached )
648+ parameter .AddToQuery (query , "resource_name" , req .ResourceName )
645649 parameter .AddToQuery (query , "resource_id" , req .ResourceID )
646650 parameter .AddToQuery (query , "resource_ids" , req .ResourceIDs )
647651 parameter .AddToQuery (query , "resource_type" , req .ResourceType )
652+ parameter .AddToQuery (query , "resource_types" , req .ResourceTypes )
648653 parameter .AddToQuery (query , "mac_address" , req .MacAddress )
649654 parameter .AddToQuery (query , "tags" , req .Tags )
650655 parameter .AddToQuery (query , "organization_id" , req .OrganizationID )
651656 parameter .AddToQuery (query , "is_ipv6" , req .IsIPv6 )
652- parameter .AddToQuery (query , "resource_name" , req .ResourceName )
653- parameter .AddToQuery (query , "resource_types" , req .ResourceTypes )
657+ parameter .AddToQuery (query , "ip_ids" , req .IPIDs )
654658 parameter .AddToQuery (query , "zonal" , req .Zonal )
655659 parameter .AddToQuery (query , "private_network_id" , req .PrivateNetworkID )
656660 parameter .AddToQuery (query , "subnet_id" , req .SubnetID )
0 commit comments