Bagikan melalui


MachineLearningRegistryEnvironmentContainerCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}
  • Operation Id: RegistryEnvironmentContainers_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentContainerResource>> GetIfExistsAsync (string environmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentContainerResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.MachineLearning.MachineLearningRegistryEnvironmentContainerResource>>
Public Overridable Function GetIfExistsAsync (environmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of MachineLearningRegistryEnvironmentContainerResource))

Parameters

environmentName
String

Container name. This is case-sensitive.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

environmentName is null.

Applies to