API - Risks

Getting a list of all risks

This request returns a summary of all software in the account.

GET "https://app.samanage.com/risks.xml"

curl --digest -u "username:password" -H "Accept: application/vnd.samanage.v1+xml" -X GET "https://app.samanage.com/risks.xml"


Response

<hole>
<resolved>false</resolved>
<created-at>2008-09-14T13:09:11Z</created-at>
<category>Inventory</category>
<name>Greynet: RealArcade</name>
<updated-at>2009-12-09T07:47:10Z</updated-at>
<discarded>false</discarded>
<severity>Medium</severity>
<affected-assets>
<affected-asset>
<type>SoftwareInstall</type>
<name>GORDON-PC</name>
<id>57</id>
</affected-asset>
</affected-assets>
</hole>


Example: Getting a list of risks for a computer

The following request will return all risks associated with a specific computer.

curl --digest -u "username:password" -H "Accept: application/vnd.samanage.v1+xml" -X GET "https://app.samanage.com/hardwares/12345/risks.xml