3단계: Google용 클라우드 환경 생성 및 스캔 (API)
Snyk API 요청 보내기
curl -X POST \
'https://api.snyk.io/rest/orgs/YOUR-ORGANIZATION-ID/cloud/environments?version=2022-12-21~beta' \
-H 'Authorization: token YOUR-API-TOKEN' \
-H 'Content-Type:application/vnd.api+json' -d '{
"data": {
"type": "environments",
"attributes": {
"options": {
"identity_provider": "YOUR-IDENTITY-PPROVIDER-URL"
"service_account_email": "YOUR-SERVICE-ACCOUNT-EMAIL",
"project_id": "YOUR-PROJECT-ID"
},
"kind": "google"
}
}
}'API 응답 이해
다음 단계는 무엇입니까?
Last updated