Skip to content

Commit 8d1cd05

Browse files
authored
feat(ipam): allow publicly to set a custom reverse on their ip (#1965)
1 parent b100ffa commit 8d1cd05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

api/ipam/v1/ipam_sdk.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ type Resource struct {
131131
Name *string `json:"name"`
132132
}
133133

134+
// Reverse: reverse.
135+
type Reverse struct {
136+
// Hostname: reverse domain name.
137+
Hostname string `json:"hostname"`
138+
139+
// Address: IP corresponding to the hostname.
140+
Address *scw.IPNet `json:"address"`
141+
}
142+
134143
// Source: source.
135144
type Source struct {
136145
// Zonal: this source is global.
@@ -175,6 +184,9 @@ type IP struct {
175184
// Tags: tags for the IP.
176185
Tags []string `json:"tags"`
177186

187+
// Reverses: array of reverses associated with the IP.
188+
Reverses []*Reverse `json:"reverses"`
189+
178190
// Region: region of the IP.
179191
Region scw.Region `json:"region"`
180192

@@ -309,6 +321,9 @@ type UpdateIPRequest struct {
309321

310322
// Tags: tags for the IP.
311323
Tags *[]string `json:"tags,omitempty"`
324+
325+
// Reverses: array of reverse domain names associated with an IP in the subnet of the current IP.
326+
Reverses []*Reverse `json:"reverses"`
312327
}
313328

314329
// This API allows you to manage IP addresses with Scaleway's IP Address Management tool.

0 commit comments

Comments
 (0)