你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeExtensions.GetDedicatedHostGroups 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
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.
|
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-03-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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈