Share via


ContainerAppJobDetectorPropertyCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/{apiName}
  • Operation Id: Jobs_ProxyGet
  • Default Api Version: 2024-03-01
  • Resource: ContainerAppJobDetectorPropertyResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppJobDetectorPropertyResource>> GetIfExistsAsync (string apiName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppJobDetectorPropertyResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.AppContainers.ContainerAppJobDetectorPropertyResource>>
Public Overridable Function GetIfExistsAsync (apiName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ContainerAppJobDetectorPropertyResource))

Parameters

apiName
String

Proxy API Name for Container App Job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

apiName is null.

Applies to