Returns YAML with updated Template Inputs for a given YAML
YAML
Bad Request
Internal Server Error
Returns YAML with updated Template Inputs, when an underlying Template has been updated and a reconciliation is pending in a given YAML.
{- "yaml": "string"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Validates the Template Inputs in a pipeline's YAML specification. If the Template Inputs are invalid, the operation returns an error summary.
Bad Request
Internal Server Error
Returns a validation result for Template Inputs present in a YAML specification.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Template YAML
Bad Request
Internal Server Error
Returns the created Template
Sample Template YAML
"template:\n name: pipelineTemplate\n identifier: pipelineTemplate\n versionLabel: v1\n type: Pipeline\n projectIdentifier: TemplateDemo\n orgIdentifier: default\n tags: {}\n spec:\n stages:\n - stage:\n name: stage1\n identifier: stage1\n description: \"\"\n type: Deployment\n spec:\n deploymentType: Kubernetes\n service:\n serviceRef: <+input>\n serviceInputs: <+input>\n environment:\n environmentRef: <+input>\n deployToAll: false\n environmentInputs: <+input>\n infrastructureDefinitions: <+input>\n execution:\n steps:\n - step:\n type: ShellScript\n name: Shell Script_1\n identifier: ShellScript_1\n spec:\n shell: Bash\n onDelegate: true\n source:\n type: Inline\n spec:\n script: <+input>\n environmentVariables: []\n outputVariables: []\n timeout: 10m\n rollbackSteps: []\n tags: {}\n failureStrategies:\n - onFailure:\n errors:\n - AllErrors\n action:\n type: StageRollback\n"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns true if the Template is deleted
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the saved Template
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the Template Input Set YAML
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
This contains details of Template filters based on Template Types and Template Names
Bad Request
Internal Server Error
Returns a list of all the metadata of all Templates
{- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Connector",
- "templateNames": [
- "string"
], - "templateIdentifiers": [
- "string"
], - "description": "string",
- "templateEntityTypes": [
- "Step"
], - "childTypes": [
- "string"
], - "listingScope": {
- "accountIdentifier": "string",
- "orgIdentifier": "string",
- "projectIdentifier": "string"
}, - "repoName": "string"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Fetches Template YAML from Harness DB and creates a remote entity
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Template YAML
Bad Request
Internal Server Error
Returns the updated Template Version
Sample Template YAML
"template:\n name: pipelineTemplate\n identifier: pipelineTemplate\n versionLabel: v1\n type: Pipeline\n projectIdentifier: TemplateDemo\n orgIdentifier: default\n tags: {}\n spec:\n stages:\n - stage:\n name: stage1\n identifier: stage1\n description: \"\"\n type: Deployment\n spec:\n deploymentType: Kubernetes\n service:\n serviceRef: <+input>\n serviceInputs: <+input>\n environment:\n environmentRef: <+input>\n deployToAll: false\n environmentInputs: <+input>\n infrastructureDefinitions: <+input>\n execution:\n steps:\n - step:\n type: ShellScript\n name: Shell Script_1\n identifier: ShellScript_1\n spec:\n shell: Bash\n onDelegate: true\n source:\n type: Inline\n spec:\n script: <+input>\n environmentVariables: []\n outputVariables: []\n timeout: 10m\n rollbackSteps: []\n tags: {}\n failureStrategies:\n - onFailure:\n errors:\n - AllErrors\n action:\n type: StageRollback\n"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
This contains details of Git Entity like Git Branch info to be updated
Bad Request
Internal Server Error
Update git metadata details for a remote template
{- "filePath": "string",
- "repoName": "string",
- "connectorRef": "string"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal Server Error
Returns the updated Template Version
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}