List snapshot-derived VM inventory items
curl --request GET \
--url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/virtual-machines/{vmId}/resources \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/workspaces/{workspaceId}/virtual-machines/{vmId}/resources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{}
],
"collectionStatus": {
"workspaceId": "<string>",
"targetId": "<string>",
"snapshotTs": "2023-11-07T05:31:56Z",
"categories": {
"host": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"filesystems": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"services": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"processes": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"network": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
}
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Targets and inventory
List snapshot-derived VM inventory items
Browser callers use the session cookie. External integration callers may use the external integration client token plus x-acornops-external-user-id when the linked user and bot allowlist grant read_workspace_data.
List snapshot-derived VM inventory items
curl --request GET \
--url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/virtual-machines/{vmId}/resources \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/workspaces/{workspaceId}/virtual-machines/{vmId}/resources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{}
],
"collectionStatus": {
"workspaceId": "<string>",
"targetId": "<string>",
"snapshotTs": "2023-11-07T05:31:56Z",
"categories": {
"host": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"filesystems": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"services": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"processes": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
},
"network": {
"status": "ok",
"omittedCount": 4503599627370495,
"findingCoverage": "complete"
}
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Headers
Path Parameters
Response
VM inventory: Linux retains {items}. Windows adds collectionStatus bound to the same committed snapshot as its rows; null means no matching snapshot/read-model generation. Missing collector evidence is unknown. Omitted counts describe inventory truncation; findingCoverage applies only to volumes/services and does not imply a complete inventory.