scan_finding_affected_resources
Creates, updates, deletes, gets or lists a scan_finding_affected_resources resource.
Overview
| Name | scan_finding_affected_resources |
| Type | Resource |
| Id | digitalocean.security.scan_finding_affected_resources |
Fields
The following fields are returned by SELECT queries:
- security_list_scan_finding_affected_resources
The response will be a JSON object with a key called affected_resources.
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the affected resource. (title: name, example: Test Droplet) |
type | string | The type of the affected resource. (title: type, example: Droplet) |
urn | string | The URN for the affected resource. (title: urn, example: do💧760e09ef-dc84-11e8-981e-3cfdfeaae000) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
security_list_scan_finding_affected_resources | select | scan_id, finding_uuid | per_page, page | To 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.
| Name | Datatype | Description |
|---|---|---|
finding_uuid | string (uuid) | The finding UUID. (example: 50e14f43-dd4e-412f-864d-78943ea28d91) |
scan_id | string (uuid) | The scan UUID. (example: 497dcba3-ecbf-4587-a2dd-5eb0665e6880) |
page | integer | Which 'page' of paginated results to return. (example: 1) |
per_page | integer | Number of items returned per page (example: 2) |
SELECT examples
- security_list_scan_finding_affected_resources
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 }}'
;