Import Projects (v1)

circle-info

이 문서는 v1 API를 사용하며, Snyk은 향후 개발을 REST API에 집중할 예정이므로 결국 지원이 중단될 예정입니다. 자세한 내용은 v1 API를 참조하십시오.

이 API를 사용하여 프로젝트를 Snyk으로 가져올 수 있습니다. 가져온 프로젝트는 Git 리포지토리, Docker 이미지, 컨테이너, 구성 파일 등이 될 수 있습니다. 자세한 내용은 프로젝트 및 대상 문서를 참조하십시오. 일반적인 가져오기는 처리할 대상을 요청하는 것으로 시작하여, 가져오기 완료 및 결과 Snyk 프로젝트에 대한 자세한 내용을 확인하기 위해 Import Job API를 폴링하는 방식으로 진행됩니다.

Import targets

post

Request a target to be analyzed for supported Snyk projects via a configured integration. See the Integrations API to configure a new integration.

Path parameters
orgIdstringRequired

The organization ID. The API_KEY must have admin access to this organization.

Example: 4a18d42f-0706-4ad0-b127-24078731fbed
integrationIdstringRequired

The unique identifier for the configured integration. This can be found on the Integration page in the Settings area for all integrations that have been configured.

Example: 9a3e5d90-b782-468a-a042-9a2073736f0b
Body
or
or
or
or
or
or
or
or
or
or
Responses
post
/org/{orgId}/integrations/{integrationId}/import
201Success

No content

Get import job details

get

Get import job details

Path parameters
orgIdstringRequired

The organization ID. The API_KEY must have admin access to this organization.

Example: 4a18d42f-0706-4ad0-b127-24078731fbed
integrationIdstringRequired

The unique identifier for the configured integration. This can be found on the Integration page in the Settings area for all integrations that have been configured.

Example: 9a3e5d90-b782-468a-a042-9a2073736f0b
jobIdstringRequired

The ID of the job. This can be found in the Location response header from the corresponding POST request that triggered the import job.

Example: 1a325d9d-b782-468a-a242-9a2073734f0b
Responses
get
/org/{orgId}/integrations/{integrationId}/import/{jobId}
200Success

Last updated