For the complete documentation index, see llms.txt. This page is also available as Markdown.

Process Executions

Get Process Execution

get

Retrieve a process execution by ID, including persisted execution status.

Path parameters
executionIdstringRequired

Process execution ID (from execute response or execution history)

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Process execution retrieved successfully

application/json

Response for GET /orchestration/process/execution/{executionId}.

yamlstringRequired

Process YAML snapshot persisted at execution start (includes runtime UUIDs)

get/orchestration/process/execution/{executionId}
GET /api/orchestration/process/execution/{executionId} HTTP/1.1
Harness-Account: text
Accept: */*
{
  "executionInfo": {
    "accountIdentifier": "text",
    "executionId": "text",
    "executionType": "RELEASE",
    "orgIdentifier": "text",
    "processIdentifier": "text",
    "projectIdentifier": "text",
    "startTs": 1,
    "status": "Running",
    "triggeredBy": {
      "avatar": "text",
      "email": "text",
      "id": "text",
      "name": "text",
      "triggerType": "MANUAL"
    }
  },
  "yaml": "text"
}

Get Latest Process Execution Input by Slug ID

get

Retrieve the latest release input YAML for a process-on-the-go execution by slug ID.

Path parameters
executionIdstringRequired

Process execution slug ID (from execute response or execution history)

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Process execution input retrieved successfully

application/json

Response for GET /orchestration/process/execution/{executionId}/Input.

process_execution_idstringRequired

Process execution slug ID

yamlstringRequired

YAML content of the process execution input

get/orchestration/process/execution/{executionId}/Input
GET /api/orchestration/process/execution/{executionId}/Input HTTP/1.1
Harness-Account: text
Accept: */*
{
  "process_execution_id": "text",
  "yaml": "text"
}

Execute Action on Process Execution

post

Execute an action on a process execution. Currently only Abort is supported.

Path parameters
executionIdstringRequired

Process execution ID (from execute response or execution history)

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
actionstring · enumRequired

Action to perform on the process execution

Possible values:
messagestringRequired

Message explaining the reason for the action (e.g., why the process execution is being aborted)

Example: Production issue detected - aborting process execution
Responses
200

Action executed successfully

application/json
statusstringOptional

Result status

post/orchestration/process/execution/{executionId}/action
POST /api/orchestration/process/execution/{executionId}/action HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "action": "Abort",
  "message": "Production issue detected - aborting process execution"
}
{
  "status": "text"
}

Get Process Execution Activities (Paginated)

get

Retrieve paginated list of activities for a process execution.

Path parameters
executionIdstringRequired

Process execution ID (from execute response or execution history)

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

pageintegerOptional
sizeintegerOptional
sortstring[]Optional

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).

Example: {"value":["created_at","asc"]}
searchTermstringOptional

Search term to filter activities

phaseExecutionIdstringOptional

Filter by phase execution ID

statusstring[]Optional

Filter activities by status

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Paginated orchestration execution activities

application/json
emptybooleanRequired

Whether the current page is empty

firstbooleanRequired

Whether this is the first page

lastbooleanRequired

Whether this is the last page

numberintegerRequired

Current page number (0-indexed)

numberOfElementsintegerRequired

Number of items in the current page

sizeintegerRequired

Number of items per page

totalElementsintegerRequired

Total number of activities across all pages

totalPagesintegerRequired

Total number of pages

get/orchestration/process/execution/{executionId}/activity/list
GET /api/orchestration/process/execution/{executionId}/activity/list 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
}

Get Process Execution Activities by Phase

get

Retrieve all activities for a specific process execution and phase.

Path parameters
executionIdstringRequired

Process execution ID or slug (from execute response or execution history)

phaseIdentifierstringRequired

The identifier of the phase

Query parameters
phaseExecutionIdstringOptional

The ID of the phase execution

parentExecutionIdstringOptional

The activity execution ID of the parent (loop container) to fetch child iterations for

statusstring[]Optional

Filter activities by status

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Orchestration execution phase activities for graph view

application/json
phase_execution_idstringOptional

ID of the phase execution

process_execution_idstringOptional

ID or slug of the process execution

release_idstringOptional

ID of the release

total_running_activitiesintegerRequired

Total number of currently running activities

get/orchestration/process/execution/{executionId}/phase/{phaseIdentifier}/activities
GET /api/orchestration/process/execution/{executionId}/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
}

Get Process Execution Phases

get

Retrieve all phases for a specific process execution.

Path parameters
executionIdstringRequired

Process execution ID (from execute response or execution history)

Query parameters
statusstring[]Optional

Filter phases by status (can specify multiple statuses)

parentExecutionIdstringOptional

The phase execution ID of the parent (loop container) to fetch child iterations for

orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successfully retrieved phases

application/json

Response containing phases for a release or process execution

process_execution_idstringOptional

ID of the process execution

release_idstringRequired

ID of the release or process execution

total_running_phasesintegerRequired

Total number of currently running phases

get/orchestration/process/execution/{executionId}/phases
GET /api/orchestration/process/execution/{executionId}/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
}

Last updated

Was this helpful?