Skip to main content
POST
/
analysis
/
cloud
/
gcp
/
analyze
curl --request POST \
--url https://{host}/analysis/cloud/gcp/analyze \
--header 'Content-Type: application/json' \
--data '{
"credential": "…service-account JSON…",
"projectId": "pm-testing-608378",
"triggerAdhocAudit": "true"
}'
{
  "href": "<string>",
  "message": "<string>",
  "status": 123
}

Body

application/json
credential
required

GCP service account credential (inline JSON). Docs show both string and object usage. Raw JSON string of the .json keyfile

projectId
string
required

GCP project ID.

triggerAdhocAudit
string
required

Flag to trigger the once-off historical audit (docs specify string flag).

startDayOffset
string

Offset from 30 days in the past for the start of the range.

endDayOffset
string

Offset from yesterday for the end of the range.

Response

Audit accepted

message
string
required
status
integer
required

One of 200, 400, 401, 404, 500.

href
string

Link to recommendations (if available).