你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeExtensions.GetDiskEncryptionSets 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.
Overloads
GetDiskEncryptionSets(ResourceGroupResource) |
Gets a collection of DiskEncryptionSetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDiskEncryptionSets() instead. |
GetDiskEncryptionSets(SubscriptionResource, CancellationToken) |
Lists all the disk encryption sets under a subscription.
|
GetDiskEncryptionSets(ResourceGroupResource)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
Gets a collection of DiskEncryptionSetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDiskEncryptionSets() instead.
public static Azure.ResourceManager.Compute.DiskEncryptionSetCollection GetDiskEncryptionSets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDiskEncryptionSets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.DiskEncryptionSetCollection
<Extension()>
Public Function GetDiskEncryptionSets (resourceGroupResource As ResourceGroupResource) As DiskEncryptionSetCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of DiskEncryptionSetResources and their operations over a DiskEncryptionSetResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetDiskEncryptionSets(SubscriptionResource, CancellationToken)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
Lists all the disk encryption sets under a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets
- Operation Id: DiskEncryptionSets_List
- Default Api Version: 2024-03-02
- Resource: DiskEncryptionSetResource
public static Azure.Pageable<Azure.ResourceManager.Compute.DiskEncryptionSetResource> GetDiskEncryptionSets (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDiskEncryptionSets : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.DiskEncryptionSetResource>
<Extension()>
Public Function GetDiskEncryptionSets (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DiskEncryptionSetResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DiskEncryptionSetResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.