Asset Groups
Changed onCreates a new asset group. The searchCriteria field can be passed no matter what the type of the asset group is. The asset group type changes when the assets are refreshed. Dynamic asset groups constantly refreshed their membership as assets are scanned whereas static asset groups do not change membership automatically. See the <a href="#section/Responses/SearchCriteria">Search Criteria</a> for more information on using dynamic criteria.
Request
- Base URLhttps://<host>:<port>
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Response
Created
Example response
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Changes
- breaking
added required request body
- info
added the media type
application/json;charset=UTF-8for the response with the status - info
added the media type
application/json;charset=UTF-8for the response with the status - info
added the media type
application/json;charset=UTF-8for the response with the status - info
added the media type
application/json;charset=UTF-8for the response with the status - info
added the media type
application/json;charset=UTF-8for the response with the status
- breaking