File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
packages/clients/src/api/ipam/v1 Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const jsonContentHeaders = {
3131/**
3232 * IPAM API.
3333 *
34- * This API allows you to manage IP addresses with Scaleway's IP Address
34+ * This API allows you to manage your Scaleway IP addresses with our IP Address
3535 * Management tool.
3636 */
3737export class API extends ParentAPI {
@@ -127,10 +127,12 @@ export class API extends ParentAPI {
127127 [ 'resource_name' , request . resourceName ] ,
128128 [ 'resource_type' , request . resourceType ] ,
129129 [ 'tags' , request . tags ] ,
130+ [ 'vpc_id' , request . vpcId ] ,
130131 ...Object . entries (
131132 resolveOneOf ( [
132133 { param : 'zonal' , value : request . zonal } ,
133134 { param : 'private_network_id' , value : request . privateNetworkId } ,
135+ { param : 'subnet_id' , value : request . subnetId } ,
134136 ] ) ,
135137 ) ,
136138 ) ,
Original file line number Diff line number Diff line change @@ -155,15 +155,26 @@ export type ListIPsRequest = {
155155 * Zone to filter for. Only IPs that are zonal, and in this zone, will be
156156 * returned.
157157 *
158- * One-of ('source'): at most one of 'zonal', 'privateNetworkId' could be set.
158+ * One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
159+ * could be set.
159160 */
160161 zonal ?: string
161162 /**
162163 * Only IPs that are private, and in this Private Network, will be returned.
163164 *
164- * One-of ('source'): at most one of 'zonal', 'privateNetworkId' could be set.
165+ * One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
166+ * could be set.
165167 */
166168 privateNetworkId ?: string
169+ /**
170+ * Only IPs inside this exact subnet will be returned.
171+ *
172+ * One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
173+ * could be set.
174+ */
175+ subnetId ?: string
176+ /** Only IPs owned by resources in this VPC will be returned. */
177+ vpcId ?: string
167178 /** Defines whether to filter only for IPs which are attached to a resource. */
168179 attached ?: boolean
169180 /**
You can’t perform that action at this time.
0 commit comments