Use the DigitalOcean API to list, create, and manage CSPM scans and security settings.
CSPM Reference
Validated on 26 Feb 2026 • Last edited on 31 Mar 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. All actions available in the control panel are also available through the API.
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.