Resources and operations for managing asset groups.
This document contains 22 endpoints under the Asset Group tag.
Endpoint: GET /api/3/agents
Returns the details for all agents.
Operation ID: getAgents
Name: page
Location: query
Type: integer
Required: No
Description: The index of the page (zero-based) to retrieve.
Name: size
Location: query
Type: integer
Required: No
Description: The number of records per page to retrieve.
Name: sort
Location: query
Type: array
Required: No
Description: The criteria to sort the records by, in the format: property[,ASC|DESC]. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
Description: OK
Schema: PageOf«Agent»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"page": {
"number": 6,
"size": 10,
"totalPages": 13,
"totalResources": 123
},
"resources": [
{
"addresses": [
{
"ip": "123.245.34.235",
"mac": "12:34:56:78:90:AB"
}
],
"agentId": "fe1708451f8c78c3a20a8a79818878e1",
"assessedForPolicies": false,
"assessedForVulnerabilities": true,
"configurations": [
{
"name": "<name>",
"value": "<value>"
}
],
"databases": [
{
"description": "Microsoft SQL Server",
"id": 13,
"name": "MSSQL"
}
],
"files": [
{
"attributes": [
{
"name": "<name>",
"value": "<value>"
}
],
"name": "ADMIN$",
"size": -1,
"type": "directory"
}
],
"history": [
{
"date": "2018-04-09T06:23:49Z",
"description": "",
"scanId": 12,
"type": "SCAN",
"user": "",
"version": 8,
"vulnerabilityExceptionId": ""
}
],
"hostName": "corporate-workstation-1102DC.acme.com",
"hostNames": [
{
"name": "corporate-workstation-1102DC.acme.com",
"source": "DNS"
}
],
"id": 282,
"ids": [
{
"id": "c56b2c59-4e9b-4b89-85e2-13f8146eb071",
"source": "WQL"
}
],
"ip": "182.34.74.202",
"lastAssessedForVulnerabilities": "2019-09-11T10:39:51.288Z",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"mac": "AB:12:CD:34:EF:56",
"os": "Microsoft Windows Server 2008 Enterprise Edition SP1",
"osCertainty": "0.75",
"osFingerprint": {
"architecture": "x86",
"configurations": [
{
"name": "<name>",
"value": "<value>"
}
],
"cpe": {
"edition": "enterprise",
"language": "",
"other": "",
"part": "o",
"product": "windows_server_2008",
"swEdition": "",
"targetHW": "",
"targetSW": "",
"update": "sp1",
"v2.2": "cpe:/o:microsoft:windows_server_2008:-:sp1:enterprise",
"v2.3": "cpe:2.3:o:microsoft:windows_server_2008:-:sp1:enterprise:*:*:*:*:*",
"vendor": "microsoft",
"version": "-"
},
"description": "Microsoft Windows Server 2008 Enterprise Edition SP1",
"family": "Windows",
"id": 35,
"product": "Windows Server 2008 Enterprise Edition",
"systemName": "Microsoft Windows",
"type": "Workstation",
"vendor": "Microsoft",
"version": "SP1"
},
"rawRiskScore": 31214.3,
"riskScore": 37457.16,
"services": [
{
"configurations": [
{
"name": "<name>",
"value": "<value>"
}
],
"databases": [
{
"description": "Microsoft SQL Server",
"id": 13,
"name": "MSSQL"
}
],
"family": "",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "CIFS Name Service",
"port": 139,
"product": "Samba",
"protocol": "tcp",
"userGroups": [
{
"id": 972,
"name": "Administrators"
}
],
"users": [
{
"fullName": "Smith, John",
"id": 8952,
"name": "john_smith"
}
],
"vendor": "",
"version": "3.5.11",
"webApplications": [
{
"id": 30712,
"pages": [
{
"linkType": "html-ref",
"path": "/docs/config/index.html",
"response": 200
}
],
"root": "/",
"virtualHost": "102.89.22.253"
}
]
}
],
"software": [
{
"configurations": [
{
"name": "<name>",
"value": "<value>"
}
],
"cpe": {
"edition": "enterprise",
"language": "",
"other": "",
"part": "o",
"product": "windows_server_2008",
"swEdition": "",
"targetHW": "",
"targetSW": "",
"update": "sp1",
"v2.2": "cpe:/o:microsoft:windows_server_2008:-:sp1:enterprise",
"v2.3": "cpe:2.3:o:microsoft:windows_server_2008:-:sp1:enterprise:*:*:*:*:*",
"vendor": "microsoft",
"version": "-"
},
"description": "Microsoft Outlook 2013 15.0.4867.1000",
"family": "Office 2013",
"id": 42,
"product": "Outlook 2013",
"type": "Productivity",
"vendor": "Microsoft",
"version": "15.0.4867.1000"
}
],
"type": "",
"userGroups": [
{
"id": 972,
"name": "Administrators"
}
],
"users": [
{
"fullName": "Smith, John",
"id": 8952,
"name": "john_smith"
}
],
"vulnerabilities": {
"critical": 16,
"exploits": 4,
"malwareKits": 0,
"moderate": 3,
"severe": 76,
"total": 95
}
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups
Returns all asset groups.
Operation ID: getAssetGroups
Name: type
Location: query
Type: string
Required: No
Description: The type of asset group.
Name: name
Location: query
Type: string
Required: No
Description: A search pattern for the name of the asset group. Searches are case-insensitive contains.
Name: page
Location: query
Type: integer
Required: No
Description: The index of the page (zero-based) to retrieve.
Name: size
Location: query
Type: integer
Required: No
Description: The number of records per page to retrieve.
Name: sort
Location: query
Type: array
Required: No
Description: The criteria to sort the records by, in the format: property[,ASC|DESC]. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
Description: OK
Schema: PageOf«AssetGroup»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"page": {
"number": 6,
"size": 10,
"totalPages": 13,
"totalResources": 123
},
"resources": [
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: POST /api/3/asset_groups
Creates 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 Search Criteria for more information on using dynamic criteria.
Operation ID: createAssetGroup
Name: assetGroup
Location: body
Type: AssetGroup
Required: No
Description: The details of the asset group.
JSON Example:
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Name: assetGroup
Location: body
Type: AssetGroup
Required: No
Description: The details of the asset group.
JSON Example:
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Description: Created
Schema: CreatedReference«AssetGroupID,Link»
Example JSON Response:
{
"id": 1,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups/{id}
Returns an asset group.
Operation ID: getAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: AssetGroup
Example JSON Response:
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}
Updates the details of an asset group. See the search criteria endpoint (/search_criteria) for more information about building the search criteria and examples.
Operation ID: updateAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: assetGroup
Location: body
Type: AssetGroup
Required: No
Description: The details of the asset group.
JSON Example:
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Name: assetGroup
Location: body
Type: AssetGroup
Required: No
Description: The details of the asset group.
JSON Example:
{
"assets": 768,
"description": "Assets with unacceptable high risk required immediate remediation.",
"id": 61,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "High Risk Assets",
"riskScore": 4457823.78,
"searchCriteria": {
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
},
"type": "dynamic",
"vulnerabilities": {
"critical": 16,
"moderate": 3,
"severe": 76,
"total": 95
}
}Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}
Deletes the asset group.
Operation ID: deleteAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups/{id}/assets
Returns hypermedia links for the assets that belong to an asset group.
Operation ID: getAssetGroupAssets
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: ReferencesWith«AssetID,Link»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
42
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/assets
Updates all the assets that belong to a static asset group.
Operation ID: updateAssetGroupAssets
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: assets
Location: body
Type: array
Required: No
Description: The assets to place in the asset group.
JSON Example:
[
42
]Name: assets
Location: body
Type: array
Required: No
Description: The assets to place in the asset group.
JSON Example:
[
42
]Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}/assets
Removes the assets from the given static asset group.
Operation ID: removeAllAssetsFromAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/assets/{assetId}
Adds an asset to a static asset group.
Operation ID: addAssetToAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: assetId
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}/assets/{assetId}
Removes an asset from an asset group.
Operation ID: removeAssetFromAssetGroup
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: assetId
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups/{id}/search_criteria
Returns the search criteria of a dynamic asset group.For a reference of valid search criteria input see the Asset Search resource.
Operation ID: getAssetGroupSearchCriteria
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: SearchCriteria
Example JSON Response:
{
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/search_criteria
Updates the search criteria of a dynamic asset group. For a reference of valid search criteria input see the Asset Search resource.
Operation ID: setAssetGroupSearchCriteria
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: criteria
Location: body
Type: SearchCriteria
Required: No
Description: The search criteria specification.
JSON Example:
{
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
}Name: criteria
Location: body
Type: SearchCriteria
Required: No
Description: The search criteria specification.
JSON Example:
{
"filters": [
{
"field": "",
"lower": {},
"operator": "",
"upper": {},
"value": {},
"values": [
{}
]
}
],
"match": "all"
}Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups/{id}/tags
Returns the tags assigned to an asset group.
Operation ID: getAssetGroupTags
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: ReferencesWith«TagID,Link»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
42
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/tags
Updates the tags of an asset group.
Operation ID: setAssetGroupTags
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: tags
Location: body
Type: array
Required: No
Description: The tags to associate to the asset group.
JSON Example:
[
42
]Name: tags
Location: body
Type: array
Required: No
Description: The tags to associate to the asset group.
JSON Example:
[
42
]Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}/tags
Removes all tag associations from the asset group.
Operation ID: removeAllAssetGroupTags
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/tags/{tagId}
Adds a tag to an asset group.
Operation ID: addAssetGroupTag
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: tagId
Location: path
Type: integer
Required: Yes
Description: The identifier of the tag.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}/tags/{tagId}
Removes a tag from an asset group.
Operation ID: removeAssetGroupTag
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: tagId
Location: path
Type: integer
Required: Yes
Description: The identifier of the tag.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/asset_groups/{id}/users
Returns hypermedia links for the users with access to this asset group.
Operation ID: getAssetGroupUsers
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Description: OK
Schema: ReferencesWith«UserID,Link»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
42
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/users
Grants users with sufficient privileges access to an asset group.
Operation ID: setAssetGroupUsers
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: users
Location: body
Type: array
Required: No
Description: The users to grant access to the asset group.
JSON Example:
[
42
]Name: users
Location: body
Type: array
Required: No
Description: The users to grant access to the asset group.
JSON Example:
[
42
]Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/asset_groups/{id}/users/{userId}
Grants a user with sufficient privileges access to the asset group.
Operation ID: addAssetGroupUser
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: userId
Location: path
Type: integer
Required: Yes
Description: The identifier of the user.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/asset_groups/{id}/users/{userId}
Removes a user's access from an asset group.
Operation ID: removeAssetGroupUser
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the asset group.
Name: userId
Location: path
Type: integer
Required: Yes
Description: The identifier of the user.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8