סנכרון של סביבת עבודה לגרסה האחרונה של הקונטיינרים על ידי עדכון של כל הפריטים ישויות Workspace שלא שונו והצגת התנגשויות בין של ישויות. רוצים לנסות עכשיו?
בקשה
בקשת HTTP
POST https://www.googleapis.com/tagmanager/v2/+path:sync
פרמטרים
שם הפרמטר | ערך | תיאור |
---|---|---|
פרמטרים של נתיב | ||
path |
string |
הנתיב היחסי של ה-API של GTM Workspace. דוגמה: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} |
אישור
הבקשה הזו מחייבת הרשאה עם ההיקף הבא:
היקף |
---|
https://www.googleapis.com/auth/tagmanager.edit.containers |
מידע נוסף זמין בדף אימות והרשאה.
גוף הבקשה
אל תספקו גוף בקשה בשיטה הזו.
תשובה
אם הפעולה בוצעה ללא שגיאות, השיטה הזו מחזירה גוף תגובה עם המבנה הבא:
{ "syncStatus": { "mergeConflict": boolean, "syncError": boolean }, "mergeConflict": [ { "entityInWorkspace": { "tag": accounts.containers.workspaces.tags Resource, "trigger": accounts.containers.workspaces.triggers Resource, "variable": accounts.containers.workspaces.variables Resource, "folder": accounts.containers.workspaces.folders Resource, "client": accounts.containers.workspaces.clients Resource, "transformation": accounts.containers.workspaces.transformations Resource, "zone": accounts.containers.workspaces.zones Resource, "customTemplate": accounts.containers.workspaces.templates Resource, "builtInVariable": { "path": string, "accountId": string, "containerId": string, "workspaceId": string, "type": string, "name": string }, "gtagConfig": accounts.containers.workspaces.gtag_config Resource, "changeStatus": string }, "entityInBaseVersion": { "tag": accounts.containers.workspaces.tags Resource, "trigger": accounts.containers.workspaces.triggers Resource, "variable": accounts.containers.workspaces.variables Resource, "folder": accounts.containers.workspaces.folders Resource, "client": accounts.containers.workspaces.clients Resource, "transformation": accounts.containers.workspaces.transformations Resource, "zone": accounts.containers.workspaces.zones Resource, "customTemplate": accounts.containers.workspaces.templates Resource, "builtInVariable": { "path": string, "accountId": string, "containerId": string, "workspaceId": string, "type": string, "name": string }, "gtagConfig": accounts.containers.workspaces.gtag_config Resource, "changeStatus": string } } ] }
שם הנכס | ערך | תיאור | הערות |
---|---|---|---|
syncStatus |
nested object |
מציין אם הסנכרון גרם להתנגשות במיזוג או לשגיאה בסנכרון. | |
syncStatus.mergeConflict |
boolean |
פעולת סנכרון הקרן זיהתה התנגשות במיזוג. | |
syncStatus.syncError |
boolean |
אירעה שגיאה במהלך פעולת הסנכרון. | |
mergeConflict[] |
list |
התנגשות המיזוג לאחר הסנכרון אם השדה הזה לא ריק, הסנכרון עדיין נחשב כסנכרון מוצלח. עם זאת, לא ניתן ליצור גרסה עד לפתרון כל ההתנגשויות. | |
mergeConflict[].entityInWorkspace |
nested object |
הישות של סביבת העבודה שמכילה שינויים מתנגשים בהשוואה לגרסת הבסיס. אם ישות נמחקה בסביבת עבודה, היא עדיין תופיע עם סטטוס השינוי שנמחק. | |
mergeConflict[].entityInWorkspace.tag |
nested object |
התג שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.trigger |
nested object |
הטריגר שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.variable |
nested object |
המשתנה שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.folder |
nested object |
התיקייה שהישות מייצגת. | |
mergeConflict[].entityInWorkspace.changeStatus |
string |
מייצג את האופן שבו הישות השתנתה בסביבת העבודה.
הערכים הקבילים הם:
|
|
mergeConflict[].entityInBaseVersion |
nested object |
הישות של גרסת הבסיס (מאז פעולת הסנכרון האחרונה) שיש בה שינויים מתנגשים בהשוואה לסביבת העבודה. אם השדה הזה חסר, המשמעות היא שהישות של סביבת העבודה נמחקה מהגרסה הבסיסית. | |
mergeConflict[].entityInBaseVersion.tag |
nested object |
התג שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.trigger |
nested object |
הטריגר שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.variable |
nested object |
המשתנה שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.folder |
nested object |
התיקייה שהישות מייצגת. | |
mergeConflict[].entityInBaseVersion.changeStatus |
string |
מייצג את האופן שבו הישות השתנתה בסביבת העבודה.
הערכים הקבילים הם:
|
|
mergeConflict[].entityInWorkspace.client |
nested object |
הלקוח שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.client |
nested object |
הלקוח שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.transformation |
nested object |
הטרנספורמציה שמיוצגת על ידי הישות. | |
mergeConflict[].entityInBaseVersion.transformation |
nested object |
הטרנספורמציה שמיוצגת על ידי הישות. | |
mergeConflict[].entityInWorkspace.zone |
nested object |
התחום שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.customTemplate |
nested object |
התבנית המותאמת אישית שמיוצגת על ידי הישות. | |
mergeConflict[].entityInWorkspace.builtInVariable |
nested object |
המשתנה המובנה שמיוצג על ידי הישות. | |
mergeConflict[].entityInWorkspace.builtInVariable.path |
string |
הנתיב היחסי ל-API של GTM BuiltInVariable. | |
mergeConflict[].entityInWorkspace.builtInVariable.accountId |
string |
מספר חשבון GTM. | |
mergeConflict[].entityInWorkspace.builtInVariable.containerId |
string |
מזהה מאגר התגים של GTM. | |
mergeConflict[].entityInWorkspace.builtInVariable.workspaceId |
string |
מזהה GTM של Workspace. | |
mergeConflict[].entityInWorkspace.builtInVariable.type |
string |
סוג המשתנה המובנה.
הערכים הקבילים הם:
|
|
mergeConflict[].entityInWorkspace.builtInVariable.name |
string |
השם של המשתנה המובנה שישמש להתייחס למשתנה המובנה. | |
mergeConflict[].entityInWorkspace.gtagConfig |
nested object |
הגדרת gtag שמיוצגת על ידי הישות. | |
mergeConflict[].entityInBaseVersion.zone |
nested object |
התחום שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.customTemplate |
nested object |
התבנית המותאמת אישית שמיוצגת על ידי הישות. | |
mergeConflict[].entityInBaseVersion.builtInVariable |
nested object |
המשתנה המובנה שמיוצג על ידי הישות. | |
mergeConflict[].entityInBaseVersion.builtInVariable.path |
string |
הנתיב היחסי ל-API של GTM BuiltInVariable. | |
mergeConflict[].entityInBaseVersion.builtInVariable.accountId |
string |
מספר חשבון GTM. | |
mergeConflict[].entityInBaseVersion.builtInVariable.containerId |
string |
מזהה מאגר התגים של GTM. | |
mergeConflict[].entityInBaseVersion.builtInVariable.workspaceId |
string |
מזהה GTM של Workspace. | |
mergeConflict[].entityInBaseVersion.builtInVariable.type |
string |
סוג המשתנה המובנה.
הערכים הקבילים הם:
|
|
mergeConflict[].entityInBaseVersion.builtInVariable.name |
string |
השם של המשתנה המובנה שישמש להתייחס למשתנה המובנה. | |
mergeConflict[].entityInBaseVersion.gtagConfig |
nested object |
הגדרת gtag שמיוצגת על ידי הישות. |
נסה בעצמך!
אפשר להשתמש ב-APIs Explorer שבהמשך כדי להפעיל את השיטה הזו בנתונים בזמן אמת ולראות את התגובה.