pydo.security.create_scan_rule()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.security.create_scan_rule(
body={
"resource": "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d",
},
)Description
To mark a scan finding as a false positive, send a POST request to
/v2/security/scans/rules to create a new scan rule.
Parameters
resourcestring optionalExample:
do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89dThe URN of a resource to exclude from future scans.
Request Sample
More Information
See /v2/security/scans/rules in the API reference for additional detail on responses, headers, parameters, and more.