Partilhar via


ComputeExtensions.GetCapacityReservationGroups Método

Definição

Sobrecargas

GetCapacityReservationGroups(ResourceGroupResource)

Obtém uma coleção de CapacityReservationGroupResources no ResourceGroupResource.

GetCapacityReservationGroups(SubscriptionResource, Nullable<CapacityReservationGroupGetExpand>, CancellationToken)

Lista todos os grupos de reserva de capacidade na assinatura. Use a propriedade nextLink na resposta para obter a próxima página de grupos de reserva de capacidade.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups
  • IdCapacityReservationGroups_ListBySubscription de operação

GetCapacityReservationGroups(ResourceGroupResource)

Obtém uma coleção de CapacityReservationGroupResources no ResourceGroupResource.

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

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

Retornos

Um objeto que representa a coleção de CapacityReservationGroupResources e suas operações em um CapacityReservationGroupResource.

Aplica-se a

GetCapacityReservationGroups(SubscriptionResource, Nullable<CapacityReservationGroupGetExpand>, CancellationToken)

Lista todos os grupos de reserva de capacidade na assinatura. Use a propriedade nextLink na resposta para obter a próxima página de grupos de reserva de capacidade.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups
  • IdCapacityReservationGroups_ListBySubscription de operação
public static Azure.Pageable<Azure.ResourceManager.Compute.CapacityReservationGroupResource> GetCapacityReservationGroups (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetCapacityReservationGroups : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CapacityReservationGroupResource>
<Extension()>
Public Function GetCapacityReservationGroups (subscriptionResource As SubscriptionResource, Optional expand As Nullable(Of CapacityReservationGroupGetExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CapacityReservationGroupResource)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

expand
Nullable<CapacityReservationGroupGetExpand>

A expressão de expansão a ser aplicada na operação. Com base nos parâmetros de expansão especificados, retornamos a Máquina Virtual ou a Instância de VM ScaleSet ou ambas as IDs de recurso associadas ao grupo de reserva de capacidade na resposta.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção de CapacityReservationGroupResource que pode levar várias solicitações de serviço para iterar.

Aplica-se a