Relationship - Create
エンティティ間に新しいリレーションシップを作成します。
POST {endpoint}/datamap/api/atlas/v2/relationship
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
endpoint
|
path | True |
string (uri) |
要求本文
| 名前 | 型 | 説明 |
|---|---|---|
| attributes |
構造体の属性。 |
|
| createTime |
integer (int64) |
レコードの作成時刻。 |
| createdBy |
string |
レコードを作成したユーザー。 |
| end1 |
エンティティのような型のオブジェクト インスタンスへの参照。 |
|
| end2 |
エンティティのような型のオブジェクト インスタンスへの参照。 |
|
| guid |
string |
リレーションシップの GUID。 |
| homeId |
string |
リレーションシップのホーム ID。 |
| label |
string |
リレーションシップのラベル。 |
| lastModifiedTS |
string |
コンカレンシー制御の ETag。 |
| provenanceType |
integer (int32) |
エンティティまたはリレーションシップのインスタンスの実績を記録するために使用されます |
| status |
リレーションシップの状態の列挙型。 |
|
| typeName |
string |
型の名前。 |
| updateTime |
integer (int64) |
レコードの更新時刻。 |
| updatedBy |
string |
レコードを更新したユーザー。 |
| version |
integer (int64) |
リレーションシップのバージョン。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
要求は成功しました。 |
|
| Other Status Codes |
予期しないエラー応答。 |
セキュリティ
OAuth2Auth
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| https://purview.azure.net/.default |
例
Relationship_Create
要求のサンプル
POST {endpoint}/datamap/api/atlas/v2/relationship
{
"typeName": "AtlasGlossarySynonym",
"attributes": {
"expression": "Example Expression",
"steward": "Example Steward",
"description": "Example Description",
"source": null,
"status": null
},
"end1": {
"guid": "856d31e6-e342-a1ce-6273-22ddb77029c6",
"typeName": "AtlasGlossaryTerm"
},
"end2": {
"guid": "77481037-2874-9bdc-9b9e-76bb94ee71aa",
"typeName": "AtlasGlossaryTerm"
},
"label": "r:AtlasGlossarySynonym",
"status": "ACTIVE",
"createdBy": "ExampleCreator",
"updatedBy": "ExampleUpdator",
"version": 0
}
応答のサンプル
{
"typeName": "AtlasGlossarySynonym",
"attributes": {
"expression": "Example Expression",
"steward": "Example Steward",
"description": "Example Description",
"source": null,
"status": null
},
"guid": "63023d5b-c499-4360-a513-16bcbf73b039",
"end1": {
"guid": "856d31e6-e342-a1ce-6273-22ddb77029c6",
"typeName": "AtlasGlossaryTerm"
},
"end2": {
"guid": "77481037-2874-9bdc-9b9e-76bb94ee71aa",
"typeName": "AtlasGlossaryTerm"
},
"label": "r:AtlasGlossarySynonym",
"status": "ACTIVE",
"createdBy": "ExampleCreator",
"updatedBy": "ExampleUpdator",
"createTime": 1553840134724,
"updateTime": 1553840134724,
"version": 0
}
定義
| 名前 | 説明 |
|---|---|
|
Atlas |
サービスからのエラー応答 |
|
Atlas |
エンティティのような型のオブジェクト インスタンスへの参照。 |
|
Atlas |
Atlas リレーションシップ インスタンス。 |
|
Status |
Atlas リレーションシップの状態 |
AtlasErrorResponse
サービスからのエラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| errorCode |
string |
エラー コード。 |
| errorMessage |
string |
エラー メッセージ。 |
| requestId |
string (uuid) |
要求 ID。 |
AtlasObjectId
エンティティのような型のオブジェクト インスタンスへの参照。
| 名前 | 型 | 説明 |
|---|---|---|
| guid |
string |
オブジェクトの GUID。 |
| typeName |
string |
型の名前。 |
| uniqueAttributes |
オブジェクトの一意の属性。 |
AtlasRelationship
Atlas リレーションシップ インスタンス。
| 名前 | 型 | 説明 |
|---|---|---|
| attributes |
構造体の属性。 |
|
| createTime |
integer (int64) |
レコードの作成時刻。 |
| createdBy |
string |
レコードを作成したユーザー。 |
| end1 |
エンティティのような型のオブジェクト インスタンスへの参照。 |
|
| end2 |
エンティティのような型のオブジェクト インスタンスへの参照。 |
|
| guid |
string |
リレーションシップの GUID。 |
| homeId |
string |
リレーションシップのホーム ID。 |
| label |
string |
リレーションシップのラベル。 |
| lastModifiedTS |
string |
コンカレンシー制御の ETag。 |
| provenanceType |
integer (int32) |
エンティティまたはリレーションシップのインスタンスの実績を記録するために使用されます |
| status |
リレーションシップの状態の列挙型。 |
|
| typeName |
string |
型の名前。 |
| updateTime |
integer (int64) |
レコードの更新時刻。 |
| updatedBy |
string |
レコードを更新したユーザー。 |
| version |
integer (int64) |
リレーションシップのバージョン。 |
StatusAtlasRelationship
Atlas リレーションシップの状態
| 値 | 説明 |
|---|---|
| ACTIVE |
活動中 |
| DELETED |
deleted |