Partilhar via


ComputeExtensions.GetGallery Método

Definição

Recupera informações sobre um Galeria de Imagens Compartilhadas.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}
  • Operação IdGalleries_Get
public static Azure.Response<Azure.ResourceManager.Compute.GalleryResource> GetGallery (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string galleryName, Azure.ResourceManager.Compute.Models.SelectPermission? select = default, Azure.ResourceManager.Compute.Models.GalleryExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetGallery : Azure.ResourceManager.Resources.ResourceGroupResource * string * Nullable<Azure.ResourceManager.Compute.Models.SelectPermission> * Nullable<Azure.ResourceManager.Compute.Models.GalleryExpand> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.GalleryResource>
<Extension()>
Public Function GetGallery (resourceGroupResource As ResourceGroupResource, galleryName As String, Optional select As Nullable(Of SelectPermission) = Nothing, Optional expand As Nullable(Of GalleryExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GalleryResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

galleryName
String

O nome do Galeria de Imagens Compartilhadas.

select
Nullable<SelectPermission>

A expressão select a ser aplicada na operação.

expand
Nullable<GalleryExpand>

A opção expandir consulta a ser aplicada na operação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

galleryName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

galleryName é nulo.

Aplica-se a