你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PurviewRelationships.GetPurviewRelationship 方法

定义

通过其 GUID 获取实体之间的关系信息。

public virtual Azure.Response GetPurviewRelationship (string guid, bool? extendedInfo = default, Azure.RequestContext context = default);
abstract member GetPurviewRelationship : string * Nullable<bool> * Azure.RequestContext -> Azure.Response
override this.GetPurviewRelationship : string * Nullable<bool> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetPurviewRelationship (guid As String, Optional extendedInfo As Nullable(Of Boolean) = Nothing, Optional context As RequestContext = Nothing) As Response

参数

guid
String

关系的全局唯一标识符。

extendedInfo
Nullable<Boolean>

限制是否包含扩展信息。

context
RequestContext

请求上下文,它可以基于每个调用覆盖请求的默认行为。

返回

例外

guid 为 null。

guid 是一个空字符串,预期为非空。

注解

Response Body架构:

{
              referredEntities: Dictionary<string, AtlasEntityHeader>,
              relationship: {
                attributes: Dictionary<string, AnyObject>,
                typeName: string,
                lastModifiedTS: string,
                createTime: number,
                createdBy: string,
                end1: {
                  guid: string,
                  typeName: string,
                  uniqueAttributes: Dictionary<string, AnyObject>
                },
                end2: AtlasObjectId,
                guid: string,
                homeId: string,
                label: string,
                provenanceType: number,
                status: "ACTIVE" | "DELETED",
                updateTime: number,
                updatedBy: string,
                version: number
              }
            }

Response Error架构:

{
              requestId: string,
              errorCode: string,
              errorMessage: string
            }

适用于