Dev Boxes - Get Snapshot

Gets a snapshot by snapshot id.

GET {endpoint}/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/snapshots/{snapshotId}?api-version=2025-02-01

URI Parameters

Name In Required Type Description
devBoxName
path True

string

Display name for the Dev Box.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$

endpoint
path True

string

uri

The DevCenter-specific URI to operate on.

projectName
path True

string

Name of the project.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$

snapshotId
path True

string

The id of the snapshot. Should be treated as opaque string.

userId
path True

string

The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.

Regex pattern: ^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

DevBoxSnapshot

The request has succeeded.

Other Status Codes

Azure.Core.Foundations.ErrorResponse

An unexpected error response.

Headers

x-ms-error-code: string

Security

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
https://devcenter.azure.com/.default

Examples

Gets a snapshot by snapshot id.

Sample request

GET https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/me/devboxes/myDevBox/snapshots/CPC_974f0852-a0f4-4a9f-8ce7-d0d0d7a604cf_9b656834-3563-4bca-93c6-f90cfa3c6797?api-version=2025-02-01

Sample response

{
  "snapshotId": "CPC_974f0852-a0f4-4a9f-8ce7-d0d0d7a604cf_9b656834-3563-4bca-93c6-f90cfa3c6797",
  "createdTime": "2022-09-30T15:23:00Z",
  "snapshotType": "Automatic"
}

Definitions

Name Description
Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

DevBoxSnapshot

A DevBox snapshot

SnapshotType

The type of snapshot.

Azure.Core.Foundations.Error

The error object.

Name Type Description
code

string

One of a server-defined set of error codes.

details

Azure.Core.Foundations.Error[]

An array of details about specific errors that led to this reported error.

innererror

Azure.Core.Foundations.InnerError

An object containing more specific information than the current object about the error.

message

string

A human-readable representation of the error.

target

string

The target of the error.

Azure.Core.Foundations.ErrorResponse

A response containing error details.

Name Type Description
error

Azure.Core.Foundations.Error

The error object.

Azure.Core.Foundations.InnerError

An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

Name Type Description
code

string

One of a server-defined set of error codes.

innererror

Azure.Core.Foundations.InnerError

Inner error.

DevBoxSnapshot

A DevBox snapshot

Name Type Description
createdTime

string

The datetime that the snapshot was created, in RFC3339 format.

expirationTime

string

The datetime when the snapshot expires, will only be shown for a manual snapshot, in RFC3339 format.

snapshotId

string

The id of the snapshot. Should be treated as opaque string.

snapshotType

SnapshotType

The type of the snapshot indicates whether it is manual or automatic.

SnapshotType

The type of snapshot.

Value Description
Automatic

The snapshot type indicates that this is an automatically taken snapshot.

Manual

The snapshot type indicates that this is a manually taken snapshot.