Share via


HybridRunbookWorkerCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}
  • Operation Id: HybridRunbookWorkers_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Automation.HybridRunbookWorkerResource> GetIfExists (string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Automation.HybridRunbookWorkerResource>
Public Overridable Function GetIfExists (hybridRunbookWorkerId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of HybridRunbookWorkerResource)

Parameters

hybridRunbookWorkerId
String

The hybrid runbook worker id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

hybridRunbookWorkerId is null.

Applies to