Creates an Input Set for a Pipeline.
Input Set create request body.
Input Set response body
{- "input_set_yaml": "inputSet:\n pipeline:\n identifier: Example_Pipeline\n stages:\n - stage:\n identifier: Example_Stage\n type: Approval\n spec:\n execution:\n steps:\n - step:\n identifier: Approval_Step\n type: HarnessApproval\n spec:\n approvers:\n userGroups:\n - account.Admins\n - step:\n identifier: Shellscript_Step\n type: ShellScript\n spec:\n source:\\n type: Inline\n spec:\\n script: echo \"ShellScript\"\n - stage:\n identifier: Sample_Deploy_Stage\n type: Deployment\n spec:\n serviceConfig:\n serviceRef: Service1\n infrastructure:\n environmentRef: Env1\n infrastructureDefinition:\n type: KubernetesDirect\n spec:\n connectorRef: account.harnessciplatform\n namespace: sample",
- "identifier": "example_input_set",
- "name": "ExampleInputSet",
- "description": "Input Set Description",
- "tags": {
- "property1": "example-tag-1-value",
- "property2": "example-tag-2-value"
}, - "git_details": {
- "branch_name": "branch",
- "file_path": "/folder/file.json",
- "commit_message": "Added Harness Git Experience",
- "base_branch": "old_branch",
- "connector_ref": "git_connector",
- "store_type": "REMOTE",
- "repo_name": "example_repository"
}
}
{- "input_set_yaml": "example_input_set_yaml",
- "identifier": "example_input_set",
- "name": "Example Input Set",
- "org": "example_org",
- "project": "example_project",
- "description": "InputSet Description",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "git_details": {
- "object_id": "example_object",
- "branch_name": "branch",
- "file_path": "/folder/file.json",
- "repo_name": "example_repository",
- "commit_id": "abcd123",
- "file_url": "www.repo/folder/file.com",
- "repo_url": "www.repo.com"
}, - "created": 1234567890,
- "updated": 9876543210,
- "error_details": {
- "valid": false,
- "message": "Some fields in the Input Set are invalid.",
- "outdated": true,
- "error_pipeline_yaml": "serviceConfig: \"pipeline.stages.example_deploy_stage.spec.serviceConfig\"\n",
- "fqn_errors": [
- {
- "fqn": "pipeline.stages.example_deploy_stage.spec.serviceConfig",
- "errors": [
- {
- "field_name": "serviceConfig",
- "message": "Field not a runtime input",
- "identifier_of_error_source": "example_input_set"
}
]
}
], - "invalid_refs": [
- "example_invalid_input_set"
]
}
}
Returns a List of Input Sets for a Pipeline.
Input Set response body
[- {
- "input_set_yaml": "example_input_set_yaml",
- "identifier": "example_input_set",
- "name": "Example Input Set",
- "org": "example_org",
- "project": "example_project",
- "description": "InputSet Description",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "git_details": {
- "object_id": "example_object",
- "branch_name": "branch",
- "file_path": "/folder/file.json",
- "repo_name": "example_repository",
- "commit_id": "abcd123",
- "file_url": "www.repo/folder/file.com",
- "repo_url": "www.repo.com"
}, - "created": 1234567890,
- "updated": 9876543210,
- "error_details": {
- "valid": false,
- "message": "Some fields in the Input Set are invalid.",
- "outdated": true,
- "error_pipeline_yaml": "serviceConfig: \"pipeline.stages.example_deploy_stage.spec.serviceConfig\"\n",
- "fqn_errors": [
- {
- "fqn": "pipeline.stages.example_deploy_stage.spec.serviceConfig",
- "errors": [
- {
- "field_name": "serviceConfig",
- "message": "Field not a runtime input",
- "identifier_of_error_source": "example_input_set"
}
]
}
], - "invalid_refs": [
- "example_invalid_input_set"
]
}
}
]
Retrieves an Input Set for a Pipeline.
Input Set response body
{- "input_set_yaml": "example_input_set_yaml",
- "identifier": "example_input_set",
- "name": "Example Input Set",
- "org": "example_org",
- "project": "example_project",
- "description": "InputSet Description",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "git_details": {
- "object_id": "example_object",
- "branch_name": "branch",
- "file_path": "/folder/file.json",
- "repo_name": "example_repository",
- "commit_id": "abcd123",
- "file_url": "www.repo/folder/file.com",
- "repo_url": "www.repo.com"
}, - "created": 1234567890,
- "updated": 9876543210,
- "error_details": {
- "valid": false,
- "message": "Some fields in the Input Set are invalid.",
- "outdated": true,
- "error_pipeline_yaml": "serviceConfig: \"pipeline.stages.example_deploy_stage.spec.serviceConfig\"\n",
- "fqn_errors": [
- {
- "fqn": "pipeline.stages.example_deploy_stage.spec.serviceConfig",
- "errors": [
- {
- "field_name": "serviceConfig",
- "message": "Field not a runtime input",
- "identifier_of_error_source": "example_input_set"
}
]
}
], - "invalid_refs": [
- "example_invalid_input_set"
]
}
}
Updates an Input Set for a Pipeline.
Input Set update request body
Input Set response body
{- "input_set_yaml": "inputSet:\n pipeline:\n identifier: Example_Pipeline\n stages:\n - stage:\n identifier: Example_Stage\n type: Approval\n spec:\n execution:\n steps:\n - step:\n identifier: Approval_Step\n type: HarnessApproval\n spec:\n approvers:\n userGroups:\n - account.Admins\n - step:\n identifier: Shellscript_Step\n type: ShellScript\n spec:\n source:\\n type: Inline\n spec:\\n script: echo \"ShellScript\"\n - stage:\n identifier: Sample_Deploy_Stage\n type: Deployment\n spec:\n serviceConfig:\n serviceRef: Service1\n infrastructure:\n environmentRef: Env1\n infrastructureDefinition:\n type: KubernetesDirect\n spec:\n connectorRef: account.harnessciplatform\n namespace: sample",
- "identifier": "example_input_set",
- "name": "ExampleInputSet",
- "description": "Input Set Description",
- "tags": {
- "property1": "example-tag-1-value",
- "property2": "example-tag-2-value"
}, - "git_details": {
- "branch_name": "branch",
- "commit_message": "Added Harness Git Experience",
- "last_object_id": "abcdXYZ",
- "base_branch": "old_branch",
- "last_commit_id": "abcdXYZ",
- "parent_entity_connector_ref": "git_connector",
- "parent_entity_repo_name": "example_repository"
}
}
{- "input_set_yaml": "example_input_set_yaml",
- "identifier": "example_input_set",
- "name": "Example Input Set",
- "org": "example_org",
- "project": "example_project",
- "description": "InputSet Description",
- "tags": {
- "example-tag-1": "example-tag-1-value",
- "example-tag-2": "example-tag-2-value"
}, - "git_details": {
- "object_id": "example_object",
- "branch_name": "branch",
- "file_path": "/folder/file.json",
- "repo_name": "example_repository",
- "commit_id": "abcd123",
- "file_url": "www.repo/folder/file.com",
- "repo_url": "www.repo.com"
}, - "created": 1234567890,
- "updated": 9876543210,
- "error_details": {
- "valid": false,
- "message": "Some fields in the Input Set are invalid.",
- "outdated": true,
- "error_pipeline_yaml": "serviceConfig: \"pipeline.stages.example_deploy_stage.spec.serviceConfig\"\n",
- "fqn_errors": [
- {
- "fqn": "pipeline.stages.example_deploy_stage.spec.serviceConfig",
- "errors": [
- {
- "field_name": "serviceConfig",
- "message": "Field not a runtime input",
- "identifier_of_error_source": "example_input_set"
}
]
}
], - "invalid_refs": [
- "example_invalid_input_set"
]
}
}
Creates a remote entity by fetching the input set YAML from Harness.
Response body for moving an input set configuration.
{- "git_details": {
- "branch_name": "string",
- "file_path": "string",
- "commit_message": "string",
- "base_branch": "string",
- "connector_ref": "string",
- "repo_name": "string"
}, - "pipeline_identifier": "string",
- "input_set_identifier": "string",
- "move_config_operation_type": "INLINE_TO_REMOTE"
}
{- "input_set_identifier": "string"
}
Fetches InputSet YAML from Git Repository and saves a record for it in Harness
Input Set import request body
object (Import Git Information) Parameters related to importing an entity for Git. | |
object (InputSet Import Request DTO) Information of InputSet import request DTO |
Response body for input set import.
{- "git_import_info": {
- "connector_ref": "string",
- "repo_name": "string",
- "branch_name": "string",
- "file_path": "string",
- "is_force_import": true
}, - "input_set_import_request": {
- "input_set_name": "string",
- "input_set_description": "string"
}
}
{- "input_set_identifier": "string"
}
Update git-metadata in remote inputSet and return the updated inputSet
Example response
{- "connector_ref": "string",
- "repo_name": "string",
- "file_path": "string"
}
{- "entity_identifier": "string"
}