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 にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET