# List Infrastructure

Endpoint for listing all infrastructures.

Endpoint: GET /api/infrastructures
Version: 1.0
Security: x-api-key

## Query parameters:

  - `offset` (integer)
    Offset for pagination

  - `limit` (integer)
    Limit for pagination

  - `desc` (boolean)
    Order by descending order

  - `orgIdentifier` (string)
    Org is the organization identifier.

  - `projectIdentifier` (string)
    Project is the project identifier.

## Header parameters:

  - `Harness-Account` (string, required)
    Account is the internal customer account ID.

## Response 200 fields (application/json):

  - `infrastructures` (array)

  - `infrastructures.activeExecutions` (array, required)

  - `infrastructures.activeExecutions.approvals` (array)

  - `infrastructures.activeExecutions.approvals.instanceId` (string, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals` (array, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.approvalID` (string, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.deadline` (string)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.message` (string, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.orgID` (string, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.pipelineExecutionId` (string, required)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.pipelineId` (string)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.pipelineUrl` (string)

  - `infrastructures.activeExecutions.approvals.pipelineApprovals.projectID` (string, required)

  - `infrastructures.activeExecutions.completedInstanceIds` (array, required)
    Instances fully updated by the execution

  - `infrastructures.activeExecutions.events` (array)

  - `infrastructures.activeExecutions.events.createdAt` (string, required)

  - `infrastructures.activeExecutions.events.event` (object, required)

  - `infrastructures.activeExecutions.events.event.progress` (string, required)
    Enum: "unknown", "pending", "processing", "done", "failed", "aborted", "deleted", "replaced"

  - `infrastructures.activeExecutions.events.message` (string)
    Message associated with the event

  - `infrastructures.activeExecutions.id` (string, required)

  - `infrastructures.activeExecutions.infrastructureId` (string, required)

  - `infrastructures.activeExecutions.instanceIds` (array, required)
    Instances updated by the execution

  - `infrastructures.activeExecutions.message` (string)
    Message associated with the execution

  - `infrastructures.activeExecutions.outputs` (object)
    Outputs of the infrastructure execution

  - `infrastructures.activeExecutions.pipelineUrl` (string)

  - `infrastructures.activeExecutions.progress` (object, required)

  - `infrastructures.activeExecutions.spec` (object, required)

  - `infrastructures.activeExecutions.spec.identifier` (string, required)

  - `infrastructures.activeExecutions.spec.instances` (array)

  - `infrastructures.activeExecutions.spec.instances.dependencies` (object)

  - `infrastructures.activeExecutions.spec.instances.identifier` (string, required)

  - `infrastructures.activeExecutions.spec.instances.implementation` (object)

  - `infrastructures.activeExecutions.spec.instances.implementation.backend` (string, required)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps` (object, required)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.apply` (object, required)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.create` (object)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.delete` (object)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.destroy` (object, required)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.pause` (object)

  - `infrastructures.activeExecutions.spec.instances.implementation.steps.resume` (object)

  - `infrastructures.activeExecutions.spec.instances.implementation.values` (object)

  - `infrastructures.activeExecutions.spec.instances.metadata` (object)

  - `infrastructures.activeExecutions.spec.instances.outputs` (object)

  - `infrastructures.activeExecutions.spec.instances.targetState` (object)

  - `infrastructures.activeExecutions.spec.instances.targetState.state` (string, required)
    Enum: "unknown", "inactive", "instantiated", "running", "paused"

  - `infrastructures.activeExecutions.spec.metadata` (object)

  - `infrastructures.activeExecutions.spec.outputs` (object)

  - `infrastructures.activeExecutions.spec.targetState` (object, required)

  - `infrastructures.activeExecutions.specRevision` (integer, required)

  - `infrastructures.activeExecutions.startedAt` (string, required)

  - `infrastructures.activeExecutions.stoppedAt` (string)

  - `infrastructures.activeExecutions.targetState` (object, required)

  - `infrastructures.identifier` (string, required)
    ID of the infrastructure

  - `infrastructures.spec` (object)

  - `infrastructures.spec.createdAt` (string)
    date (RFC3339) when the spec was created

  - `infrastructures.spec.infrastructure` (object)

  - `infrastructures.spec.revision` (integer)

  - `infrastructures.state` (object, required)

  - `infrastructures.state.createdAt` (string)
    date (RFC3339) when the spec was created

  - `infrastructures.state.sessionEndedAt` (string)

  - `infrastructures.state.sessionStartedAt` (string)

  - `infrastructures.state.updatedAt` (string)
    date (RFC3339) when the spec was updated

  - `total` (integer)

## Response 400 fields (application/json):

  - `code` (string)

  - `details` (object)

  - `message` (string, required)

  - `name` (string, required)


