You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MacAddress: mAC address of the custom resource.
195
+
MacAddressstring`json:"mac_address"`
196
+
197
+
// Name: when the resource is in a Private Network, a DNS record is available to resolve the resource name.
198
+
Name*string`json:"name"`
199
+
}
200
+
190
201
// IP: ip.
191
202
typeIPstruct {
192
203
// ID: IP ID.
@@ -226,6 +237,18 @@ type IP struct {
226
237
Zone*scw.Zone`json:"zone"`
227
238
}
228
239
240
+
// AttachIPRequest: attach ip request.
241
+
typeAttachIPRequeststruct {
242
+
// Region: region to target. If none is passed will use default region from the config.
243
+
Region scw.Region`json:"-"`
244
+
245
+
// IPID: IP ID.
246
+
IPIDstring`json:"-"`
247
+
248
+
// Resource: custom resource to be attached to the IP.
249
+
Resource*CustomResource`json:"resource"`
250
+
}
251
+
229
252
// BookIPRequest: book ip request.
230
253
typeBookIPRequeststruct {
231
254
// Region: region to target. If none is passed will use default region from the config.
@@ -245,6 +268,18 @@ type BookIPRequest struct {
245
268
246
269
// Tags: tags for the IP.
247
270
Tags []string`json:"tags"`
271
+
272
+
// Resource: custom resource to attach to the IP being booked. An example of a custom resource is a virtual machine hosted on an Elastic Metal server, or an additional user network interface on an Instance. Do not use this for attaching IP addresses to standard Scaleway resources, as it will fail - instead, see the relevant product API for an equivalent method.
// AttachIP: Attach an existing IP from a Private Network subnet to a custom, named resource via its MAC address. An example of a custom resource is a virtual machine hosted on an Elastic Metal server, or an additional user network interface on an Instance. Do not use this method for attaching IP addresses to standard Scaleway resources as it will fail - see the relevant product API for an equivalent method.
// DetachIP: Detach a private IP from a custom resource. An example of a custom resource is a virtual machine hosted on an Elastic Metal server. Do not use this method for attaching IP addresses to standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
// MoveIP: Move an existing private IP from one custom resource (e.g. a virtual machine hosted on an Elastic Metal server) to another custom resource. This will detach it from the first resource, and attach it to the second. Do not use this method for moving IP addresses between standard Scaleway resources (e.g. Instances, Load Balancers) as it will fail - see the relevant product API for an equivalent method.
0 commit comments