結構描述資料庫中的所有資源都包含在組織內的特定沙箱中。 在某些情況下,您可能會想要在沙箱和組織之間共用Experience Data Model (XDM)資源。
為了滿足此需求, 方案 Adobe Experience Platform UI中的工作區可讓您為結構描述資料庫中的任何結構描述產生匯出裝載。 然後,此裝載可用於對結構描述登入API的呼叫中,以將結構描述(以及所有相依資源)匯入目標沙箱和組織。
您也可以使用Schema Registry API來匯出結構描述以外的其他資源,包括類別、結構描述欄位群組和資料型別。 請參閱 匯出端點指南 以取得詳細資訊。
雖然Platform UI可讓您匯出XDM資源,但您必須使用結構描述登入API將這些資源匯入其他沙箱或組織以完成工作流程。 請參閱以下指南: 開始使用結構描述登入API 如需有關所需驗證標題的重要資訊,請參閱本指南。
匯出裝載可在Platform UI中從的詳細資訊面板產生 瀏覽 索引標籤中,或直接從結構編輯器中的結構畫布中存取。
若要產生匯出裝載,請選取「 」 方案 ,位於左側導覽器中。 在 方案 在工作區中,選取您要匯出的結構描述列,以在右側邊欄中顯示結構描述詳細資訊。
請參閱以下指南: 探索XDM資源 以取得有關如何尋找您所尋找XDM資源的詳細資訊。
接下來,選取 複製JSON 圖示()中。
這樣會根據結構描述結構產生JSON裝載並複製到剪貼簿。 針對"Loyalty Members"如上所示的結構描述,會產生以下JSON:
[
{
"$id": "https://ns.adobe.com/<XDM_TENANTID_PLACEHOLDER>/mixins/9ecfd881d0053568d277b792e4d24c6b70ffa7782bd31265",
"meta:altId": "_<XDM_TENANTID_PLACEHOLDER>.mixins.9ecfd881d0053568d277b792e4d24c6b70ffa7782bd31265",
"meta:resourceType": "mixins",
"version": "1.0",
"title": "Loyalty details",
"type": "object",
"description": "",
"definitions": {
"customFields": {
"type": "object",
"properties": {
"_<XDM_TENANTID_PLACEHOLDER>": {
"type": "object",
"properties": {
"loyalty": {
"title": "Loyalty",
"description": "",
"type": "object",
"isRequired": false,
"required": [
],
"properties": {
"loyaltyId": {
"title": "Loyalty ID",
"description": "",
"type": "string",
"isRequired": false,
"required": [
],
"meta:xdmType": "string"
},
"memberSince": {
"title": "Member Since",
"description": "",
"type": "string",
"isRequired": false,
"required": [
],
"format": "date",
"meta:xdmType": "date"
},
"points": {
"title": "Points",
"description": "",
"type": "integer",
"isRequired": false,
"required": [
],
"meta:xdmType": "int"
},
"loyaltyLevel": {
"title": "Loyalty Level",
"description": "",
"type": "string",
"isRequired": false,
"required": [
],
"enum": [
"platinum",
"gold",
"silver",
"bronze"
],
"meta:enum": {
"platinum": "Platinum",
"gold": "Gold",
"silver": "Silver",
"bronze": "Bronze"
},
"meta:xdmType": "string"
}
},
"meta:xdmType": "object"
}
},
"meta:xdmType": "object"
}
},
"meta:xdmType": "object"
}
},
"allOf": [
{
"$ref": "#/definitions/customFields",
"type": "object",
"meta:xdmType": "object"
}
],
"meta:extensible": true,
"meta:abstract": true,
"meta:intendedToExtend": [
],
"meta:xdmType": "object",
"meta:sandboxId": "1bd86660-c5da-11e9-93d4-6d5fc3a66a8e",
"meta:sandboxType": "production"
},
{
"$id": "https://ns.adobe.com/<XDM_TENANTID_PLACEHOLDER>/schemas/1e5a739ded8fd1d766a0e06e881a38031874dddd1c7020ad",
"meta:altId": "_<XDM_TENANTID_PLACEHOLDER>.schemas.1e5a739ded8fd1d766a0e06e881a38031874dddd1c7020ad",
"meta:resourceType": "schemas",
"version": "1.4",
"title": "Loyalty Members",
"type": "object",
"description": "Describes customers who are members of a loyalty program.",
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/context/profile",
"type": "object",
"meta:xdmType": "object"
},
{
"$ref": "https://ns.adobe.com/xdm/context/profile-person-details",
"type": "object",
"meta:xdmType": "object"
},
{
"$ref": "https://ns.adobe.com/xdm/context/profile-personal-details",
"type": "object",
"meta:xdmType": "object"
},
{
"$ref": "https://ns.adobe.com/<XDM_TENANTID_PLACEHOLDER>/mixins/9ecfd881d0053568d277b792e4d24c6b70ffa7782bd31265",
"type": "object",
"meta:xdmType": "object"
},
{
"$ref": "https://ns.adobe.com/xdm/mixins/profile-consents",
"type": "object",
"meta:xdmType": "object"
}
],
"meta:extensible": false,
"meta:abstract": false,
"meta:extends": [
"https://ns.adobe.com/xdm/context/profile-person-details",
"https://ns.adobe.com/xdm/context/profile-personal-details",
"https://ns.adobe.com/xdm/common/auditable",
"https://ns.adobe.com/xdm/data/record",
"https://ns.adobe.com/xdm/context/profile",
"https://ns.adobe.com/<XDM_TENANTID_PLACEHOLDER>/mixins/9ecfd881d0053568d277b792e4d24c6b70ffa7782bd31265",
"https://ns.adobe.com/xdm/mixins/profile-consents"
],
"meta:xdmType": "object",
"meta:class": "https://ns.adobe.com/xdm/context/profile",
"meta:sandboxId": "1bd86660-c5da-11e9-93d4-6d5fc3a66a8e",
"meta:sandboxType": "production",
"meta:immutableTags": [
]
}
]
也可透過選取 更多 結構編輯器右上角。 下拉式功能表提供兩個選項, 複製JSON結構 和 刪除結構描述.
為設定檔啟用結構描述或具有關聯的資料集時,無法刪除結構描述。
裝載採用陣列形式,每個陣列專案都是代表要匯出的自訂XDM資源的物件。 在上述範例中,「Loyalty details「自訂欄位群組和」Loyalty Members已包含「結構描述。 結構描述採用的任何核心資源都不會包含在匯出中,因為這些資源可用於所有沙箱和組織。
請注意,您組織的租使用者ID的每個例項都顯示為 <XDM_TENANTID_PLACEHOLDER>
在承載中。 這些預留位置會自動取代為適當的租使用者ID值,具體取決於您在下一個步驟匯入結構描述的位置。
複製結構描述的匯出JSON後,您可以將其用作POST請求的裝載,至 /rpc/import
結構描述登入API中的端點。 請參閱 匯入端點指南 有關如何設定呼叫以將結構傳送至所需組織和沙箱的詳細資訊。
依照本指南,您已成功將XDM結構描述匯出至不同的組織或沙箱。 如需功能的詳細資訊, 方案 UI,請參閱 方案 UI總覽.