Orchestration Executions [Beta]
Retrieve input values for a specific activity execution
The activity execution ID
Organisation Identifier
Project Identifier
Account Identifier
Response containing list of activity execution input values
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/activity/{activityId}/input HTTP/1.1
Harness-Account: text
Accept: */*
{
"inputs": [
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"optional": true,
"readOnly": true,
"type": "string",
"value": "text"
}
]
}Submit outputs for a manual activity execution that is waiting for outputs
The activity execution ID
Organisation Identifier
Project Identifier
Account Identifier
Outputs accepted
No content
Error Response body
Error Response body
Error Response body
POST /api/orchestration/execution/activity/{activityId}/output HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"outputs": [
{
"description": "text",
"items": "string",
"name": "text",
"type": "string",
"value": "text"
}
]
}No content
Process actions for a paused phase. 'resume' advances the DAG; 'restart' re-runs with changed inputs.
The ID of the phase execution
Organisation Identifier
Project Identifier
Account Identifier
The action to perform on the paused phase. 'resume' proceeds the DAG; 'restart' re-runs the phase (optionally with changed inputs).
Successful phase action response
The action that was performed
The ID of the phase execution
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/execution/phase/{phaseExecutionId}/action HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"action": "resume",
"inputs": [
{
"name": "text",
"type": "string",
"value": "text"
}
]
}{
"action": "text",
"phaseExecutionId": "text"
}For a paused phase, compares the tag stored in each release-artifact input against the latest ingested tag for that service mapping. Returns a list of inputs where a newer tag is available.
The ID of the phase execution
Organisation Identifier
Project Identifier
Account Identifier
Artifact update availability for a paused phase
True if at least one release-artifact input has a newer tag available
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/phase/{phaseExecutionId}/artifact-updates HTTP/1.1
Harness-Account: text
Accept: */*
{
"hasUpdates": true,
"updates": [
{
"currentTag": "text",
"inputName": "text",
"latestTag": "text",
"serviceMappingIdentifier": "text"
}
]
}Retrieve output values for a specific activity execution
The ID of the release
The identifier of the phase
The identifier of the activity
The ID of the activity execution
Organisation Identifier
Project Identifier
Account Identifier
Response containing list of phase execution output values
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output HTTP/1.1
Harness-Account: text
Accept: */*
{
"outputs": [
{
"description": "text",
"items": "string",
"name": "text",
"type": "string",
"value": "text"
}
]
}Retrieve grouped output values for a specific activity execution (v2 format)
The ID of the release
The identifier of the phase
The identifier of the activity
The ID of the activity execution
Organisation Identifier
Project Identifier
Account Identifier
Response containing grouped output values (v2)
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/output/v2 HTTP/1.1
Harness-Account: text
Accept: */*
{
"values": [
{
"output": [
{
"name": "text",
"value": "text"
}
]
}
]
}Retrieve the retry history for a specific activity by release ID, phase identifier, and activity identifier
The ID of the release
The identifier of the phase
The identifier of the activity
The ID of the activity execution
Cursor Based Pagination
The number of records expected
500Maximum retry index to include (optional filter)
Organisation Identifier
Project Identifier
Account Identifier
Successfully retrieved activity retry history
Response containing the retry history for an activity execution
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/retry-history HTTP/1.1
Harness-Account: text
Accept: */*
{
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
},
"retries": [
{
"activityExecutionId": "text",
"activityName": "text",
"canRetry": true,
"createdAt": 1,
"endTs": 1,
"failureInfo": {
"code": "text",
"msg": "text"
},
"identifier": "text",
"phaseId": "text",
"pipeline": {
"executionId": "text",
"identifier": "text"
},
"retryIndex": 1,
"startTs": 1,
"status": "SCHEDULED",
"subprocess": {
"identifier": "text",
"releaseId": "text"
},
"triggerInfo": {
"email": "text",
"identifier": "text",
"name": "text"
},
"yaml": "text"
}
]
}Retrieve input values for a specific phase execution. If phaseExecutionId is provided it is used directly; otherwise the latest execution for the given release/phase is returned.
The ID of the release
The identifier of the phase
The ID of the phase execution (optional fast-path)
Organisation Identifier
Project Identifier
Account Identifier
Response containing list of activity execution input values
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/input HTTP/1.1
Harness-Account: text
Accept: */*
{
"inputs": [
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"optional": true,
"readOnly": true,
"type": "string",
"value": "text"
}
]
}Retrieve output values for a specific phase execution
The ID of the release
The identifier of the phase
The ID of the phase execution
Organisation Identifier
Project Identifier
Account Identifier
Response containing list of phase execution output values
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output HTTP/1.1
Harness-Account: text
Accept: */*
{
"outputs": [
{
"description": "text",
"items": "string",
"name": "text",
"type": "string",
"value": "text"
}
]
}Retrieve grouped output values for a specific phase execution (v2 format)
The ID of the release
The identifier of the phase
The ID of the phase execution
Organisation Identifier
Project Identifier
Account Identifier
Response containing grouped output values (v2)
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/output/v2 HTTP/1.1
Harness-Account: text
Accept: */*
{
"values": [
{
"output": [
{
"name": "text",
"value": "text"
}
]
}
]
}Retrieve the retry history for a specific phase by release ID and phase identifier
The ID of the release
The identifier of the phase
Cursor Based Pagination
The number of records expected
500Organisation Identifier
Project Identifier
Account Identifier
Successfully retrieved phase retry history
Response containing the retry history for a phase execution
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/release/{releaseId}/phase/{phaseIdentifier}/retry-history HTTP/1.1
Harness-Account: text
Accept: */*
{
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
},
"retries": [
{
"createdAt": 1,
"endTs": 1,
"identifier": "text",
"phaseExecutionId": "text",
"phaseName": "text",
"retryIndex": 1,
"startTs": 1,
"status": "SCHEDULED",
"statusInfo": {
"code": "text",
"msg": "text"
}
}
]
}Retrieve the latest release input for a specific release ID
The ID of the release
Organisation Identifier
Project Identifier
Account Identifier
Successfully retrieved release input
ID of the process execution
ID of the release
YAML content of the release input
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/releaseInput/{releaseId} HTTP/1.1
Harness-Account: text
Accept: */*
{
"process_execution_id": "text",
"release_id": "text",
"yaml": "text"
}Start a new release execution for the given identifier
Unique id of the release to execute
Organisation Identifier
Project Identifier
Account Identifier
YAML configuration for release input
Execution started successfully
Response for starting a release or process execution
Navigation slug for the started process execution (on-the-go process execute only)
Identifier of the started release or orchestration process
YAML content of the release or execution input
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/execution/startRelease/{id} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"releaseInputYaml": "text"
}{
"executionId": "text",
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"identifier": "text",
"yaml": "text"
}Update an existing task comment
ID of the comment to update
Organisation Identifier
Project Identifier
Account Identifier
The updated comment text
Response for successful task comment update
UUID of the updated comment
Error Response body
Error Response body
Error Response body
Error Response body
PUT /api/orchestration/execution/task/comment/{commentId} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"comment": "text"
}{
"commentId": "text"
}Delete a specific task comment
ID of the comment to delete
Organisation Identifier
Project Identifier
Account Identifier
Comment deleted successfully
No content
Error Response body
Error Response body
Error Response body
Error Response body
DELETE /api/orchestration/execution/task/comment/{commentId} HTTP/1.1
Harness-Account: text
Accept: */*
No content
Create a new comment for a specific execution task
ID of the execution task
Organisation Identifier
Project Identifier
Account Identifier
The comment text
Response for successful task comment creation
UUID of the created comment
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/execution/task/{taskExecutionId}/comment HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"comment": "text"
}{
"commentId": "text"
}Retrieve a cursor based paginated list of comments for a specific execution task
ID of the execution task
Organisation Identifier
Project Identifier
Cursor Based Pagination
The number of records expected
500Account Identifier
Paginated list of task comments
Paginated response containing task comments
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/task/{taskExecutionId}/comment/summary HTTP/1.1
Harness-Account: text
Accept: */*
{
"comments": [
{
"comment": "text",
"commentId": "text",
"commentedBy": {
"email": "text",
"name": "text"
},
"createdAt": 1,
"isEdited": true,
"lastUpdatedAt": 1
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Update the metadata (name and description) of a specific execution task
ID of the execution task
Organisation Identifier
Project Identifier
Account Identifier
Updated description for the task
Updated name for the task
Response for successful task metadata update
UUID of the updated task
Error Response body
Error Response body
Error Response body
Error Response body
PUT /api/orchestration/execution/task/{taskExecutionId}/metadata HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"description": "text",
"name": "text"
}{
"taskExecutionId": "text"
}Update the status of a specific execution task
ID of the execution task
Organisation Identifier
Project Identifier
Account Identifier
Current status of the execution task
Response for successful task status update
Current status of the execution task
UUID of the updated task
Error Response body
Error Response body
Error Response body
Error Response body
PUT /api/orchestration/execution/task/{taskExecutionId}/status HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"status": "TODO"
}{
"status": "TODO",
"taskExecutionId": "text"
}Retrieve all activities for a specific release and phase execution. If no activities exist in the database, it will fetch them from the phase YAML configuration.
The ID of the release
The identifier of the phase execution
The ID of the phase execution
The activity execution ID of the parent (loop container) to fetch child iterations for
Organisation Identifier
Project Identifier
Account Identifier
Orchestration execution phase activities for graph view
ID of the phase execution
ID or slug of the process execution
ID of the release
Total number of currently running activities
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activities HTTP/1.1
Harness-Account: text
Accept: */*
{
"activities": [
{
"activity_execution_id": "text",
"depends_on": [
"text"
],
"description": "text",
"end_ts": 1,
"failureInfo": {
"code": "text",
"msg": "text"
},
"group_type": "SINGLE",
"identifier": "text",
"name": "text",
"pipeline": {
"executionId": "text",
"identifier": "text"
},
"retry_index": 1,
"start_ts": 1,
"status": "SCHEDULED",
"subprocess": {
"identifier": "text",
"releaseId": "text"
},
"yaml": "text"
}
],
"phase_execution_id": "text",
"process_execution_id": "text",
"release_id": "text",
"total_running_activities": 1
}Retrieve all orchestration execution tasks for a specific activity in a release phase
The ID of the release
The identifier of the phase
The identifier of the activity
The ID of the activity execution
Organisation Identifier
Project Identifier
Account Identifier
Response containing list of execution tasks
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/tasks HTTP/1.1
Harness-Account: text
Accept: */*
{
"tasks": [
{
"actualDuration": "text",
"createdAt": 1,
"description": "text",
"execute": {
"processes": "all"
},
"expectedDuration": "text",
"failureInfo": {
"code": "text",
"msg": "text"
},
"identifier": "text",
"lastUpdatedAt": 1,
"name": "text",
"required": true,
"status": "TODO",
"taskExecutionId": "text",
"userGroups": "text"
}
]
}Retrieve all phases for a specific release. Returns phase details including their YAML configurations.
The ID of the release
Filter phases by status (can specify multiple statuses)
The phase execution ID of the parent (loop container) to fetch child iterations for
Organisation Identifier
Project Identifier
Account Identifier
Successfully retrieved phases
Response containing phases for a release or process execution
ID of the process execution
ID of the release or process execution
Total number of currently running phases
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/execution/{releaseId}/phases HTTP/1.1
Harness-Account: text
Accept: */*
{
"phases": [
{
"activityCounts": {
"manual": {
"running": 0,
"userAction": 0
},
"pipeline": {
"running": 0,
"userAction": 0
},
"subprocess": {
"running": 0,
"userAction": 0
}
},
"completed_activities": 1,
"depends_on": [
"text"
],
"description": "text",
"end_ts": 1,
"failureInfo": {
"code": "text",
"msg": "text"
},
"group_type": "SINGLE",
"identifier": "text",
"is_restartable": true,
"name": "text",
"owners": [
"text"
],
"parent_execution_id": "text",
"phase_execution_id": "text",
"retry_index": 1,
"start_ts": 1,
"status": "SCHEDULED",
"total_activities": 1
}
],
"process_execution_id": "text",
"release_id": "text",
"total_running_phases": 1
}Retrieve detailed information about an activity execution including phase info, yaml, and pipeline/subprocess execution details. If activityExecutionId is provided, filters by it directly. Otherwise, filters by releaseId, phaseIdentifier, activityIdentifier, and retryIndex (defaults to 0 if not provided).
The ID of the release
The identifier of the phase
The identifier of the activity
Optional activity execution ID. If provided, filters by this ID directly.
Optional retry index. Used when activityExecutionId is not provided. Defaults to 0 if not specified.
Organisation Identifier
Project Identifier
Account Identifier
Successfully retrieved activity execution details
Detailed information about an activity execution
ID of the activity execution
End timestamp in milliseconds
Whether this activity is a single execution or a loop container
Identifier of the activity
Name of the activity
Identifier of the phase
Name of the phase
ID of the phase execution
ID of the process execution
Retry ID of the activity execution
Retry index of the activity execution
Root retry ID of the activity execution
Start timestamp in milliseconds
Status of orchestration execution activities
YAML configuration of the activity
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/release/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier} HTTP/1.1
Harness-Account: text
Accept: */*
{
"activity_execution_id": "text",
"end_ts": 1,
"failureInfo": {
"code": "text",
"msg": "text"
},
"group_type": "SINGLE",
"identifier": "text",
"name": "text",
"phaseIdentifier": "text",
"phaseName": "text",
"phase_execution_id": "text",
"pipeline": {
"executionId": "text",
"identifier": "text"
},
"process_execution_id": "text",
"retry_id": "text",
"retry_index": 1,
"root_retry_id": "text",
"start_ts": 1,
"status": "SCHEDULED",
"subprocess": {
"identifier": "text",
"releaseId": "text"
},
"triggerInfo": {
"email": "text",
"identifier": "text",
"name": "text"
},
"yaml": "text"
}Retrieve a cursor-based paginated list of events for a specific entity type and entity ID, sorted by created_at in descending order
Type of entity for events
The ID of the entity
Optional filter by event type
Organisation Identifier
Project Identifier
Cursor Based Pagination
The number of records expected
500Account Identifier
Successful response for events
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/{entityType}/events/{entityId} HTTP/1.1
Harness-Account: text
Accept: */*
{
"events": [
{
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"entityId": "text",
"entityType": "Task",
"eventMetadata": {
"from": "text",
"to": "text"
},
"type": "Status"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Retrieve a paginated list of orchestration execution activities for a specific release with optional filters.
Sortable fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type. Sort format: sort=field_name&sort=direction where direction is asc or desc. Examples: sort=start_ts&sort=desc or sort=endTs&sort=asc.
The ID of the release
Organisation Identifier
Project Identifier
Sort parameters as an array. Format: [field_name, direction] where direction is asc or desc.
Supported fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type.
When used in query params, use format: sort=field_name&sort=direction (e.g., sort=start_ts&sort=desc).
{"value":["created_at","asc"]}Filter activities by phase identifier
Filter activities that started on or after this timestamp (in milliseconds). Activities with start_ts >= startTs will be included.
Filter activities that started on or before this timestamp (in milliseconds). Activities with start_ts <= endTs will be included.
Filter activities that were triggered by tasks with the specified user_reference_id. Only activities linked to tasks via the activity_task_id table will be returned.
Account Identifier
Paginated orchestration execution activities
Whether the current page is empty
Whether this is the first page
Whether this is the last page
Current page number (0-indexed)
Number of items in the current page
Number of items per page
Total number of activities across all pages
Total number of pages
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/execution/activities HTTP/1.1
Harness-Account: text
Accept: */*
{
"content": [
{
"activityExecutionId": "text",
"endTs": 1,
"failureInfo": {
"code": "text",
"msg": "text"
},
"group_type": "SINGLE",
"identifier": "text",
"manual": {
"taskCount": 1
},
"name": "text",
"phaseExecutionId": "text",
"phaseIdentifier": "text",
"phaseName": "text",
"pipeline": {
"executionId": "text",
"identifier": "text"
},
"processExecutionId": "text",
"retryId": "text",
"retryIndex": 1,
"rootReleaseId": "text",
"startTs": 1,
"status": "SCHEDULED",
"subprocess": {
"identifier": "text",
"releaseId": "text"
},
"triggerInfo": {
"email": "text",
"identifier": "text",
"name": "text"
},
"type": "PIPELINE"
}
],
"empty": true,
"first": true,
"last": true,
"number": 1,
"numberOfElements": 1,
"pageable": {
"offset": 1,
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 1,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 1,
"totalPages": 1
}Last updated
Was this helpful?