Compartilhar via


ComputeExtensions.GetSharedGallery Método

Definição

Obtenha uma galeria compartilhada por ID de assinatura ou ID de locatário.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}
  • IdSharedGalleries_Get de operação
public static Azure.Response<Azure.ResourceManager.Compute.SharedGalleryResource> GetSharedGallery (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string galleryUniqueName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGallery : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.SharedGalleryResource>
<Extension()>
Public Function GetSharedGallery (subscriptionResource As SubscriptionResource, location As AzureLocation, galleryUniqueName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SharedGalleryResource)

Parâmetros

subscriptionResource
SubscriptionResource

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

location
AzureLocation

Local do recurso.

galleryUniqueName
String

O nome exclusivo da Galeria Compartilhada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

galleryUniqueName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

galleryUniqueName é nulo.

Aplica-se a