@@ -122,12 +122,19 @@ func (r *ScanConfigService) Edit(ctx context.Context, configID string, params Sc
122
122
}
123
123
124
124
type ScanConfigNewResponse struct {
125
- ID string `json:"id,required"`
126
- AccountID string `json:"account_id,required"`
127
- Frequency float64 `json:"frequency,required"`
128
- IPs []string `json:"ips,required"`
129
- Ports []string `json:"ports,required"`
130
- JSON scanConfigNewResponseJSON `json:"-"`
125
+ // Config ID
126
+ ID string `json:"id,required"`
127
+ AccountID string `json:"account_id,required"`
128
+ // The number of days between each scan (0 = no recurring scans).
129
+ Frequency float64 `json:"frequency,required"`
130
+ // A list of IP addresses or CIDR blocks to scan. The maximum number of total IP
131
+ // addresses allowed is 5000.
132
+ IPs []string `json:"ips,required"`
133
+ // A list of ports to scan. Allowed values:"default", "all", or a comma-separated
134
+ // list of ports or range of ports (e.g. ["1-80", "443"]). Default will scan the
135
+ // 100 most commonly open ports.
136
+ Ports []string `json:"ports,required"`
137
+ JSON scanConfigNewResponseJSON `json:"-"`
131
138
}
132
139
133
140
// scanConfigNewResponseJSON contains the JSON metadata for the struct
@@ -151,12 +158,19 @@ func (r scanConfigNewResponseJSON) RawJSON() string {
151
158
}
152
159
153
160
type ScanConfigListResponse struct {
154
- ID string `json:"id,required"`
155
- AccountID string `json:"account_id,required"`
156
- Frequency float64 `json:"frequency,required"`
157
- IPs []string `json:"ips,required"`
158
- Ports []string `json:"ports,required"`
159
- JSON scanConfigListResponseJSON `json:"-"`
161
+ // Config ID
162
+ ID string `json:"id,required"`
163
+ AccountID string `json:"account_id,required"`
164
+ // The number of days between each scan (0 = no recurring scans).
165
+ Frequency float64 `json:"frequency,required"`
166
+ // A list of IP addresses or CIDR blocks to scan. The maximum number of total IP
167
+ // addresses allowed is 5000.
168
+ IPs []string `json:"ips,required"`
169
+ // A list of ports to scan. Allowed values:"default", "all", or a comma-separated
170
+ // list of ports or range of ports (e.g. ["1-80", "443"]). Default will scan the
171
+ // 100 most commonly open ports.
172
+ Ports []string `json:"ports,required"`
173
+ JSON scanConfigListResponseJSON `json:"-"`
160
174
}
161
175
162
176
// scanConfigListResponseJSON contains the JSON metadata for the struct
@@ -182,12 +196,19 @@ func (r scanConfigListResponseJSON) RawJSON() string {
182
196
type ScanConfigDeleteResponse = interface {}
183
197
184
198
type ScanConfigEditResponse struct {
185
- ID string `json:"id,required"`
186
- AccountID string `json:"account_id,required"`
187
- Frequency float64 `json:"frequency,required"`
188
- IPs []string `json:"ips,required"`
189
- Ports []string `json:"ports,required"`
190
- JSON scanConfigEditResponseJSON `json:"-"`
199
+ // Config ID
200
+ ID string `json:"id,required"`
201
+ AccountID string `json:"account_id,required"`
202
+ // The number of days between each scan (0 = no recurring scans).
203
+ Frequency float64 `json:"frequency,required"`
204
+ // A list of IP addresses or CIDR blocks to scan. The maximum number of total IP
205
+ // addresses allowed is 5000.
206
+ IPs []string `json:"ips,required"`
207
+ // A list of ports to scan. Allowed values:"default", "all", or a comma-separated
208
+ // list of ports or range of ports (e.g. ["1-80", "443"]). Default will scan the
209
+ // 100 most commonly open ports.
210
+ Ports []string `json:"ports,required"`
211
+ JSON scanConfigEditResponseJSON `json:"-"`
191
212
}
192
213
193
214
// scanConfigEditResponseJSON contains the JSON metadata for the struct
0 commit comments