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 = {
31
31
/**
32
32
* IPAM API.
33
33
*
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
35
35
* Management tool.
36
36
*/
37
37
export class API extends ParentAPI {
@@ -127,10 +127,12 @@ export class API extends ParentAPI {
127
127
[ 'resource_name' , request . resourceName ] ,
128
128
[ 'resource_type' , request . resourceType ] ,
129
129
[ 'tags' , request . tags ] ,
130
+ [ 'vpc_id' , request . vpcId ] ,
130
131
...Object . entries (
131
132
resolveOneOf ( [
132
133
{ param : 'zonal' , value : request . zonal } ,
133
134
{ param : 'private_network_id' , value : request . privateNetworkId } ,
135
+ { param : 'subnet_id' , value : request . subnetId } ,
134
136
] ) ,
135
137
) ,
136
138
) ,
Original file line number Diff line number Diff line change @@ -155,15 +155,26 @@ export type ListIPsRequest = {
155
155
* Zone to filter for. Only IPs that are zonal, and in this zone, will be
156
156
* returned.
157
157
*
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.
159
160
*/
160
161
zonal ?: string
161
162
/**
162
163
* Only IPs that are private, and in this Private Network, will be returned.
163
164
*
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.
165
167
*/
166
168
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
167
178
/** Defines whether to filter only for IPs which are attached to a resource. */
168
179
attached ?: boolean
169
180
/**
You can’t perform that action at this time.
0 commit comments