View Risk Query Results

Returns the results of a query in the Risk module. Queries are accessible only to their authors, editors, and audience members.

 

URL

{RMUrl}/api/Risk/queries/<Query>[?[page=<Page>][[&]page_size=<PageSize>]]

 

REQUEST METHOD

GET

 

URL PARAMETERS

Query: This parameter is provided in the URL and can be either the query name or the query GUID. Queries with special characters in their names cannot be run through the API.

page: Number of the page to be displayed. Valid values: 1 to the maximum number of pages. If omitted, the value 1 is used. If the value is greater than the maximum number of pages, a blank list will be returned.

page_size: Number of items displayed per page. Valid values: 1 to 1,000. If omitted, the default value of 10 is used.

 

REQUEST EXAMPLES

The first ten results of the "Asset Components" query:

{RMUrl}/api/Risk/queries/Asset Components

{RMUrl}/api/Risk/queries/cc45b704-b3d5-11e0-8b69-001ec91f4b0a

 

Results 21 through 30 (third page, size 10):

{RMUrl}/api/Risk/queries/Asset Components?page=3&page_size=10

{RMUrl}/api/Risk/queries/cc45b704-b3d5-11e0-8b69-001ec91f4b0a?page=3&page_size=10

 

SUCCESS RESPONSE

Returns a dynamic list of objects, according to the columns selected when creating the query and their respective values.

 

SUCCESS RESPONSE EXAMPLE

[

{"Name":" FEDORA-MYSQL-A - Apache 1.3.27 (Unix) ","AssetName":" FEDORA-MYSQL-A","AssetType":"Technology","IdentifiedRisk":812,

"GapIndex":0.425531914893617,"RiskIndex":0.45211581291759467,"SecurityIndex":0.54788418708240538,"ControlIndex":0.574468085106383},

{"Name":"FEDORA-MYSQL-A - End User","AssetName":"FEDORA-MYSQL-A",

"AssetType":"Technology","IdentifiedRisk":812,"GapIndex":0.6,"RiskIndex":0.59183673469387754,"SecurityIndex":0.40816326530612246,"ControlIndex":0.4},

{"Name":"FEDORA-MYSQL-A - Linux Fedora Core 5\/6","AssetName":"FEDORA-MYSQL-A","AssetType":"Technology","IdentifiedRisk":936,

"GapIndex":0.31325301204819278,"RiskIndex":0.30548302872062666,"SecurityIndex":0.6945169712793734,"ControlIndex":0.68674698795180722}

]