Class: SwaggerClient::VulnerabilityApi

Inherits:
Object
  • Object
show all
Defined in:
lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ VulnerabilityApi

Returns a new instance of VulnerabilityApi.



16
17
18
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 16

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



14
15
16
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 14

def api_client
  @api_client
end

Instance Method Details

#get_affected_assets(site_idte_id, opts = {}) ⇒ ReferencesWithAssetIDLink

Vulnerability Affected Assets Get the assets affected by the vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



24
25
26
27
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 24

def get_affected_assets(site_idte_id, opts = {})
  data, _status_code, _headers = get_affected_assets_with_http_info(site_idte_id, opts)
  data
end

#get_affected_assets_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithAssetIDLink, Integer, Hash)>

Vulnerability Affected Assets Get the assets affected by the vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ReferencesWithAssetIDLink, Integer, Hash)>)

    ReferencesWithAssetIDLink data, response status code and response headers



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 34

def get_affected_assets_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_affected_assets ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_affected_assets"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}/assets'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithAssetIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_affected_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_exploit(site_idte_id, opts = {}) ⇒ Exploit

Exploit Returns the details for an exploit.

Parameters:

  • id

    The identifier of the exploit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



80
81
82
83
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 80

def get_exploit(site_idte_id, opts = {})
  data, _status_code, _headers = get_exploit_with_http_info(site_idte_id, opts)
  data
end

#get_exploit_vulnerabilities(site_idte_id, opts = {}) ⇒ ReferencesWithVulnerabilityNaturalIDLink

Exploitable Vulnerabilities Returns the vulnerabilities exploitable to a exploit.

Parameters:

  • id

    The identifier of the exploit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



136
137
138
139
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 136

def get_exploit_vulnerabilities(site_idte_id, opts = {})
  data, _status_code, _headers = get_exploit_vulnerabilities_with_http_info(site_idte_id, opts)
  data
end

#get_exploit_vulnerabilities_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithVulnerabilityNaturalIDLink, Integer, Hash)>

Exploitable Vulnerabilities Returns the vulnerabilities exploitable to a exploit.

Parameters:

  • id

    The identifier of the exploit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 146

def get_exploit_vulnerabilities_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_exploit_vulnerabilities ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_exploit_vulnerabilities"
  end
  # resource path
  local_var_path = '/api/3/exploits/{id}/vulnerabilities'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithVulnerabilityNaturalIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_exploit_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_exploit_with_http_info(site_idte_id, opts = {}) ⇒ Array<(Exploit, Integer, Hash)>

Exploit Returns the details for an exploit.

Parameters:

  • id

    The identifier of the exploit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Exploit, Integer, Hash)>)

    Exploit data, response status code and response headers



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 90

def get_exploit_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_exploit ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_exploit"
  end
  # resource path
  local_var_path = '/api/3/exploits/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Exploit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_exploit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_exploits(opts = {}) ⇒ PageOfExploit

Exploits Returns all known exploits.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



194
195
196
197
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 194

def get_exploits(opts = {})
  data, _status_code, _headers = get_exploits_with_http_info(opts)
  data
end

#get_exploits_with_http_info(opts = {}) ⇒ Array<(PageOfExploit, Integer, Hash)>

Exploits Returns all known exploits.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfExploit, Integer, Hash)>)

    PageOfExploit data, response status code and response headers



206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 206

def get_exploits_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_exploits ...'
  end
  # resource path
  local_var_path = '/api/3/exploits'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfExploit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_exploits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_malware_kit(site_idte_id, opts = {}) ⇒ MalwareKit

Malware Kit Returns the details for a malware kit.

Parameters:

  • id

    The identifier of the malware kit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



251
252
253
254
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 251

def get_malware_kit(site_idte_id, opts = {})
  data, _status_code, _headers = get_malware_kit_with_http_info(site_idte_id, opts)
  data
end

#get_malware_kit_vulnerabilities(site_idte_id, opts = {}) ⇒ ReferencesWithVulnerabilityNaturalIDLink

Malware Kit Vulnerabilities Returns the vulnerabilities that are susceptible to being attacked by a malware kit.

Parameters:

  • id

    The identifier of the malware kit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



307
308
309
310
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 307

def get_malware_kit_vulnerabilities(site_idte_id, opts = {})
  data, _status_code, _headers = get_malware_kit_vulnerabilities_with_http_info(site_idte_id, opts)
  data
end

#get_malware_kit_vulnerabilities_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithVulnerabilityNaturalIDLink, Integer, Hash)>

Malware Kit Vulnerabilities Returns the vulnerabilities that are susceptible to being attacked by a malware kit.

Parameters:

  • id

    The identifier of the malware kit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 317

def get_malware_kit_vulnerabilities_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_malware_kit_vulnerabilities ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_malware_kit_vulnerabilities"
  end
  # resource path
  local_var_path = '/api/3/malware_kits/{id}/vulnerabilities'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithVulnerabilityNaturalIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_malware_kit_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_malware_kit_with_http_info(site_idte_id, opts = {}) ⇒ Array<(MalwareKit, Integer, Hash)>

Malware Kit Returns the details for a malware kit.

Parameters:

  • id

    The identifier of the malware kit.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(MalwareKit, Integer, Hash)>)

    MalwareKit data, response status code and response headers



261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 261

def get_malware_kit_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_malware_kit ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_malware_kit"
  end
  # resource path
  local_var_path = '/api/3/malware_kits/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'MalwareKit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_malware_kit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_malware_kits(opts = {}) ⇒ PageOfMalwareKit

Malware Kits Returns all known malware kits.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



365
366
367
368
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 365

def get_malware_kits(opts = {})
  data, _status_code, _headers = get_malware_kits_with_http_info(opts)
  data
end

#get_malware_kits_with_http_info(opts = {}) ⇒ Array<(PageOfMalwareKit, Integer, Hash)>

Malware Kits Returns all known malware kits.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfMalwareKit, Integer, Hash)>)

    PageOfMalwareKit data, response status code and response headers



377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 377

def get_malware_kits_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_malware_kits ...'
  end
  # resource path
  local_var_path = '/api/3/malware_kits'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfMalwareKit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_malware_kits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_prerequisite_solutions(site_idte_id, opts = {}) ⇒ ReferencesWithSolutionNaturalIDLink

Solution Prerequisites Returns the solutions that must be executed in order for a solution to resolve a vulnerability.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



422
423
424
425
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 422

def get_prerequisite_solutions(site_idte_id, opts = {})
  data, _status_code, _headers = get_prerequisite_solutions_with_http_info(site_idte_id, opts)
  data
end

#get_prerequisite_solutions_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithSolutionNaturalIDLink, Integer, Hash)>

Solution Prerequisites Returns the solutions that must be executed in order for a solution to resolve a vulnerability.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 432

def get_prerequisite_solutions_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_prerequisite_solutions ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_prerequisite_solutions"
  end
  # resource path
  local_var_path = '/api/3/solutions/{id}/prerequisites'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithSolutionNaturalIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_prerequisite_solutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_solution(site_idte_id, opts = {}) ⇒ Solution

Solution Returns the details for a solution that can remediate one or more vulnerabilities.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



478
479
480
481
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 478

def get_solution(site_idte_id, opts = {})
  data, _status_code, _headers = get_solution_with_http_info(site_idte_id, opts)
  data
end

#get_solution_with_http_info(site_idte_id, opts = {}) ⇒ Array<(Solution, Integer, Hash)>

Solution Returns the details for a solution that can remediate one or more vulnerabilities.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Solution, Integer, Hash)>)

    Solution data, response status code and response headers



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 488

def get_solution_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_solution ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_solution"
  end
  # resource path
  local_var_path = '/api/3/solutions/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Solution' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_solution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_solutions(opts = {}) ⇒ ResourcesSolution

Solutions Returns the details for all solutions.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



536
537
538
539
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 536

def get_solutions(opts = {})
  data, _status_code, _headers = get_solutions_with_http_info(opts)
  data
end

#get_solutions_with_http_info(opts = {}) ⇒ Array<(ResourcesSolution, Integer, Hash)>

Solutions Returns the details for all solutions.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(ResourcesSolution, Integer, Hash)>)

    ResourcesSolution data, response status code and response headers



548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 548

def get_solutions_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_solutions ...'
  end
  # resource path
  local_var_path = '/api/3/solutions'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ResourcesSolution' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_solutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_superseded_solutions(site_idte_id, opts = {}) ⇒ ResourcesSolution

Superseded Solutions Returns the solutions that are superseded by this solution.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



593
594
595
596
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 593

def get_superseded_solutions(site_idte_id, opts = {})
  data, _status_code, _headers = get_superseded_solutions_with_http_info(site_idte_id, opts)
  data
end

#get_superseded_solutions_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ResourcesSolution, Integer, Hash)>

Superseded Solutions Returns the solutions that are superseded by this solution.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ResourcesSolution, Integer, Hash)>)

    ResourcesSolution data, response status code and response headers



603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 603

def get_superseded_solutions_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_superseded_solutions ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_superseded_solutions"
  end
  # resource path
  local_var_path = '/api/3/solutions/{id}/supersedes'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ResourcesSolution' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_superseded_solutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_superseding_solutions(site_idte_id, opts = {}) ⇒ ResourcesSolution

Superseding Solutions Returns the solutions that supersede this solution.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :rollup (BOOLEAN)

    Whether to return only highest-level &quot;rollup&quot; superseding solutions. (default to true)

Returns:



650
651
652
653
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 650

def get_superseding_solutions(site_idte_id, opts = {})
  data, _status_code, _headers = get_superseding_solutions_with_http_info(site_idte_id, opts)
  data
end

#get_superseding_solutions_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ResourcesSolution, Integer, Hash)>

Superseding Solutions Returns the solutions that supersede this solution.

Parameters:

  • id

    The identifier of the solution.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :rollup (BOOLEAN)

    Whether to return only highest-level &quot;rollup&quot; superseding solutions.

Returns:

  • (Array<(ResourcesSolution, Integer, Hash)>)

    ResourcesSolution data, response status code and response headers



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 661

def get_superseding_solutions_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_superseding_solutions ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_superseding_solutions"
  end
  # resource path
  local_var_path = '/api/3/solutions/{id}/superseding'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'rollup'] = opts[:'rollup'] if !opts[:'rollup'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ResourcesSolution' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_superseding_solutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerabilities(opts = {}) ⇒ PageOfVulnerability

Vulnerabilities Returns all vulnerabilities that can be assessed during a scan.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



710
711
712
713
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 710

def get_vulnerabilities(opts = {})
  data, _status_code, _headers = get_vulnerabilities_with_http_info(opts)
  data
end

#get_vulnerabilities_with_http_info(opts = {}) ⇒ Array<(PageOfVulnerability, Integer, Hash)>

Vulnerabilities Returns all vulnerabilities that can be assessed during a scan.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfVulnerability, Integer, Hash)>)

    PageOfVulnerability data, response status code and response headers



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 722

def get_vulnerabilities_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerabilities ...'
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfVulnerability' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability(site_idte_id, opts = {}) ⇒ Vulnerability

Vulnerability Returns the details for a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



767
768
769
770
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 767

def get_vulnerability(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_categories(opts = {}) ⇒ PageOfVulnerabilityCategory

Categories Returns all vulnerabilities categories that can be assigned to a vulnerability. These categories group and label vulnerabilities by general purpose, affected systems, vendor, etc.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



825
826
827
828
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 825

def get_vulnerability_categories(opts = {})
  data, _status_code, _headers = get_vulnerability_categories_with_http_info(opts)
  data
end

#get_vulnerability_categories_with_http_info(opts = {}) ⇒ Array<(PageOfVulnerabilityCategory, Integer, Hash)>

Categories Returns all vulnerabilities categories that can be assigned to a vulnerability. These categories group and label vulnerabilities by general purpose, affected systems, vendor, etc.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfVulnerabilityCategory, Integer, Hash)>)

    PageOfVulnerabilityCategory data, response status code and response headers



837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 837

def get_vulnerability_categories_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_categories ...'
  end
  # resource path
  local_var_path = '/api/3/vulnerability_categories'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfVulnerabilityCategory' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_category(site_idte_id, opts = {}) ⇒ VulnerabilityCategory

Category Returns the details for a vulnerability category.

Parameters:

  • id

    The identifier of the vulnerability category.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



882
883
884
885
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 882

def get_vulnerability_category(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_category_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_category_vulnerabilities(site_idte_id, opts = {}) ⇒ ReferencesWithVulnerabilityNaturalIDLink

Category Vulnerabilities Returns hypermedia links to the vulnerabilities that are in a vulnerability category.

Parameters:

  • id

    The identifier of the vulnerability category.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



938
939
940
941
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 938

def get_vulnerability_category_vulnerabilities(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_category_vulnerabilities_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_category_vulnerabilities_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithVulnerabilityNaturalIDLink, Integer, Hash)>

Category Vulnerabilities Returns hypermedia links to the vulnerabilities that are in a vulnerability category.

Parameters:

  • id

    The identifier of the vulnerability category.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 948

def get_vulnerability_category_vulnerabilities_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_category_vulnerabilities ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_category_vulnerabilities"
  end
  # resource path
  local_var_path = '/api/3/vulnerability_categories/{id}/vulnerabilities'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithVulnerabilityNaturalIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_category_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_category_with_http_info(site_idte_id, opts = {}) ⇒ Array<(VulnerabilityCategory, Integer, Hash)>

Category Returns the details for a vulnerability category.

Parameters:

  • id

    The identifier of the vulnerability category.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(VulnerabilityCategory, Integer, Hash)>)

    VulnerabilityCategory data, response status code and response headers



892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 892

def get_vulnerability_category_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_category ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_category"
  end
  # resource path
  local_var_path = '/api/3/vulnerability_categories/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'VulnerabilityCategory' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_exploits(site_idte_id, opts = {}) ⇒ PageOfExploit

Vulnerability Exploits Returns the exploits that can be used to exploit a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



997
998
999
1000
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 997

def get_vulnerability_exploits(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_exploits_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_exploits_with_http_info(site_idte_id, opts = {}) ⇒ Array<(PageOfExploit, Integer, Hash)>

Vulnerability Exploits Returns the exploits that can be used to exploit a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfExploit, Integer, Hash)>)

    PageOfExploit data, response status code and response headers



1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1010

def get_vulnerability_exploits_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_exploits ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_exploits"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}/exploits'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfExploit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_exploits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_malware_kits(site_idte_id, opts = {}) ⇒ PageOfMalwareKit

Vulnerability Malware Kits Returns the malware kits that are known to be used to exploit the vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1062
1063
1064
1065
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1062

def get_vulnerability_malware_kits(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_malware_kits_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_malware_kits_with_http_info(site_idte_id, opts = {}) ⇒ Array<(PageOfMalwareKit, Integer, Hash)>

Vulnerability Malware Kits Returns the malware kits that are known to be used to exploit the vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfMalwareKit, Integer, Hash)>)

    PageOfMalwareKit data, response status code and response headers



1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1075

def get_vulnerability_malware_kits_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_malware_kits ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_malware_kits"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}/malware_kits'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfMalwareKit' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_malware_kits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_reference(site_idte_id, opts = {}) ⇒ VulnerabilityReference

Reference Returns an external vulnerability reference.

Parameters:

  • id

    The identifier of the vulnerability reference.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1124
1125
1126
1127
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1124

def get_vulnerability_reference(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_reference_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_reference_vulnerabilities(site_idte_id, opts = {}) ⇒ PageOfVulnerability

Reference Vulnerabilities Returns the vulnerabilities that are referenced by an external reference.

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1183
1184
1185
1186
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1183

def get_vulnerability_reference_vulnerabilities(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_reference_vulnerabilities_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_reference_vulnerabilities_with_http_info(site_idte_id, opts = {}) ⇒ Array<(PageOfVulnerability, Integer, Hash)>

Reference Vulnerabilities Returns the vulnerabilities that are referenced by an external reference.

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:

  • (Array<(PageOfVulnerability, Integer, Hash)>)

    PageOfVulnerability data, response status code and response headers



1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1196

def get_vulnerability_reference_vulnerabilities_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_reference_vulnerabilities ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_reference_vulnerabilities"
  end
  # resource path
  local_var_path = '/api/3/vulnerability_references/{id}/vulnerabilities'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfVulnerability' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_reference_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_reference_with_http_info(site_idte_id, opts = {}) ⇒ Array<(VulnerabilityReference, Integer, Hash)>

Reference Returns an external vulnerability reference.

Parameters:

  • id

    The identifier of the vulnerability reference.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(VulnerabilityReference, Integer, Hash)>)

    VulnerabilityReference data, response status code and response headers



1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1134

def get_vulnerability_reference_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_reference ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_reference"
  end
  # resource path
  local_var_path = '/api/3/vulnerability_references/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'VulnerabilityReference' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_reference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_references(opts = {}) ⇒ PageOfVulnerabilityReference

References Returns the external references that may be associated to a vulnerability.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1247
1248
1249
1250
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1247

def get_vulnerability_references(opts = {})
  data, _status_code, _headers = get_vulnerability_references_with_http_info(opts)
  data
end

#get_vulnerability_references1(site_idte_id, opts = {}) ⇒ PageOfVulnerabilityReference

Vulnerability References Returns the external references that may be associated to a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve. (default to 0)

  • :size (Integer)

    The number of records per page to retrieve. (default to 10)

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1307
1308
1309
1310
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1307

def get_vulnerability_references1(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_references1_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_references1_with_http_info(site_idte_id, opts = {}) ⇒ Array<(PageOfVulnerabilityReference, Integer, Hash)>

Vulnerability References Returns the external references that may be associated to a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1320

def get_vulnerability_references1_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_references1 ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_references1"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}/references'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfVulnerabilityReference' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_references1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_references_with_http_info(opts = {}) ⇒ Array<(PageOfVulnerabilityReference, Integer, Hash)>

References Returns the external references that may be associated to a vulnerability.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The index of the page (zero-based) to retrieve.

  • :size (Integer)

    The number of records per page to retrieve.

  • :sort (Array<String>)

    The criteria to sort the records by, in the format: &#x60;property&#x60;. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.

Returns:



1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1259

def get_vulnerability_references_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_references ...'
  end
  # resource path
  local_var_path = '/api/3/vulnerability_references'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'PageOfVulnerabilityReference' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_references\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_solutions(site_idte_id, opts = {}) ⇒ ReferencesWithSolutionNaturalIDLink

Vulnerability Solutions Returns all solutions (across all platforms) that may be used to remediate this vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1369
1370
1371
1372
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1369

def get_vulnerability_solutions(site_idte_id, opts = {})
  data, _status_code, _headers = get_vulnerability_solutions_with_http_info(site_idte_id, opts)
  data
end

#get_vulnerability_solutions_with_http_info(site_idte_id, opts = {}) ⇒ Array<(ReferencesWithSolutionNaturalIDLink, Integer, Hash)>

Vulnerability Solutions Returns all solutions (across all platforms) that may be used to remediate this vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 1379

def get_vulnerability_solutions_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability_solutions ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability_solutions"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}/solutions'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'ReferencesWithSolutionNaturalIDLink' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability_solutions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_vulnerability_with_http_info(site_idte_id, opts = {}) ⇒ Array<(Vulnerability, Integer, Hash)>

Vulnerability Returns the details for a vulnerability.

Parameters:

  • id

    The identifier of the vulnerability.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Vulnerability, Integer, Hash)>)

    Vulnerability data, response status code and response headers



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
# File 'lib/service/api/rapid7_insightvm_client/lib/swagger_client/api/vulnerability_api.rb', line 777

def get_vulnerability_with_http_info(site_idte_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VulnerabilityApi.get_vulnerability ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && site_idte_id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VulnerabilityApi.get_vulnerability"
  end
  # resource path
  local_var_path = '/api/3/vulnerabilities/{id}'.sub('{' + 'id' + '}', site_idte_id.to_s)

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  return_type = opts[:return_type] || 'Vulnerability' 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type)

  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VulnerabilityApi#get_vulnerability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end