Disks - Grant Access

Grants access to a disk.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess?api-version=2020-06-30

URI Parameters

Name In Required Type Description
diskName
path True
  • string

The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

resourceGroupName
path True
  • string

The name of the resource group.

subscriptionId
path True
  • string

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

api-version
query True
  • string

Client Api Version.

Request Body

Name Required Type Description
access True
durationInSeconds True
  • integer

Time duration in seconds until the SAS access expires.

Responses

Name Type Description
200 OK

OK

202 Accepted

Accepted

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

Definitions

AccessLevel
AccessUri

A disk access SAS uri.

GrantAccessData

Data used for requesting a SAS.

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.

GrantAccessData

Data used for requesting a SAS.

Name Type Description
access
durationInSeconds
  • integer

Time duration in seconds until the SAS access expires.