Compartilhar via


ComputeExtensions.GetSharedGalleryAsync 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}
  • Operação IdSharedGalleries_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryResource>> GetSharedGalleryAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string galleryUniqueName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleryAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.SharedGalleryResource>>
<Extension()>
Public Function GetSharedGalleryAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, galleryUniqueName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SharedGalleryResource))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que 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 esperava-se que não estivesse vazia.

galleryUniqueName é nulo.

Aplica-se a