Skip to content

Commit 0744c87

Browse files
authored
feat(instance_private_nic): add ip ids attribute (#2090)
1 parent 0c350a6 commit 0744c87

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scaleway/resource_instance_private_nic.go

+10
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ func resourceScalewayInstancePrivateNIC() *schema.Resource {
5252
Optional: true,
5353
Description: "The tags associated with the private-nic",
5454
},
55+
"ip_ids": {
56+
Type: schema.TypeList,
57+
Elem: &schema.Schema{
58+
Type: schema.TypeString,
59+
},
60+
Optional: true,
61+
Description: "IPAM ip list, should be for internal use only",
62+
ForceNew: true,
63+
},
5564
"zone": zoneSchema(),
5665
},
5766
CustomizeDiff: customizeDiffLocalityCheck("server_id", "private_network_id"),
@@ -74,6 +83,7 @@ func resourceScalewayInstancePrivateNICCreate(ctx context.Context, d *schema.Res
7483
ServerID: expandZonedID(d.Get("server_id").(string)).ID,
7584
PrivateNetworkID: expandRegionalID(d.Get("private_network_id").(string)).ID,
7685
Tags: expandStrings(d.Get("tags")),
86+
IPIDs: expandStrings(d.Get("ip_ids")),
7787
}
7888

7989
privateNIC, err := instanceAPI.CreatePrivateNIC(

0 commit comments

Comments
 (0)