HciClusterResource.GetClusterJobAsync(String, CancellationToken) Method

Definition

Get a ClusterJob.

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

Parameters

jobsName
String

Name of ClusterJob.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobsName is null.

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

Applies to