ArmComputeModelFactory.GrantAccessData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of GrantAccessData.
public static Azure.ResourceManager.Compute.Models.GrantAccessData GrantAccessData(Azure.ResourceManager.Compute.Models.AccessLevel access = default, int durationInSeconds = 0, bool? getSecureVmGuestStateSas = default, Azure.ResourceManager.Compute.Models.DiskImageFileFormat? fileFormat = default);
static member GrantAccessData : Azure.ResourceManager.Compute.Models.AccessLevel * int * Nullable<bool> * Nullable<Azure.ResourceManager.Compute.Models.DiskImageFileFormat> -> Azure.ResourceManager.Compute.Models.GrantAccessData
Public Shared Function GrantAccessData (Optional access As AccessLevel = Nothing, Optional durationInSeconds As Integer = 0, Optional getSecureVmGuestStateSas As Nullable(Of Boolean) = Nothing, Optional fileFormat As Nullable(Of DiskImageFileFormat) = Nothing) As GrantAccessData
Parameters
- access
- AccessLevel
The Access Level, accepted values include None, Read, Write.
- durationInSeconds
- Int32
Time duration in seconds until the SAS access expires.
Set this flag to true to get additional SAS for VM guest state.
- fileFormat
- Nullable<DiskImageFileFormat>
Used to specify the file format when making request for SAS on a VHDX file format snapshot.
Returns
A new GrantAccessData instance for mocking.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET