Disk Restore Point - Grant Access

Grants access to a diskRestorePoint.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess?api-version=2024-03-02

URI Parameters

Name In Required Type Description
diskRestorePointName
path True

string

The name of the disk restore point created.

resourceGroupName
path True

string

The name of the resource group.

restorePointCollectionName
path True

string

The name of the restore point collection that the disk restore point belongs.

subscriptionId
path True

string

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

vmRestorePointName
path True

string

The name of the vm restore point that the disk disk restore point belongs.

api-version
query True

string

Client Api Version.

Request Body

Name Required Type Description
access True

AccessLevel

durationInSeconds True

integer

Time duration in seconds until the SAS access expires.

fileFormat

FileFormat

Used to specify the file format when making request for SAS on a VHDX file format snapshot

getSecureVMGuestStateSAS

boolean

Set this flag to true to get additional SAS for VM guest state

Responses

Name Type Description
200 OK

AccessUri

OK

202 Accepted

Accepted

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Grants access to a diskRestorePoint.

Sample request

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpc/restorePoints/vmrp/diskRestorePoints/TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745/beginGetAccess?api-version=2024-03-02

{
  "access": "Read",
  "durationInSeconds": 300,
  "fileFormat": "VHDX"
}

Sample response

{
  "accessSAS": "https://md-gpvmcxzlzxgd.partition.blob.storage.azure.net/xx3cqcx53f0v/abcd?sv=2014-02-14&sr=b&sk=key1&sig=XXX&st=2021-05-24T18:02:34Z&se=2021-05-24T18:19:14Z&sp=r"
}
Location: https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}&monitor=true&api-version=2024-03-02

Definitions

Name Description
AccessLevel
AccessUri

A disk access SAS uri.

ApiError

Api error.

ApiErrorBase

Api error base.

CloudError

An error response from the Compute service.

FileFormat

Used to specify the file format when making request for SAS on a VHDX file format snapshot

GrantAccessData

Data used for requesting a SAS.

InnerError

Inner error details.

AccessLevel

Name Type Description
None

string

Read

string

Write

string

AccessUri

A disk access SAS uri.

Name Type Description
accessSAS

string

A SAS uri for accessing a disk.

securityDataAccessSAS

string

A SAS uri for accessing a VM guest state.

ApiError

Api error.

Name Type Description
code

string

The error code.

details

ApiErrorBase[]

The Api error details

innererror

InnerError

The Api inner error

message

string

The error message.

target

string

The target of the particular error.

ApiErrorBase

Api error base.

Name Type Description
code

string

The error code.

message

string

The error message.

target

string

The target of the particular error.

CloudError

An error response from the Compute service.

Name Type Description
error

ApiError

Api error.

FileFormat

Used to specify the file format when making request for SAS on a VHDX file format snapshot

Name Type Description
VHD

string

A VHD file is a disk image file in the Virtual Hard Disk file format.

VHDX

string

A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.

GrantAccessData

Data used for requesting a SAS.

Name Type Description
access

AccessLevel

durationInSeconds

integer

Time duration in seconds until the SAS access expires.

fileFormat

FileFormat

Used to specify the file format when making request for SAS on a VHDX file format snapshot

getSecureVMGuestStateSAS

boolean

Set this flag to true to get additional SAS for VM guest state

InnerError

Inner error details.

Name Type Description
errordetail

string

The internal error message or exception dump.

exceptiontype

string

The exception type.