PublicCloudConnectorSolutionTypeCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/solutionTypes/{solutionType}.
  • Operation Id. : SolutionTypes_Get.
  • Default Api Version. : 2024-12-01.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorSolutionTypeResource>> GetIfExistsAsync(string solutionType, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorSolutionTypeResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.HybridConnectivity.PublicCloudConnectorSolutionTypeResource>>
Public Overridable Function GetIfExistsAsync (solutionType As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of PublicCloudConnectorSolutionTypeResource))

Parameters

solutionType
String

Solution Type resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

solutionType is null.

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

Applies to