Pipeline Execution Details
This contains APIs for fetching Pipeline Execution Details
Existing tags are left untouched unless their key matches one of the tags being added, in which case the existing tag's value is overwritten.
ExecutionId of the execution for which we want to add tags
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
This is the view of the tags of the entity.
Tag key
Tag value
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the full list of tags on the pipelineExecution
POST /gateway/pipeline/api/pipelines/execution/{planExecutionId}/tags?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 31
[
{
"key": "text",
"value": "text"
}
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Validates if an execution can be retried for a Given PlanExecution ID
Plan Execution Id for which we want to check if it can be retried
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return true if the provided execution can be retried
GET /gateway/pipeline/api/pipelines/execution/canRetry/{planExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns full annotation content for a specific context from GCS
Plan Execution ID for the pipeline run
Context ID for the annotation
.+Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Pipeline Identifier
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns full content for the specified annotation
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/annotations/{contextId}/content?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&pipelineIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Pipeline Execution Details for a Given PlanExecution ID
Plan Execution Id for which we want to get the Execution details
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Stage Node Identifier for which Stage Graph needs to be Rendered
Stage Node Execution ID for which Stage Graph needs to be Rendered. (Needed only when there are Multiple Runs for a Given Stage. It can be Extracted from LayoutNodeMap Field)
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the Pipeline Execution details for given PlanExecution Id
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Pipeline Execution Details for a Given PlanExecution ID
Plan Execution Id for which we want to get the Execution details
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Stage Node Identifier for which Stage Graph needs to be Rendered
Stage Node Execution ID for which Stage Graph needs to be Rendered. (Needed only when there are Multiple Runs for a Given Stage. It can be Extracted from LayoutNodeMap Field)
Stage Node Execution ID for which Stage Graph needs to be Rendered. (Needed only when there are Multiple Runs for a Given Stage. It can be Extracted from LayoutNodeMap Field)
Stage Node Execution ID for which Stage Graph needs to be Rendered. (Needed only when there are Multiple Runs for a Given Stage. It can be Extracted from LayoutNodeMap Field)
Generate Graph for all the Stages including Steps in each Stage
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the Pipeline Execution details for given PlanExecution Id without full graph if stageNodeId is null
GET /gateway/pipeline/api/pipelines/execution/v2/{planExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Pipeline Execution Graph for a Given PlanExecution ID
Plan Execution Id for which we want to get the Execution details
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the Pipeline Execution graph for given PlanExecution Id
GET /gateway/pipeline/api/pipelines/execution/getExecutionGraph/{planExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Pipeline Execution SubGraph for a Given Retried StepGroup NodeExecution ID
Node Execution Id for which we want to get the Execution SubGraph
Plan Execution Id for which we want to get the Execution details
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return Execution subGraph for a Given Retried StepGroup NodeExecution ID
GET /gateway/pipeline/api/pipelines/execution/subGraph/{planExecutionId}/{nodeExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the Pipeline Execution Url for a Given PlanExecution ID
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Pipeline Id for which we want to get the Execution url
Plan Execution Id for which we want to get the Execution url
Modules
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the Pipeline Execution url for given Pipeline and PlanExecution Id
POST /gateway/pipeline/api/pipelines/execution/url?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&pipelineIdentifier=text&planExecutionId=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}ExecutionId of the execution for which we want to get Metadata
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns metadata of a execution
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/metadata?accountIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Plan Execution Id for which we want to get the Input Set YAML
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A boolean that indicates whether or not expressions should be resolved in input set yaml
falseResolve Expressions Type indicates what kind of expressions should be resolved in input set yaml. The default value is UNKNOWN in which case no expressions will be resolvedChoose a value from the enum list: [RESOLVE_ALL_EXPRESSIONS, RESOLVE_TRIGGER_EXPRESSIONS, UNKNOWN]
UNKNOWNPossible values: Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the Input Set YAML used for given Plan Execution
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/inputsetV2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Plan Execution Id for which we want to get the Input Set YAML
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page
Bad Request
This is Failure entity as defied in Harness
Internal server error
Return policy evaluation details for given Plan Execution
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/policy-evaluation?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns a List of Pipeline Executions Identifier with Specific Filter
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Pipeline Identifier filter if exact pipelines needs to be filtered.
Page Index of the results to fetch.Default Value: 0
0Results per page
10Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Properties of the Filter entity defined in Harness.
This specifies the corresponding Entity of the filter.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns all the Executions Identifier of pipelines for given filter
POST /gateway/pipeline/api/pipelines/execution/executionSummary?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 933
{
"filterType": "PipelineExecution",
"pipelineTags": [
{
"key": "tag1",
"value": "value1"
},
{
"key": "tag2",
"value": "value2"
}
],
"status": [
"Success",
"Failed",
"Running"
],
"pipelineName": "My Pipeline",
"timeRange": {
"timeRangeFilterType": "LAST_30_DAYS"
},
"moduleProperties": {
"cd": {
"serviceIdentifiers": [
"service1",
"service2"
],
"envIdentifiers": [
"dev",
"prod"
],
"artifactDisplayNames": [
"library/nginx:stable",
"stable"
],
"serviceDefinitionTypes": [
"Kubernetes",
"NativeHelm"
],
"helmChartVersions": [
"chartV1",
"chartV2"
],
"gitOpsAppIdentifiers": [
"app1",
"app2"
]
},
"ci": {
"ciExecutionInfoDTO": {
"event": "pullRequest",
"pullRequest": {
"sourceBranch": "source-branch",
"targetBranch": "target-branch"
}
}
}
},
"triggerTypes": [
"MANUAL",
"WEBHOOK"
],
"triggerIdentifiers": [
"trigger1",
"trigger2"
],
"pipelineIdentifiers": [
"pipeline1",
"pipeline2"
],
"myDeployments": true,
"branchName": "main",
"repo": "my-repo",
"inputSetIdentifiers": [
"inputSet1",
"inputSet2"
],
"planExecutionIds": [
"exec1",
"exec2"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns a List of Pipeline Executions with Specific Filter
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Search term to filter out pipelines based on pipeline name, identifier, tags.
Pipeline Identifier filter if exact pipelines needs to be filtered.
Page Index of the results to fetch.Default Value: 0
0Results per page
10Sort criteria for the elements.
Identifier of a saved filter to apply. Cannot be used together with the request body filter properties. If both are provided, the saved filter takes precedence.
Whether to show all executions accessible to the user, not just those in the specified project. Defaults to false.
falseHarness module which triggered the execution. Examples: CD, CI, CE, etc.
Whether to filter executions triggered by the current user only
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
Filter properties for listing pipeline executions. The filterType field (inherited) is required and must be set to PipelineExecution.
This specifies the corresponding Entity of the filter.
Filter executions by pipeline name (partial match supported).
Filter executions by trigger identifiers.
Filter by execution mode (e.g. default executions only, rollback executions only, or all).
Filter executions by a list of pipeline identifiers.
If true, returns only executions triggered by the current authenticated user.
Filter executions by the codebase/repository branch used during execution. This is different from the branch query parameter, which refers to the Git branch where the pipeline YAML definition is stored (for Git Experience / remote pipelines).
Filter executions by the repository name associated with the execution.
Filter executions by input set identifiers used during execution.
Filter by specific plan execution IDs.
Filter executions by execution notes content.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns all the Executions of pipelines for given filter
POST /gateway/pipeline/api/pipelines/execution/summary?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 933
{
"filterType": "PipelineExecution",
"pipelineTags": [
{
"key": "tag1",
"value": "value1"
},
{
"key": "tag2",
"value": "value2"
}
],
"status": [
"Success",
"Failed",
"Running"
],
"pipelineName": "My Pipeline",
"timeRange": {
"timeRangeFilterType": "LAST_30_DAYS"
},
"moduleProperties": {
"cd": {
"serviceIdentifiers": [
"service1",
"service2"
],
"envIdentifiers": [
"dev",
"prod"
],
"artifactDisplayNames": [
"library/nginx:stable",
"stable"
],
"serviceDefinitionTypes": [
"Kubernetes",
"NativeHelm"
],
"helmChartVersions": [
"chartV1",
"chartV2"
],
"gitOpsAppIdentifiers": [
"app1",
"app2"
]
},
"ci": {
"ciExecutionInfoDTO": {
"event": "pullRequest",
"pullRequest": {
"sourceBranch": "source-branch",
"targetBranch": "target-branch"
}
}
}
},
"triggerTypes": [
"MANUAL",
"WEBHOOK"
],
"triggerIdentifiers": [
"trigger1",
"trigger2"
],
"pipelineIdentifiers": [
"pipeline1",
"pipeline2"
],
"myDeployments": true,
"branchName": "main",
"repo": "my-repo",
"inputSetIdentifiers": [
"inputSet1",
"inputSet2"
],
"planExecutionIds": [
"exec1",
"exec2"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns a List of Pipeline Executions Outline given pipelineId or a list of executionIds
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
lastSeenExecutionId from previous response
lastSeenStartTime from previous response
Results per page
10Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns all the Executions outline given pipelineId or a list of executionIds
POST /gateway/pipeline/api/pipelines/execution/summary/outline?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 184
{
"timeRange": {
"startTime": "1702443600000",
"endTime": "1718810039288"
},
"pipelineIdentifier": "test",
"status": [
"Success"
],
"planExecutionIds": [
"executionId1",
"executionId2",
"executionId3"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}ExecutionId of the execution for which we want to get notes
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns Notes of a pipelineExecution
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/notes?accountIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}ExecutionId of the execution for which we want to update notes
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Notes of a Pipeline Execution
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns Notes of a pipelineExecution
PUT /gateway/pipeline/api/pipelines/execution/{planExecutionId}/notes?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text¬esForPipelineExecution=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns annotations for a specific pipeline execution
Plan Execution ID for the pipeline run
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Pipeline Identifier
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns annotations for the specified pipeline execution
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/annotations?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&pipelineIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the workflow graph for visualization
Plan Execution Id for which we want to get the workflow graph
Account Identifier for the Entity.
Node Execution Id from which to start graph traversal
Maximum depth to traverse from the starting node
10Bad Request
This is Failure entity as defied in Harness
Internal server error
Return the workflow graph for visualization
GET /gateway/pipeline/api/pipelines/execution/{planExecutionId}/workflow-graph?accountIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?