---
title: "(BETA) Get Long Running Operation details"
method: GET
path: "/api/v1/ailake/operations/{operationId}"
tags: ["AI Lake - Services & Operations"]
---

# (BETA) Get Long Running Operation details

`GET /api/v1/ailake/operations/{operationId}`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/ailake/operations/{operationId}`
- Auth: none declared

(BETA) Retrieves details of a Long Running Operation specified by the operation-id.

## Path parameters

- `operationId` string, required

## Response `200`

AI Lake Long Running Operation details successfully retrieved

- union
  - FailedOperation: Operation that has failed
    - `id` string, required: Id of the operation
    - `kind` 'provision-database' | 'deprovision-database' | 'run-service-command' | 'analyze-statistics', required: Type of the long-running operation. * `provision-database` — Provisioning of an AI Lake database. * `deprovision-database` — Deprovisioning (deletion) of an AI Lake database. * `run-service-command` — Running a command in a particular AI Lake service. * `analyze-statistics` — Running ANALYZE TABLE for CBO statistics collection.
    - `status` 'failed', required
    - `error` OperationError, required: Error information for a failed operation
      - `detail` string, required: Human-readable error details
      - `status` integer, required: HTTP status code
      - `title` string, required: Human-readable error name
  - PendingOperation: Represents a Long-Running Operation: a process that takes some time to complete.
    - `id` string, required: Id of the operation
    - `kind` 'provision-database' | 'deprovision-database' | 'run-service-command' | 'analyze-statistics', required: Type of the long-running operation. * `provision-database` — Provisioning of an AI Lake database. * `deprovision-database` — Deprovisioning (deletion) of an AI Lake database. * `run-service-command` — Running a command in a particular AI Lake service. * `analyze-statistics` — Running ANALYZE TABLE for CBO statistics collection.
    - `status` string, required
  - SucceededOperation: Operation that has succeeded
    - `id` string, required: Id of the operation
    - `kind` 'provision-database' | 'deprovision-database' | 'run-service-command' | 'analyze-statistics', required: Type of the long-running operation. * `provision-database` — Provisioning of an AI Lake database. * `deprovision-database` — Deprovisioning (deletion) of an AI Lake database. * `run-service-command` — Running a command in a particular AI Lake service. * `analyze-statistics` — Running ANALYZE TABLE for CBO statistics collection.
    - `status` 'succeeded', required
    - `result` object: Operation-specific result payload, can be missing for operations like delete

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
