Set up GCP for a connection
curl --request POST \
--url https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId} \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "acme-prod-1234"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({projectId: 'acme-prod-1234'})
};
fetch('https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId}"
payload = { "projectId": "acme-prod-1234" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Cloud Security
Set up GCP for a connection | Comp AI API
Set up GCP for a connection in Comp AI. Run AWS, Azure, and GCP cloud security scans, detect enabled services, review findings, and connect cloud posture.
POST
/
v1
/
cloud-security
/
setup-gcp
/
{connectionId}
Set up GCP for a connection
curl --request POST \
--url https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId} \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "acme-prod-1234"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({projectId: 'acme-prod-1234'})
};
fetch('https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/cloud-security/setup-gcp/{connectionId}"
payload = { "projectId": "acme-prod-1234" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

