# Get Phases by Release ID

Retrieve all phases for a specific release. Returns phase details including their YAML configurations.

Endpoint: GET /rmg/api/orchestration/execution/{releaseId}/phases
Version: 1.0
Security: x-api-key

## Path parameters:

  - `releaseId` (string, required)
    The ID of the release

## Query parameters:

  - `status` (array)
    Filter phases by status (can specify multiple statuses)

  - `orgIdentifier` (string)
    Organisation Identifier

  - `projectIdentifier` (string)
    Project Identifier

## Header parameters:

  - `Harness-Account` (string, required)
    Account Identifier

## Response 200 fields (application/json):

  - `release_id` (string, required)
    ID of the release

  - `process_execution_id` (string)
    ID of the process execution

  - `total_running_phases` (integer, required)
    Total number of currently running phases

  - `phases` (array, required)

  - `phases.name` (string, required)
    Name of the phase

  - `phases.identifier` (string, required)
    Unique identifier of the phase

  - `phases.description` (string)
    Description of the phase

  - `phases.owners` (array)
    List of owners for the phase

  - `phases.depends_on` (array)
    List of phase identifiers this phase depends on

  - `phases.status` (string, required)
    Status of orchestration execution activities
    Enum: "SCHEDULED", "RUNNING", "OUTPUT_WAITING", "SUCCEEDED", "FAILED", "ABORTED", "ON_HOLD", "RETRIED", "IGNORED", "SKIPPED", "QUEUED"

  - `phases.start_ts` (integer)
    Start timestamp in milliseconds

  - `phases.end_ts` (integer)
    End timestamp in milliseconds

  - `phases.phase_execution_id` (string)
    ID of the phase execution

  - `phases.completed_activities` (integer, required)
    Number of completed activities in the phase

  - `phases.total_activities` (integer, required)
    Total number of activities in the phase

  - `phases.activityCounts` (object, required)
    Activity counts grouped by type and status

  - `phases.activityCounts.pipeline` (object, required)
    Counts of activities by status for a specific activity type

  - `phases.activityCounts.pipeline.running` (integer, required)
    Number of running activities of this type

  - `phases.activityCounts.pipeline.userAction` (integer, required)
    Number of activities of this type requiring user action

  - `phases.activityCounts.subprocess` (object, required)
    Counts of activities by status for a specific activity type

  - `phases.activityCounts.manual` (object, required)
    Counts of activities by status for a specific activity type

  - `phases.failureInfo` (object)
    Information about a failure that occurred

  - `phases.failureInfo.msg` (string, required)
    The failure message describing what went wrong

  - `phases.failureInfo.code` (string)
    The failure code indicating the type of failure

## Response 400 fields (application/json):

  - `message` (string, required)
    error message detail

  - `code` (string)
    canonical error code name
    Enum: "BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "INTERNAL_SERVER_ERROR"


