GalleryResource.GetGalleryScriptAsync(String, CancellationToken) Method

Definition

Retrieves information about a gallery script definition.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryScriptResource>> GetGalleryScriptAsync(string galleryScriptName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGalleryScriptAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryScriptResource>>
override this.GetGalleryScriptAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.GalleryScriptResource>>
Public Overridable Function GetGalleryScriptAsync (galleryScriptName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GalleryScriptResource))

Parameters

galleryScriptName
String

The name of the gallery Script Definition to be retrieved.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

galleryScriptName is null.

galleryScriptName is an empty string, and was expected to be non-empty.

Applies to