CloudSecurity

Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

List recent cloud security activity

GET/v1/cloud-security/activity

List recent cloud security activity in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Query parameters

connectionIdstringrequired

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/activity?connectionId=<connectionId> \
  --header 'X-API-Key: <api-key>'

List supported cloud providers

GET/v1/cloud-security/providers

List supported cloud providers in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/providers \
  --header 'X-API-Key: <api-key>'

List cloud security findings

GET/v1/cloud-security/findings

List cloud security findings discovered by scans so teams can prioritize remediation before issues become audit findings.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/findings \
  --header 'X-API-Key: <api-key>'

Mark a finding as an exception so it no longer appears in the active Scan Results list

POST/v1/cloud-security/findings/{findingId}/exception

Accepts session, API key, or service token auth. For API key / service token callers without an explicit user attribution, the action is attributed to the org's owner and the audit log description records the calling key/service name.

Path parameters

findingIdstringrequired

Request body

reasonstringrequired

Documentation for why this finding does not apply or is being accepted. Minimum 20 non-whitespace characters.

reviewedBystring

Free-text reviewer or approval reference.

expiresAtstring

ISO date when this exception should auto-expire. Null/missing = never.

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/findings/<findingId>/exception \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "reason": "Bucket hosts intentionally public marketing assets; writes restricted to the marketing IAM role.",
    "reviewedBy": "Approved by CISO 2026-Q1",
    "expiresAt": "2026-08-13"
  }'

Switch the AWS scan engine for a connection (Complianz scanners ↔ Security Hub)

PATCH/v1/cloud-security/connections/{connectionId}/scan-mode

Accepts session, API key, or service token auth. For API key / service token callers without an explicit user attribution, the action is attributed to the org's owner.

Path parameters

connectionIdstringrequired

Request body

modeenumrequired

Which scan engine to use for this AWS connection.

One of: comp_scanners security_hub

Responses

200
curl --request PATCH \
  --url https://api.complianz.ai/v1/cloud-security/connections/<connectionId>/scan-mode \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "mode": "security_hub"
  }'

Revoke an exception, reopening the finding

DELETE/v1/cloud-security/exceptions/{exceptionId}

Accepts session, API key, or service token auth. For API key / service token callers without an explicit user attribution, the action is attributed to the org's owner.

Path parameters

exceptionIdstringrequired

Responses

200
curl --request DELETE \
  --url https://api.complianz.ai/v1/cloud-security/exceptions/<exceptionId> \
  --header 'X-API-Key: <api-key>'

List resolution, exception, and regression history for a connection

GET/v1/cloud-security/history

List resolution, exception, and regression history for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Query parameters

connectionIdstringrequired

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/history?connectionId=<connectionId> \
  --header 'X-API-Key: <api-key>'

Resolve the "About this check" description for a finding (AI-cached for AWS; provider-derived for GCP/Azure)

GET/v1/cloud-security/findings/{findingId}/check-definition

Resolve the "About this check" description for a finding (AI-cached for AWS; provider-derived for GCP/Azure) in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture.

Path parameters

findingIdstringrequired

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/findings/<findingId>/check-definition \
  --header 'X-API-Key: <api-key>'

Resolve short-lived AWS credentials for a connection (internal only)

POST/v1/cloud-security/resolve-session/{connectionId}

Resolve short-lived AWS credentials for a connection (internal only) in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/resolve-session/<connectionId> \
  --header 'X-API-Key: <api-key>'

Run cloud security scan

POST/v1/cloud-security/scan/{connectionId}

Trigger a cloud security scan for a connected AWS, Azure, or GCP account and collect findings for compliance remediation.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/scan/<connectionId> \
  --header 'X-API-Key: <api-key>'

Detect available cloud services for a connection

POST/v1/cloud-security/detect-services/{connectionId}

Detect available cloud services for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/detect-services/<connectionId> \
  --header 'X-API-Key: <api-key>'

Detect the GCP organization for a connection

POST/v1/cloud-security/detect-gcp-org/{connectionId}

Detect the GCP organization for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/detect-gcp-org/<connectionId> \
  --header 'X-API-Key: <api-key>'

Select GCP projects for a connection

POST/v1/cloud-security/select-gcp-projects/{connectionId}

Select GCP projects for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/select-gcp-projects/<connectionId> \
  --header 'X-API-Key: <api-key>'

Set up GCP for a connection

POST/v1/cloud-security/setup-gcp/{connectionId}

Set up GCP for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/setup-gcp/<connectionId> \
  --header 'X-API-Key: <api-key>'

Resolve a GCP setup step

POST/v1/cloud-security/setup-gcp/{connectionId}/resolve-step

Resolve a GCP setup step in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/setup-gcp/<connectionId>/resolve-step \
  --header 'X-API-Key: <api-key>'

Set up Azure for a connection

POST/v1/cloud-security/setup-azure/{connectionId}

Set up Azure for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/setup-azure/<connectionId> \
  --header 'X-API-Key: <api-key>'

Validate Azure credentials for a connection

POST/v1/cloud-security/validate-azure/{connectionId}

Validate Azure credentials for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/validate-azure/<connectionId> \
  --header 'X-API-Key: <api-key>'

Trigger a cloud security run for a connection

POST/v1/cloud-security/trigger/{connectionId}

Trigger a cloud security run for a connection in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

connectionIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/cloud-security/trigger/<connectionId> \
  --header 'X-API-Key: <api-key>'

Get a cloud security scan run by ID

GET/v1/cloud-security/runs/{runId}

Get a cloud security scan run by ID in Complianz. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture results to compliance work.

Path parameters

runIdstringrequired

Query parameters

connectionIdstringrequired

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/cloud-security/runs/<runId>?connectionId=<connectionId> \
  --header 'X-API-Key: <api-key>'