Skip to content

Commit 3df218e

Browse files
authored
feat(instance): expose ipam_id for message Server.Ip and Ip (#1957)
1 parent f84d49c commit 3df218e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,9 @@ type ServerIP struct {
11881188

11891189
// State: default value: unknown_state
11901190
State ServerIPState `json:"state"`
1191+
1192+
// IpamID: the ip_id of an IPAM ip if the ip is created from IPAM, null if not.
1193+
IpamID string `json:"ipam_id"`
11911194
}
11921195

11931196
// ServerIPv6: server i pv6.
@@ -1429,6 +1432,8 @@ type IP struct {
14291432

14301433
Prefix scw.IPNet `json:"prefix"`
14311434

1435+
IpamID string `json:"ipam_id"`
1436+
14321437
// Zone: zone to target. If none is passed will use default zone from the config.
14331438
Zone scw.Zone `json:"zone"`
14341439
}

0 commit comments

Comments
 (0)