SourceDeploy 프로젝트의 stage를 생성합니다.
요청
API URL
POST {SOURCEDEPLOY_API_URL}/project/{projectId}/stage
요청 Parameter
요청 Query
없음
요청 Body
{
"name": "string",
"type": "string",
"config": "TEnvServer" | "TEnvAutoScalingGroup" | "TEnvKubernetesService" | "TEnvObjectStorage"
}
항목 |
타입 |
필수 여부 |
설명 |
비고 |
name |
string |
Y |
stage 이름 |
|
type |
string |
Y |
배포 타깃 타입 |
"Server" | "AutoScalingGroup" | "KubernetesService" | "ObjectStorage" |
Config |
TEnvServer | TEnvAutoScalingGroup | TEnvKubernetesService|TEnvObjectStorage |
Y |
배포 타깃 설정 |
type="Server"일 때 TEnvServer type="AutoScalingGroup" 일 때 TEnvAutoScalingGroup type="KubernetesService" 일 때 TEnvKubernetesService type="ObjectStorage"일 때 TEnvObjectStorage |
TEnvServer
{
"serverNo": ["number"]
}
항목 |
타입 |
필수여부 |
설명 |
비고 |
serverNo |
number[] |
Y |
서버 번호 |
serverLIst API 로 조회 |
TEnvAutoScalingGroup
{
"autoScalingGroupNo": "number"
}
TEnvKubernetesService
{
"clusterNo": "number"
}
TEnvObjectStorage
{
"bucketName": "string"
}
항목 |
타입 |
필수여부 |
설명 |
비고 |
bucketName |
string |
Y |
Bucket 이름 |
bucketNameList API 로 조회 |
응답
응답 Body
{
"id": "number",
"name": "string"
}
항목 |
타입 |
설명 |
비고 |
id |
number |
stage id |
|
name |
string |
stage 이름 |
|