次の方法で共有


ComputeExtensions.GetDedicatedHostGroups Method

Definition

Overloads

GetDedicatedHostGroups(ResourceGroupResource)

Gets a collection of DedicatedHostGroupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDedicatedHostGroups() instead.

GetDedicatedHostGroups(SubscriptionResource, CancellationToken)

Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups
  • Operation Id: DedicatedHostGroups_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource

GetDedicatedHostGroups(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Gets a collection of DedicatedHostGroupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDedicatedHostGroups() instead.

public static Azure.ResourceManager.Compute.DedicatedHostGroupCollection GetDedicatedHostGroups (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDedicatedHostGroups : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.DedicatedHostGroupCollection
<Extension()>
Public Function GetDedicatedHostGroups (resourceGroupResource As ResourceGroupResource) As DedicatedHostGroupCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DedicatedHostGroupResources and their operations over a DedicatedHostGroupResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDedicatedHostGroups(SubscriptionResource, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups
  • Operation Id: DedicatedHostGroups_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
public static Azure.Pageable<Azure.ResourceManager.Compute.DedicatedHostGroupResource> GetDedicatedHostGroups (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDedicatedHostGroups : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.DedicatedHostGroupResource>
<Extension()>
Public Function GetDedicatedHostGroups (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DedicatedHostGroupResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DedicatedHostGroupResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to