Skip to main content

scan_finding_affected_resources

Creates, updates, deletes, gets or lists a scan_finding_affected_resources resource.

Overview

Namescan_finding_affected_resources
TypeResource
Iddigitalocean.security.scan_finding_affected_resources

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a key called affected_resources.

NameDatatypeDescription
namestringThe name of the affected resource. (title: name, example: Test Droplet)
typestringThe type of the affected resource. (title: type, example: Droplet)
urnstringThe URN for the affected resource. (title: urn, example: do💧760e09ef-dc84-11e8-981e-3cfdfeaae000)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
security_list_scan_finding_affected_resourcesselectscan_id, finding_uuidper_page, pageTo get affected resources for a scan finding, send a GET request to /v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
finding_uuidstring (uuid)The finding UUID. (example: 50e14f43-dd4e-412f-864d-78943ea28d91)
scan_idstring (uuid)The scan UUID. (example: 497dcba3-ecbf-4587-a2dd-5eb0665e6880)
pageintegerWhich 'page' of paginated results to return. (example: 1)
per_pageintegerNumber of items returned per page (example: 2)

SELECT examples

To get affected resources for a scan finding, send a GET request to /v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources.

SELECT
name,
type,
urn
FROM digitalocean.security.scan_finding_affected_resources
WHERE scan_id = '{{ scan_id }}' -- required
AND finding_uuid = '{{ finding_uuid }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;