Available in Classic and VPC
Get details of a deployment project execution history.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/project/{projectId}/history/{historyId} |
Request headers
For information about the headers common to all SourceDeploy APIs, see SourceDeploy request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
projectId |
String | Required | Project ID
|
historyId |
String | Required | Job result ID |
Request example
The request example is as follows:
curl --location --request GET 'https://vpcsourcedeploy.apigw.ntruss.com/api/v1/project/2***/history/80***' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
result |
Object | - | Response result |
result.project |
Object | - | Project information |
result.project.id |
Number | - | Project ID |
result.project.name |
String | - | Project name |
result.stage |
Object | - | Deployment stage information |
result.stage.id |
Number | - | Deployment stage ID |
result.stage.name |
String | - | Deployment stage name |
result.scenario |
Object | - | Deployment scenario information |
result.scenario.id |
Number | - | Deployment scenario ID |
result.scenario.name |
String | - | Deployment scenario name |
result.id |
Number | - | Job result ID |
result.status |
String | - | Deployment status
|
result.executor |
String | - | Deployment requestor |
result.startTime |
Number | - | Deployment request date and time
|
result.endTime |
Number | - | Deployment end date and time
|
result.type |
String | - | Deployment target type
|
result.config |
Object | - | Deployment target settings
|
THistoryServer
The following describes THistoryServer
.
Field | Type | Required | Description |
---|---|---|---|
strategy |
String | - | Deployment strategy
|
targets |
Array | - | Deployment progress information |
file |
Object | - | Deployment file information |
file.selected |
String | - | Deployment file |
file.type |
String | - | Deployment file type |
targets
The following describes targets
.
Field | Type | Required | Description |
---|---|---|---|
server |
Object | - | Target server information |
server.no |
Number | - | Target server number |
server.name |
String | - | Target server name |
status |
String | - | Deployment status
|
time |
Object | - | Time and date by step |
time.pre |
Number | - | Pre-deployment execution date and time
|
time.deploy |
Number | - | File deployment date and time
|
time.post |
Number | - | Post-deployment execution date and time
|
step |
Object | - | Status by step |
step.pre |
String | - | Pre-deployment execution status
|
step.deploy |
String | - | File deployment status
|
step.post |
String | - | Post-deployment execution status
|
THistoryAutoScaling
The following describes THistoryAutoScaling
.
Field | Type | Required | Description |
---|---|---|---|
strategy |
String | - | Deployment strategy
|
autoScalingGroup |
Object | - | Auto Scaling group information |
autoScalingGroup.no |
Number | - | Auto Scaling group number |
autoScalingGroup.name |
String | - | Auto Scaling group name |
targets |
Array | - | Deployment progress information |
file |
Object | - | Deployment file information |
file.selected |
String | - | Deployment file |
file.type |
String | - | Deployment file type |
targets
The following describes targets
.
Field | Type | Required | Description |
---|---|---|---|
server |
Object | - | Target server information |
server.no |
Number | - | Target server number |
server.name |
String | - | Target server name |
status |
String | - | Deployment status
|
time |
Object | - | Time and date by step |
time.pre |
Number | - | Pre-deployment execution date and time
|
time.deploy |
Number | - | File deployment date and time
|
time.post |
Number | - | Post-deployment execution date and time
|
step |
Object | - | Status by step |
step.pre |
String | - | Pre-deployment execution status
|
step.deploy |
String | - | File deployment status
|
step.post |
String | - | Post-deployment execution status
|
THistoryKubernetesService
The following describes THistoryKubernetesService
.
Field | Type | Required | Description |
---|---|---|---|
strategy |
String | - | Deployment strategy
|
targets |
Object | - | Deployment progress information |
targets.time |
Object | - | Time and date by step |
targets.time.pre |
Number | - | Deployment preparation date and time
|
targets.time.deploy |
Number | - | Deployment date and time
|
targets.step |
Object | - | Status by step |
targets.step.pre |
String | - | Deployment preparation status
|
targets.step.deploy |
String | - | Deployment status
|
THistoryObjectStorage
The following describes THistoryObjectStorage
.
Field | Type | Required | Description |
---|---|---|---|
file |
Object | - | Deployment file information |
file.selected |
String | - | Deployment file |
file.type |
String | - | Deployment file type |
targets |
Object | - | Deployment progress information |
targets.time |
Object | - | Time and date by step |
targets.time.pre |
Number | - | Deployment preparation date and time
|
targets.time.deploy |
Number | - | Deployment date and time
|
targets.step |
Object | - | Status by step |
targets.step.pre |
String | - | Deployment preparation status
|
targets.step.deploy |
String | - | Deployment status
|
backupFile |
String | - | Backup file path
|
Response status codes
For information about the HTTP status codes common to all SourceDeploy APIs, see SourceDeploy response status codes.
Response example
The response example is as follows:
{
"result": {
"project": {
"id": 2***,
"name": "deploy3"
},
"stage": {
"id": 3***,
"name": "dev-ob"
},
"scenario": {
"id": 2***,
"name": "testscenario"
},
"id": 80***,
"status": "success",
"executor": "by schedule trigger",
"startTime": 1747231215000,
"endTime": 1747231215000,
"type": "ObjectStorage",
"config": {
"file": {
"selected": "devtool/sourcebuild_backup/bb5a5880-****-****-****-8d4f9ac76620/build-sample.zip",
"type": "storage"
},
"targets": {
"time": {
"pre": 1747231215000,
"deploy": 1747231215000
},
"step": {
"pre": "success",
"deploy": "success"
}
}
}
}
}