Dela via


PurviewRelationships.CreateAsync(RequestContent, RequestContext) Method

Definition

Create a new relationship between entities.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateAsync (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors on the request on a per-call basis.

Returns

Exceptions

content is null.

Remarks

Schema for Request Body:

{
              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
            }

Schema for Response Body:

{
              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
            }

Schema for Response Error:

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

Applies to