ModelSourceCollection.Get(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource> Get(string modelSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ContainerServiceAIManager.ModelSourceResource>
Public Overridable Function Get (modelSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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.