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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET