---
title: "Get metadata about a snapshot, including where it is in its processing and final results."
method: GET
path: "/cloudmigration/migration/{uid}/snapshot/{snapshotUid}"
tags: ["migrations"]
---

# Get metadata about a snapshot, including where it is in its processing and final results.

`GET /cloudmigration/migration/{uid}/snapshot/{snapshotUid}`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/cloudmigration/migration/{uid}/snapshot/{snapshotUid}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

## Path parameters

- `uid` string, required
- `snapshotUid` string, required

## Query parameters

- `resultPage` integer
- `resultLimit` integer
- `resultSortColumn` string
- `resultSortOrder` string
- `errorsOnly` boolean

## Response `200`

(empty)

- GetSnapshotResponseDTO
  - `created` string, date-time
  - `finished` string, date-time
  - `results` MigrateDataResponseItemDTO[]
    - `errorCode` 'ALERT_RULES_QUOTA_REACHED' | 'ALERT_RULES_GROUP_QUOTA_REACHED' | 'DATASOURCE_NAME_CONFLICT' | 'DATASOURCE_INVALID_URL' | 'DATASOURCE_ALREADY_MANAGED' | 'FOLDER_NAME_CONFLICT' | 'DASHBOARD_ALREADY_MANAGED' | 'LIBRARY_ELEMENT_NAME_CONFLICT' | 'UNSUPPORTED_DATA_TYPE' | 'RESOURCE_CONFLICT' | 'UNEXPECTED_STATUS_CODE' | 'INTERNAL_SERVICE_ERROR' | 'GENERIC_ERROR'
    - `message` string
    - `name` string
    - `parentName` string
    - `refId` string, required
    - `status` 'OK' | 'WARNING' | 'ERROR' | 'PENDING' | 'UNKNOWN', required
    - `type` 'DASHBOARD' | 'DATASOURCE' | 'FOLDER' | 'LIBRARY_ELEMENT' | 'ALERT_RULE' | 'ALERT_RULE_GROUP' | 'CONTACT_POINT' | 'NOTIFICATION_POLICY' | 'NOTIFICATION_TEMPLATE' | 'MUTE_TIMING' | 'PLUGIN', required
  - `sessionUid` string
  - `stats` SnapshotResourceStats
    - `statuses` object
    - `total` integer
    - `types` object
  - `status` 'INITIALIZING' | 'CREATING' | 'PENDING_UPLOAD' | 'UPLOADING' | 'PENDING_PROCESSING' | 'PROCESSING' | 'FINISHED' | 'CANCELED' | 'ERROR' | 'UNKNOWN'
  - `uid` string

## Other responses

- `400`: BadRequestError is returned when the request is invalid and it cannot be processed.
- `401`: UnauthorizedError is returned when the request is not authenticated.
- `403`: ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
- `500`: InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
