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
"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
curl -i -X DELETE \ 'https://app.harness.io/gateway/pipeline/api/pipelines/{pipelineIdentifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&branch=string&repoIdentifier=string&rootFolder=string&filePath=string&commitMsg=string&lastObjectId=string' \ -H 'If-Match: string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns a Pipeline by Identifier
Bad Request
Not Found
Internal server error
Returns pipeline YAML
curl -i -X GET \ 'https://app.harness.io/gateway/pipeline/api/pipelines/{pipelineIdentifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true&getTemplatesResolvedPipeline=false' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "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
curl -i -X GET \ 'https://app.harness.io/gateway/pipeline/api/pipelines/summary/{pipelineIdentifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&branch=string&repoIdentifier=string&getDefaultFromOtherRepo=true' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "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.
{- "pipelineTags": [
- {
- "key": "string",
- "value": "string"
}
], - "pipelineIdentifiers": [
- "string"
], - "name": "string",
- "description": "string",
- "moduleProperties": {
- "empty": true,
- "property1": { },
- "property2": { }
}, - "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Connector"
}
{- "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"
}
]
}
Updates a Pipeline by Identifier
Pipeline YAML to be updated
Bad Request
Not Found
Internal server error
Returns updated pipeline with metadata
"string"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}