AdvisorTriageCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/resiliencyReviews/{reviewId}/providers/Microsoft.Advisor/triageRecommendations/{recommendationId}/providers/Microsoft.Advisor/triageResources/{recommendationResourceId}.
  • Operation Id. : TriageResources_Get.
  • Default Api Version. : 2025-05-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.Advisor.AdvisorTriageResource> GetIfExists(string recommendationResourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Advisor.AdvisorTriageResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Advisor.AdvisorTriageResource>
Public Overridable Function GetIfExists (recommendationResourceId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of AdvisorTriageResource)

Parameters

recommendationResourceId
String

Existing recommendation triage resource associated with a triage recommendation. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

recommendationResourceId is null.

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

Applies to