## Get Pipeline File Status

`ManagedIngestionStatusResponse Pipelines.Files.GetStatus(FileGetStatusParamsparameters, CancellationTokencancellationToken = default)`

**get** `/api/v1/pipelines/{pipeline_id}/files/{file_id}/status`

Get status of a file for a pipeline.

### Parameters

- `FileGetStatusParams parameters`

  - `required string pipelineID`

  - `required string fileID`

### Returns

- `class ManagedIngestionStatusResponse:`

  - `required Status Status`

    Status of the ingestion.

    - `"CANCELLED"Cancelled`

    - `"ERROR"Error`

    - `"IN_PROGRESS"InProgress`

    - `"NOT_STARTED"NotStarted`

    - `"PARTIAL_SUCCESS"PartialSuccess`

    - `"SUCCESS"Success`

  - `DateTimeOffset? DeploymentDate`

    Date of the deployment.

  - `DateTimeOffset? EffectiveAt`

    When the status is effective

  - `IReadOnlyList<Error>? Error`

    List of errors that occurred during ingestion.

    - `required string JobID`

      ID of the job that failed.

    - `required string Message`

      List of errors that occurred during ingestion.

    - `required Step Step`

      Name of the job that failed.

      - `"DATA_SOURCE"DataSource`

      - `"FILE_UPDATER"FileUpdater`

      - `"INGESTION"Ingestion`

      - `"MANAGED_INGESTION"ManagedIngestion`

      - `"METADATA_UPDATE"MetadataUpdate`

      - `"PARSE"Parse`

      - `"TRANSFORM"Transform`

  - `string? JobID`

    ID of the latest job.

### Example

```csharp
FileGetStatusParams parameters = new()
{
    PipelineID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    FileID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
};

var managedIngestionStatusResponse = await client.Pipelines.Files.GetStatus(parameters);

Console.WriteLine(managedIngestionStatusResponse);
```

#### Response

```json
{
  "status": "CANCELLED",
  "deployment_date": "2019-12-27T18:11:19.117Z",
  "effective_at": "2019-12-27T18:11:19.117Z",
  "error": [
    {
      "job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "message": "message",
      "step": "DATA_SOURCE"
    }
  ],
  "job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```
