SourceDeploy 시나리오 목록

Prev Next

개요

SourceDeploy 프로젝트 시나리오 목록을 조회합니다.

요청

API URL

GET  {SOURCEPIPELINE_API_URL}/sourcedeploy/project/{projectId}/stage/{stageId}/scenario

요청 Parameter

항목 타입 필수여부 설명 비고
projectId string Y SourceDeploy 프로젝트 ID sourceDeployProjectList API 로 조회
stageId string Y SourceDeploy 스태이지 ID sourceDeployStageList API 로 조회

요청 Query

항목 타입 필수여부 설명 비고
pageNo string N 페이지 넘버 pageNo, pageSize가 없다면 전체 리스트를 전달 required if pageSize exist
pageSize string N 페이지 사이즈 pageNo, pageSize가 없다면 전체 리스트를 전달 required if pageNo exist
searchWord string N 검색할 시나리오 이름 (문자열이 포함되어 있는 시나리오 리스트를 전달)

요청 Body

없음

응답

응답 Body

{
    "scenarioList": [
        {
            "id": "integer",
            "name": "string",
            "source": {
                "type": "string",
              	"target": "TSourceSourceBuild" | "TSourceObjectStorage" | "TSourceKubernetes"
            }
        }
    ]
}
항목 타입 설명 비고
id integer 시나리오 ID
name string 시나리오 이름
source.type string 배포 대상 타입 "SourceBuild"| "ObjectStorage" |"KubernetesService"
source.target TSourceSourceBuild | TSourceObjectStorage | TSourceKubernetes 배포 대상 타입 source.type= SourceBuild 일때, TSourceSourceBuild
source.type= ObjectStorage 일때, TSourceObjectStorage
source.type= KubernetesService 일때, TSourceKubernetes

TSourceSourceBuild

{
    "projectName": "string"
}  
항목 타입 설명 비고
source.target.projectName string 빌드 프로젝트 이름 required if deploy.type is SourceBuild

TSourceObjectStorage

{
    "file": "string"
} 
항목 타입 설명 비고
source.target.file string 오브젝트 스토리지 파일, 경로포함 required if deploy.type is ObjectStorage

TSourceKubernetes

{
    "manifest": "string"
}
항목 타입 설명 비고
source.target.manifest string manifest 파일 경로 및 이름 required if deploy.type is KubernetesService