Share via


HealthModelResource.GetHealthModelRelationshipAsync Method

Definition

Get a Relationship

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/relationships/{relationshipName}
  • Operation Id: Relationship_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelRelationshipResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>> GetHealthModelRelationshipAsync(string relationshipName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHealthModelRelationshipAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>>
override this.GetHealthModelRelationshipAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>>
Public Overridable Function GetHealthModelRelationshipAsync (relationshipName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HealthModelRelationshipResource))

Parameters

relationshipName
String

Name of the relationship. Must be unique within a health model. For example, a concatenation of parentEntityName and childEntityName can be used as the name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

relationshipName is null.

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

Applies to