---
title: "Gets the operation status for a resource."
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}"
tags: ["OperationStatus"]
---

# Gets the operation status for a resource.

`GET /subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}`

## Path parameters

- `subscriptionId` string, required
- `location` string, required
- `operationId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK

- OperationResource — Operation Resource
  - `endTime` string, date-time — End time of the operation
  - `error` Error — The resource management error response.
    - `additionalInfo` ErrorAdditionalInfo[] — The error additional info.
      - `info` object — The additional info.
      - `type` string — The additional info type.
    - `code` string — The error code.
    - `details` Error[] — The error details.
    - `message` string — The error message.
    - `target` string — The error target.
  - `id` string — It should match what is used to GET the operation result
  - `name` string — It must match the last segment of the "id" field, and will typically be a GUID / system generated value
  - `properties` OperationExtendedInfo — Operation Extended Info
    - `objectType` string, required — This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
  - `startTime` string, date-time — Start time of the operation
  - `status` string

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/dataprotection-microsoft-dataprotection-dataprotection.md) · [All operations](https://skmtc.dev/azure/apis/dataprotection-microsoft-dataprotection-dataprotection/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/dataprotection-microsoft-dataprotection-dataprotection/revisions/c882dff39aa4/schema)
