Поделиться через


HealthModelRelationshipCollection.GetAsync(String, CancellationToken) 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>> GetAsync(string relationshipName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CloudHealth.HealthModelRelationshipResource>>
Public Overridable Function GetAsync (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 an empty string, and was expected to be non-empty.

relationshipName is null.

Applies to