Language

ModelSourceCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/aiManagers/{aiManagerName}/modelSources/{modelSourceName}.
  • Operation Id. : ModelSources_Get.
  • Default Api Version. : 2026-09-02-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource> GetIfExists(string modelSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>
Public Overridable Function GetIfExists (modelSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ModelSourceResource)

Parameters

modelSourceName
String

The name of the model source resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

modelSourceName is null.

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

Applies to