Pipeline Execute
This contains APIs for Executing a Pipeline
planExecutionId of the execution of whose we need to find the retry history
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 retry history execution details
GET /gateway/pipeline/api/pipeline/execute/retryHistory/{planExecutionId}?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"
}
]
}Executes an Interrupt on a Given Execution
The Pipeline Execution Id on which the Interrupt needs to be applied.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The Interrupt type needed to be applied to the execution. Choose a value from the enum list.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Takes a possible Interrupt value and applies it onto the execution referred by the planExecutionId
PUT /gateway/pipeline/api/pipeline/execute/interrupt/{planExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&interruptType=AbortAll HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Node execution id on which the manual execution action is required
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Request for marking manual execution as fail or resume
The action that user wants to do on manual execution i.e. mark it as fail or resume
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns status of api request
POST /gateway/pipeline/api/pipeline/execute/manual-execution/{nodeExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"action": "MARK_AS_RESUME"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}The Pipeline Execution Id on which the Interrupt needs to be applied.
The runtime Id of the step/stage on which the Interrupt needs to be applied.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The Interrupt type needed to be applied to the execution. Choose a value from the enum list.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Takes a possible Interrupt value and applies it onto the given stage in the execution
PUT /gateway/pipeline/api/pipeline/execute/interrupt/{planExecutionId}/{nodeExecutionId}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&interruptType=AbortAll HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Pipeline Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Module type for the entity. If its from deployments,type will be CD , if its from build type will be CI
This param contains the previous execution execution id. This is basically when we are rerunning a Pipeline.
This param contains the identifier of stages from where to resume. It will be a list if we want to retry from parallel group
This param provides an option to run only the failed stages when Pipeline fails at parallel group. By default, it will run all the stages in the failed parallel group.
trueNotes of a pipeline execution
""falseBad Request
This is Failure entity as defied in Harness
Internal server error
Returns execution details
POST /gateway/pipeline/api/pipeline/execute/retry/{identifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&planExecutionId=text&retryStages=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/yaml
Accept: */*
Content-Length: 1399
"|
pipeline:
identifier: \"Sample_Pipeline\"
stages:
- stage:
identifier: \"Sample_Stage\"
type: \"Approval\"
spec:
execution:
steps:
- step:
identifier: \"Approval_Step\"
type: \"HarnessApproval\"
spec:
approvers:
userGroups:
- account._account_all_users:
- step:
identifier: \"Shellscript_Step\"
type: \"ShellScript\"
spec:
source:
type: \"Inline\"
spec:
script: \"exit 0\"
- stage:
identifier: \"Sample_Deploy_Stage\"
type: \"Deployment\"
spec:
serviceConfig:
serviceRef: \"service1\"
infrastructure:
environmentRef: \"env1\"
infrastructureDefinition:
type: \"KubernetesDirect\"
spec:
connectorRef: \"KubernetesConnector>\"
namespace: \"default\"
"{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Retry a executed pipeline with Runtime Input YAML and Expression Values V2
Pipeline Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Module type for the entity. If its from deployments,type will be CD , if its from build type will be CI
This param contains the previous execution execution id. This is basically when we are rerunning a Pipeline.
This param contains the identifier of stages from where to resume. It will be a list if we want to retry from parallel group
This param provides an option to run only the failed stages when Pipeline fails at parallel group. By default, it will run all the stages in the failed parallel group.
trueNotes of a pipeline execution
""falseRequest Parameters for retrying a Pipeline execution
Runtime Input YAML to be used for the retry execution.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns pipeline execution details
POST /gateway/pipeline/api/pipeline/execute/retry/v2/{identifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&planExecutionId=text&retryStages=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"runtimeInputYaml": "text",
"expressionValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Execute a Pipeline with Input Set References
Pipeline identifier for the entity. Identifier of the Pipeline to be executed
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Module type for the entity. If its from deployments,type will be CD , if its from build type will be CI
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
falseNotes of a pipeline execution
""falseContains list of Input Set references and Stage Ids
List of Input Set References to be merged
This is a boolean value that indicates if the response must contain the YAML for the merged Pipeline. The default value is False.
List of Stage Ids. Input Sets corresponding to these Ids will be merged.
Runtime Input Yaml needed to be merged into the result of the merged Yaml of the inputSetReferences
InputSetBranchName
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns pipeline execution details V2
POST /gateway/pipeline/api/pipeline/execute/{identifier}/inputSetList?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"inputSetReferences": [
"text"
],
"withMergedPipelineYaml": true,
"stageIdentifiers": [
"text"
],
"lastYamlToMerge": "text",
"inputSetBranchName": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Execute a Pipeline with Runtime Input YAML
Pipeline identifier for the entity. Identifier of the Pipeline to be executed
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Module type for the entity. If its from deployments,type will be CD , if its from build type will be CI
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
falsefalseNotes of a pipeline execution
""Input set identifiers for tracking and filtering pipeline executions. A list of input set identifiers to apply.
falseExecute V0 pipeline using unified mode for enhanced features
falseBad Request
This is Failure entity as defied in Harness
Internal server error
Returns pipeline execution details
POST /gateway/pipeline/api/pipeline/execute/{identifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/yaml
Accept: */*
Content-Length: 1399
"|
pipeline:
identifier: \"Sample_Pipeline\"
stages:
- stage:
identifier: \"Sample_Stage\"
type: \"Approval\"
spec:
execution:
steps:
- step:
identifier: \"Approval_Step\"
type: \"HarnessApproval\"
spec:
approvers:
userGroups:
- account._account_all_users:
- step:
identifier: \"Shellscript_Step\"
type: \"ShellScript\"
spec:
source:
type: \"Inline\"
spec:
script: \"exit 0\"
- stage:
identifier: \"Sample_Deploy_Stage\"
type: \"Deployment\"
spec:
serviceConfig:
serviceRef: \"service1\"
infrastructure:
environmentRef: \"env1\"
infrastructureDefinition:
type: \"KubernetesDirect\"
spec:
connectorRef: \"KubernetesConnector>\"
namespace: \"default\"
"{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Pipeline Identifier
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Module type for the entity. If its from deployments,type will be CD , if its from build type will be CI
Name of the branch.
Git Sync Config Id. [Applicable for Old Git Sync only]
if true, return all the default entities
falseNotes of a pipeline execution
""Input set identifiers for tracking and filtering pipeline executions. A list of input set identifiers to apply.
falseRequest Parameters needed to run specific Stages of a Pipeline
Bad Request
This is Failure entity as defied in Harness
Internal server error
Execute given Stages of a Pipeline with Runtime Input Yaml
POST /gateway/pipeline/api/pipeline/execute/{identifier}/stages?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"runtimeInputYaml": "text",
"stageIdentifiers": [
"text"
],
"expressionValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?