Share via


HealthModelResource.GetHealthModelRelationship 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 Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource> GetHealthModelRelationship(string relationshipName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHealthModelRelationship : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>
override this.GetHealthModelRelationship : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>
Public Overridable Function GetHealthModelRelationship (relationshipName As String, Optional cancellationToken As CancellationToken = Nothing) As 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