Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2 KB

RemediationApi.md

File metadata and controls

59 lines (40 loc) · 2 KB

rapid7vmconsole.RemediationApi

All URIs are relative to https://localhost:3780

Method HTTP request Description
get_asset_vulnerability_solutions GET /api/3/assets/{id}/vulnerabilities/{vulnerabilityId}/solution Asset Vulnerability Solution

get_asset_vulnerability_solutions

ResourcesMatchedSolution get_asset_vulnerability_solutions(id, vulnerability_id)

Asset Vulnerability Solution

Returns the highest-superceding rollup solutions for a vulnerability on an asset. The solution(s) selected will be the most recent and cost-effective means by which the vulnerability can be remediated.

Example

from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = rapid7vmconsole.RemediationApi()
id = 789 # int | The identifier of the asset.
vulnerability_id = 'vulnerability_id_example' # str | The identifier of the vulnerability.

try:
    # Asset Vulnerability Solution
    api_response = api_instance.get_asset_vulnerability_solutions(id, vulnerability_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RemediationApi->get_asset_vulnerability_solutions: %s\n" % e)

Parameters

Name Type Description Notes
id int The identifier of the asset.
vulnerability_id str The identifier of the vulnerability.

Return type

ResourcesMatchedSolution

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json;charset=UTF-8

[Back to top] [Back to API list] [Back to Model list] [Back to README]