Use the DigitalOcean API to list, create, and manage CSPM scans and security settings.
CSPM Reference
Last verified 19 Nov 2026
Cloud Security Posture Management (CSPM) evaluates your DigitalOcean resources for misconfigurations and security risks, surfaces findings by severity, and provides guidance to help you resolve them.
The DigitalOcean API
The DigitalOcean API lets you manage resources programmatically with standard HTTP requests.
You can use the API to create CSPM scans, list affected resources for findings, and update CSPM plan settings.
The DigitalOcean Command Line Client, doctl
doctl is the command-line interface for the DigitalOcean API. It supports most of the same actions available in the API and DigitalOcean Control Panel.
doctl supports managing CSPM scans from the command line. See the doctl documentation or run doctl security --help.