Share via


ScriptExecutionCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
  • Operation Id: ScriptExecutions_Get
  • Default Api Version: 2023-03-01
  • Resource: ScriptExecutionResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Avs.ScriptExecutionResource> GetIfExists (string scriptExecutionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Avs.ScriptExecutionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Avs.ScriptExecutionResource>
Public Overridable Function GetIfExists (scriptExecutionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ScriptExecutionResource)

Parameters

scriptExecutionName
String

Name of the user-invoked script execution resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scriptExecutionName is null.

Applies to