Sprog

ModelSourceCollection.GetAsync(String, CancellationToken) Method

Definition

Get a ModelSource

  • 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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>> GetAsync(string modelSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>>
Public Overridable Function GetAsync (modelSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(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