curl --request POST \
--url https://{host}/analysis/gcp/analyze \
--header 'Content-Type: application/json' \
--data '{
"connectionName": "gcp-testing",
"policyInstanceId": "583e0068-45a3-4c4e-baec-473d4daa4095",
"projectId": "pm-testing-608378",
"credential": {
"type": "service_account",
"project_id": "engineering-183318",
"private_key_id": "REDACTED",
"private_key": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----",
"client_email": "[email protected]",
"client_id": "28884131006232124",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/…"
},
"webHook": {
"uri": "http://mywebhookserver/webhook/results",
"authType": "basic",
"authValue": "tester:testerpassword"
}
}'