Share via


ComputeExtensions.GetDiskEncryptionSets Method

Definition

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets
  • Operation Id: DiskEncryptionSets_List
  • Default Api Version: 2024-03-02
  • Resource: DiskEncryptionSetResource

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.

Applies to