---
title: "GET /widgets/{widgetName}/operations/{operationId}"
method: GET
path: "/widgets/{widgetName}/operations/{operationId}"
---

# GET /widgets/{widgetName}/operations/{operationId}

`GET /widgets/{widgetName}/operations/{operationId}`

Gets status of a Widget operation.

## Path parameters

- `widgetName` string, required
- `operationId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- object — Provides status details for long running operations.
  - `id` string, required — The unique ID of the operation.
  - `status` 'NotStarted' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled', required — Enum describing allowed operation states.
  - `error` AzureCoreFoundationsError — The error object.
    - `code` string, required — One of a server-defined set of error codes.
    - `message` string, required — A human-readable representation of the error.
    - `target` string — The target of the error.
    - `details` AzureCoreFoundationsError[] — An array of details about specific errors that led to this reported error.
    - `innererror` AzureCoreFoundationsInnerError — An object containing more specific information about the error. As per Azure REST API guidelines - https://aka.ms/AzureRestApiGuidelines#handling-errors.
      - `code` string — One of a server-defined set of error codes.
      - `innererror` AzureCoreFoundationsInnerError — recursive
  - `result` WidgetSuite — A widget.
    - `name` string, required — The widget name.
    - `manufacturerId` string, required — The ID of the widget's manufacturer.
    - `sharedModel` FakedSharedModel — Faked shared model
      - `tag` string, required — The tag.
      - `createdAt` string, date-time, required — The created date.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/contosowidgetmanager-azure-contoso-widgetmanager.md) · [All operations](https://skmtc.net/azure/apis/contosowidgetmanager-azure-contoso-widgetmanager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/contosowidgetmanager-azure-contoso-widgetmanager/revisions/2317506a7480/schema)
