This contains pipeline APIs for files as provided as runtime input during pipeline execution
Returns a file uploaded or filtered based on the fileIdentifier provided for a given nodeExecutionId
Bad Request
Not Found
Internal server error
Returns a file uploaded or filtered based on the fileIdentifier provided for a given planExecutionId
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Creates a Pipeline
Pipeline YAML
Bad Request
Not Found
Internal server error
Returns created pipeline
"string"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Creates a Pipeline
Pipeline YAML
Bad Request
Not Found
Internal server error
Returns created pipeline with metadata
Sample Pipeline YAML with One Build Stage and One Deploy Stage
pipeline: name: Sample Pipeline identifier: Sample_Pipeline allowStageExecutions: false projectIdentifier: Temp orgIdentifier: default tags: {} stages: - stage: name: Sample Stage identifier: Sample_Stage description: "" type: Approval spec: execution: steps: - step: name: Approval Step identifier: Approval_Step type: HarnessApproval timeout: 1d spec: approvalMessage: |- Please review the following information and approve the pipeline progression includePipelineExecutionHistory: true approvers: minimumCount: 1 disallowPipelineExecutor: false userGroups: <+input> approverInputs: [] - step: type: ShellScript name: ShellScript Step identifier: ShellScript_Step spec: shell: Bash onDelegate: true source: type: Inline spec: script: <+input> environmentVariables: [] outputVariables: [] executionTarget: {} timeout: 10m tags: {} - stage: name: Sample Deploy Stage identifier: Sample_Deploy_Stage description: "" type: Deployment spec: serviceConfig: serviceRef: <+input> serviceDefinition: spec: variables: [] type: Kubernetes infrastructure: environmentRef: <+input> infrastructureDefinition: type: KubernetesDirect spec: connectorRef: <+input> namespace: <+input> releaseName: release-<+INFRA_KEY> allowSimultaneousDeployments: false execution: steps: - step: name: Rollout Deployment identifier: rolloutDeployment type: K8sRollingDeploy timeout: 10m spec: skipDryRun: false rollbackSteps: - step: name: Rollback Rollout Deployment identifier: rollbackRolloutDeployment type: K8sRollingRollback timeout: 10m spec: {} tags: {} failureStrategies: - onFailure: errors: - AllErrors action: type: StageRollback
Returns a Pipeline by Identifier
Bad Request
Not Found
Internal server error
Returns pipeline YAML
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Updates a Pipeline by Identifier
Pipeline YAML to be updated
Bad Request
Not Found
Internal server error
Returns updated pipeline
"string"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Deletes a Pipeline by Identifier
Bad Request
Not Found
Internal server error
Boolean status whether request was successful or not
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns List of Pipelines in the Given Project
This is the body for the filter properties for listing pipelines.
Bad Request
Not Found
Internal server error
Paginated list of pipelines.
Sample List Pipeline JSON Payload
{- "filterType": "PipelineSetup"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns Pipeline Summary by Identifier
Bad Request
Not Found
Internal server error
Returns Pipeline Summary having pipelineIdentifier as specified in request
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Import and Create Pipeline from Git Repository and saves a record for it in Harness
{- "pipelineName": "string",
- "pipelineDescription": "string",
- "version": "string"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Not Found
Internal server error
Import and Create Pipeline from Git Repository and saves a record for it in Harness
{- "pipelineName": "string",
- "pipelineDescription": "string",
- "version": "string"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update git-metadata in remote pipeline and returns the identifier of updated pipeline
Bad Request
Not Found
Internal server error
Returns identifier of updated pipeline
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Updates a Pipeline by Identifier
Pipeline YAML to be updated
Bad Request
Not Found
Internal server error
Returns updated pipeline with metadata
Sample Pipeline YAML with One Build Stage and One Deploy Stage
pipeline: name: Sample Pipeline identifier: Sample_Pipeline allowStageExecutions: false projectIdentifier: Temp orgIdentifier: default tags: {} stages: - stage: name: Sample Stage identifier: Sample_Stage description: "" type: Approval spec: execution: steps: - step: name: Approval Step identifier: Approval_Step type: HarnessApproval timeout: 1d spec: approvalMessage: |- Please review the following information and approve the pipeline progression includePipelineExecutionHistory: true approvers: minimumCount: 1 disallowPipelineExecutor: false userGroups: <+input> approverInputs: [] - step: type: ShellScript name: ShellScript Step identifier: ShellScript_Step spec: shell: Bash onDelegate: true source: type: Inline spec: script: <+input> environmentVariables: [] outputVariables: [] executionTarget: {} timeout: 10m tags: {} - stage: name: Sample Deploy Stage identifier: Sample_Deploy_Stage description: "" type: Deployment spec: serviceConfig: serviceRef: <+input> serviceDefinition: spec: variables: [] type: Kubernetes infrastructure: environmentRef: <+input> infrastructureDefinition: type: KubernetesDirect spec: connectorRef: <+input> namespace: <+input> releaseName: release-<+INFRA_KEY> allowSimultaneousDeployments: false execution: steps: - step: name: Rollout Deployment identifier: rolloutDeployment type: K8sRollingDeploy timeout: 10m spec: skipDryRun: false rollbackSteps: - step: name: Rollback Rollout Deployment identifier: rollbackRolloutDeployment type: K8sRollingRollback timeout: 10m spec: {} tags: {} failureStrategies: - onFailure: errors: - AllErrors action: type: StageRollback