Lists all Input Sets for a Pipeline
Bad Request
Internal server error
Fetch all the Input Sets for a Pipeline, including Overlay Input Sets.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Creates an Input Set for a Pipeline
Input set YAML to be created. The Account, Org, Project, and Pipeline identifiers inside the YAML should match the query parameters.
Bad Request
Internal server error
If the YAML is valid, returns created Input Set. If not, it sends what is wrong with the YAML
Sample Input Set YAML
inputSet: name: Sample Input Set tags: {} identifier: Sample_Input_Set orgIdentifier: default projectIdentifier: MISC pipeline: identifier: Sample_Pipeline stages: - stage: identifier: Sample_Stage type: Approval spec: execution: steps: - step: identifier: Approval_Step type: HarnessApproval spec: approvers: userGroups: - account.Admins - step: identifier: Shellscript_Step type: ShellScript spec: source: type: Inline spec: script: echo "ShellScript" - stage: identifier: Sample_Deploy_Stage type: Deployment spec: serviceConfig: serviceRef: Service1 infrastructure: environmentRef: Env1 infrastructureDefinition: type: KubernetesDirect spec: connectorRef: account.harnessciplatform namespace: sample
Overlay Input Set YAML to be created. The Account, Org, Project, and Pipeline identifiers inside the YAML should match the query parameters
Bad Request
Internal server error
If the YAML is valid, returns created Overlay Input Set. If not, it sends what is wrong with the YAML
"string"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns Input Set for a Given Identifier (Throws an Error if no Input Set Exists)
Bad Request
Internal server error
Returns Input Set if exists for the given Identifier.
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Updates the Input Set for a Pipeline
Input set YAML to be updated. The query parameters should match the Account, Org, Project, and Pipeline Ids in the YAML.
Bad Request
Internal server error
If the YAML is valid, returns the updated Input Set. If not, it sends what is wrong with the YAML
Sample Input Set YAML
inputSet: name: Sample Input Set tags: {} identifier: Sample_Input_Set orgIdentifier: default projectIdentifier: MISC pipeline: identifier: Sample_Pipeline stages: - stage: identifier: Sample_Stage type: Approval spec: execution: steps: - step: identifier: Approval_Step type: HarnessApproval spec: approvers: userGroups: - account.Admins - step: identifier: Shellscript_Step type: ShellScript spec: source: type: Inline spec: script: echo "ShellScript" - stage: identifier: Sample_Deploy_Stage type: Deployment spec: serviceConfig: serviceRef: Service1 infrastructure: environmentRef: Env1 infrastructureDefinition: type: KubernetesDirect spec: connectorRef: account.harnessciplatform namespace: sample
Deletes the Input Set by Identifier
Bad Request
Internal server error
Return the Deleted Input Set
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
The Overlay Input Set that corresponds to the given Overlay Input Set Identifier
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Overlay Input Set YAML to be updated. The Account, Org, Project, and Pipeline identifiers inside the YAML should match the query parameters, and the Overlay Input Set identifier cannot be changed.
Bad Request
Internal server error
If the YAML is valid, returns the updated Overlay Input Set. If not, it sends what is wrong with the YAML
"string"
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns Runtime Input Template for a Pipeline
Bad Request
Internal server error
Fetch Runtime Input Template for a Pipeline, along with any expressions whose value is needed for running specific Stages
{- "stageIdentifiers": [
- "string"
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Update git-metadata in remote input-set and return the updated input-set
Bad Request
Internal server error
Returns identifier of updated input-set
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}