SelfHelpSolutionResultCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /providers/Microsoft.Help/selfHelp/{solutionId}.
  • Operation Id. : SolutionResourceSelfHelps_Get.
  • Default Api Version. : 2024-03-01-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SelfHelp.SelfHelpSolutionResultResource>> GetIfExistsAsync(string solutionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SelfHelp.SelfHelpSolutionResultResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.SelfHelp.SelfHelpSolutionResultResource>>
Public Overridable Function GetIfExistsAsync (solutionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of SelfHelpSolutionResultResource))

Parameters

solutionId
String

SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

solutionId is null.

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

Applies to