GrantAccessData Class

Data used for requesting a SAS.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.compute._serialization.Model
GrantAccessData

Constructor

GrantAccessData(*, access: str | _models.AccessLevel, duration_in_seconds: int, get_secure_vm_guest_state_sas: bool | None = None, file_format: str | _models.FileFormat | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
access

Required. Known values are: "None", "Read", and "Write".

duration_in_seconds
int

Time duration in seconds until the SAS access expires. Required.

get_secure_vm_guest_state_sas

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

file_format

Used to specify the file format when making request for SAS on a VHDX file format snapshot. Known values are: "VHD" and "VHDX".

Variables

Name Description
access

Required. Known values are: "None", "Read", and "Write".

duration_in_seconds
int

Time duration in seconds until the SAS access expires. Required.

get_secure_vm_guest_state_sas

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

file_format

Used to specify the file format when making request for SAS on a VHDX file format snapshot. Known values are: "VHD" and "VHDX".