Workspaces: getStatus

Tìm các thực thể xung đột và đã được sửa đổi trong không gian làm việc. Thử ngay.

Yêu cầu

Yêu cầu HTTP

GET https://www.googleapis.com/tagmanager/v2/+path/status

Thông số

Tên thông số Giá trị Nội dung mô tả
Tham số đường dẫn
path string Đường dẫn tương đối cho API của GTM Workspace. Ví dụ: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}

Ủy quyền

Yêu cầu này cần có sự uỷ quyền với ít nhất một trong các phạm vi sau:

Phạm vi
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.readonly

Để biết thêm thông tin, hãy xem trang xác thực và uỷ quyền.

Nội dung yêu cầu

Đừng cung cấp nội dung yêu cầu bằng phương thức này.

Phản hồi

Nếu thành công, phương thức này sẽ trả về nội dung phản hồi có cấu trúc như sau:

{
  "workspaceChange": [
    {
      "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
    }
  ],
  "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
      }
    }
  ]
}
Tên tài sản Giá trị Nội dung mô tả Ghi chú
workspaceChange[] list Các mục đã được thay đổi trong không gian làm việc.
workspaceChange[].tag nested object Thẻ do thực thể đại diện.
workspaceChange[].trigger nested object Điều kiện kích hoạt do thực thể đại diện.
workspaceChange[].variable nested object Biến do thực thể đại diện.
workspaceChange[].folder nested object Thư mục mà thực thể đại diện.
workspaceChange[].changeStatus string Biểu thị cách thực thể được thay đổi trong không gian làm việc.

Các giá trị được chấp nhận là:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
mergeConflict[] list Xung đột hợp nhất sau khi đồng bộ hoá.
mergeConflict[].entityInWorkspace nested object Thực thể không gian làm việc có các thay đổi gây mâu thuẫn so với phiên bản cơ sở. Nếu một thực thể bị xoá trong không gian làm việc, thì thực thể đó vẫn sẽ xuất hiện với trạng thái thay đổi đã bị xoá.
mergeConflict[].entityInWorkspace.tag nested object Thẻ do thực thể đại diện.
mergeConflict[].entityInWorkspace.trigger nested object Điều kiện kích hoạt do thực thể đại diện.
mergeConflict[].entityInWorkspace.variable nested object Biến do thực thể đại diện.
mergeConflict[].entityInWorkspace.folder nested object Thư mục mà thực thể đại diện.
mergeConflict[].entityInWorkspace.changeStatus string Biểu thị cách thực thể được thay đổi trong không gian làm việc.

Các giá trị được chấp nhận là:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
mergeConflict[].entityInBaseVersion nested object Thực thể phiên bản cơ sở (kể từ lần đồng bộ hoá mới nhất) có các thay đổi gây mâu thuẫn so với không gian làm việc. Nếu thiếu trường này thì tức là thực thể không gian làm việc đã bị xoá khỏi phiên bản cơ sở.
mergeConflict[].entityInBaseVersion.tag nested object Thẻ do thực thể đại diện.
mergeConflict[].entityInBaseVersion.trigger nested object Điều kiện kích hoạt do thực thể đại diện.
mergeConflict[].entityInBaseVersion.variable nested object Biến do thực thể đại diện.
mergeConflict[].entityInBaseVersion.folder nested object Thư mục mà thực thể đại diện.
mergeConflict[].entityInBaseVersion.changeStatus string Biểu thị cách thực thể được thay đổi trong không gian làm việc.

Các giá trị được chấp nhận là:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
workspaceChange[].client nested object Ứng dụng do thực thể đại diện.
mergeConflict[].entityInWorkspace.client nested object Ứng dụng do thực thể đại diện.
mergeConflict[].entityInBaseVersion.client nested object Ứng dụng do thực thể đại diện.
workspaceChange[].transformation nested object Phép biến đổi do thực thể biểu thị.
mergeConflict[].entityInWorkspace.transformation nested object Phép biến đổi do thực thể biểu thị.
mergeConflict[].entityInBaseVersion.transformation nested object Phép biến đổi do thực thể biểu thị.
workspaceChange[].zone nested object Vùng được đại diện bởi thực thể.
workspaceChange[].customTemplate nested object Mẫu tuỳ chỉnh do thực thể đại diện.
workspaceChange[].builtInVariable nested object Biến tích hợp được biểu thị bằng thực thể.
workspaceChange[].builtInVariable.path string Đường dẫn liên quan đến API của BuildInVariable của GTM.
workspaceChange[].builtInVariable.accountId string Mã tài khoản GTM.
workspaceChange[].builtInVariable.containerId string Mã vùng chứa Trình quản lý thẻ của Google (GTM).
workspaceChange[].builtInVariable.workspaceId string Mã không gian làm việc của Trình quản lý thẻ của Google (GTM).
workspaceChange[].builtInVariable.type string Loại biến tích hợp.

Các giá trị được chấp nhận là:
  • "advertiserId"
  • "advertisingTrackingEnabled"
  • "ampBrowserLanguage"
  • "ampCanonicalHost"
  • "ampCanonicalPath"
  • "ampCanonicalUrl"
  • "ampClientId"
  • "ampClientMaxScrollX"
  • "ampClientMaxScrollY"
  • "ampClientScreenHeight"
  • "ampClientScreenWidth"
  • "ampClientScrollX"
  • "ampClientScrollY"
  • "ampClientTimestamp"
  • "ampClientTimezone"
  • "ampGtmEvent"
  • "ampPageDownloadTime"
  • "ampPageLoadTime"
  • "ampPageViewId"
  • "ampReferrer"
  • "ampTitle"
  • "ampTotalEngagedTime"
  • "appId"
  • "appName"
  • "appVersionCode"
  • "appVersionName"
  • "builtInVariableTypeUnspecified"
  • "clickClasses"
  • "clickElement"
  • "clickId"
  • "clickTarget"
  • "clickText"
  • "clickUrl"
  • "clientName"
  • "containerId"
  • "containerVersion"
  • "debugMode"
  • "deviceName"
  • "elementVisibilityFirstTime"
  • "elementVisibilityRatio"
  • "elementVisibilityRecentTime"
  • "elementVisibilityTime"
  • "environmentName"
  • "errorLine"
  • "errorMessage"
  • "errorUrl"
  • "event"
  • "eventName"
  • "firebaseEventParameterCampaign"
  • "firebaseEventParameterCampaignAclid"
  • "firebaseEventParameterCampaignAnid"
  • "firebaseEventParameterCampaignClickTimestamp"
  • "firebaseEventParameterCampaignContent"
  • "firebaseEventParameterCampaignCp1"
  • "firebaseEventParameterCampaignGclid"
  • "firebaseEventParameterCampaignSource"
  • "firebaseEventParameterCampaignTerm"
  • "firebaseEventParameterCurrency"
  • "firebaseEventParameterDynamicLinkAcceptTime"
  • "firebaseEventParameterDynamicLinkLinkid"
  • "firebaseEventParameterNotificationMessageDeviceTime"
  • "firebaseEventParameterNotificationMessageId"
  • "firebaseEventParameterNotificationMessageName"
  • "firebaseEventParameterNotificationMessageTime"
  • "firebaseEventParameterNotificationTopic"
  • "firebaseEventParameterPreviousAppVersion"
  • "firebaseEventParameterPreviousOsVersion"
  • "firebaseEventParameterPrice"
  • "firebaseEventParameterProductId"
  • "firebaseEventParameterQuantity"
  • "firebaseEventParameterValue"
  • "firstPartyServingUrl"
  • "formClasses"
  • "formElement"
  • "formId"
  • "formTarget"
  • "formText"
  • "formUrl"
  • "historySource"
  • "htmlId"
  • "language"
  • "newHistoryFragment"
  • "newHistoryState"
  • "newHistoryUrl"
  • "oldHistoryFragment"
  • "oldHistoryState"
  • "oldHistoryUrl"
  • "osVersion"
  • "pageHostname"
  • "pagePath"
  • "pageUrl"
  • "platform"
  • "queryString"
  • "randomNumber"
  • "referrer"
  • "requestMethod"
  • "requestPath"
  • "resolution"
  • "scrollDepthDirection"
  • "scrollDepthThreshold"
  • "scrollDepthUnits"
  • "sdkVersion"
  • "serverPageLocationHostname"
  • "serverPageLocationPath"
  • "serverPageLocationUrl"
  • "videoCurrentTime"
  • "videoDuration"
  • "videoPercent"
  • "videoProvider"
  • "videoStatus"
  • "videoTitle"
  • "videoUrl"
  • "videoVisible"
  • "visitorRegion"
workspaceChange[].builtInVariable.name string Tên của biến tích hợp được dùng để tham chiếu đến biến tích hợp.
workspaceChange[].gtagConfig nested object Cấu hình gtag đang được thực thể đại diện.
mergeConflict[].entityInWorkspace.zone nested object Vùng được đại diện bởi thực thể.
mergeConflict[].entityInWorkspace.customTemplate nested object Mẫu tuỳ chỉnh do thực thể đại diện.
mergeConflict[].entityInWorkspace.builtInVariable nested object Biến tích hợp được biểu thị bằng thực thể.
mergeConflict[].entityInWorkspace.builtInVariable.path string Đường dẫn liên quan đến API của BuildInVariable của GTM.
mergeConflict[].entityInWorkspace.builtInVariable.accountId string Mã tài khoản GTM.
mergeConflict[].entityInWorkspace.builtInVariable.containerId string Mã vùng chứa Trình quản lý thẻ của Google (GTM).
mergeConflict[].entityInWorkspace.builtInVariable.workspaceId string Mã không gian làm việc của Trình quản lý thẻ của Google (GTM).
mergeConflict[].entityInWorkspace.builtInVariable.type string Loại biến tích hợp.

Các giá trị được chấp nhận là:
  • "advertiserId"
  • "advertisingTrackingEnabled"
  • "ampBrowserLanguage"
  • "ampCanonicalHost"
  • "ampCanonicalPath"
  • "ampCanonicalUrl"
  • "ampClientId"
  • "ampClientMaxScrollX"
  • "ampClientMaxScrollY"
  • "ampClientScreenHeight"
  • "ampClientScreenWidth"
  • "ampClientScrollX"
  • "ampClientScrollY"
  • "ampClientTimestamp"
  • "ampClientTimezone"
  • "ampGtmEvent"
  • "ampPageDownloadTime"
  • "ampPageLoadTime"
  • "ampPageViewId"
  • "ampReferrer"
  • "ampTitle"
  • "ampTotalEngagedTime"
  • "appId"
  • "appName"
  • "appVersionCode"
  • "appVersionName"
  • "builtInVariableTypeUnspecified"
  • "clickClasses"
  • "clickElement"
  • "clickId"
  • "clickTarget"
  • "clickText"
  • "clickUrl"
  • "clientName"
  • "containerId"
  • "containerVersion"
  • "debugMode"
  • "deviceName"
  • "elementVisibilityFirstTime"
  • "elementVisibilityRatio"
  • "elementVisibilityRecentTime"
  • "elementVisibilityTime"
  • "environmentName"
  • "errorLine"
  • "errorMessage"
  • "errorUrl"
  • "event"
  • "eventName"
  • "firebaseEventParameterCampaign"
  • "firebaseEventParameterCampaignAclid"
  • "firebaseEventParameterCampaignAnid"
  • "firebaseEventParameterCampaignClickTimestamp"
  • "firebaseEventParameterCampaignContent"
  • "firebaseEventParameterCampaignCp1"
  • "firebaseEventParameterCampaignGclid"
  • "firebaseEventParameterCampaignSource"
  • "firebaseEventParameterCampaignTerm"
  • "firebaseEventParameterCurrency"
  • "firebaseEventParameterDynamicLinkAcceptTime"
  • "firebaseEventParameterDynamicLinkLinkid"
  • "firebaseEventParameterNotificationMessageDeviceTime"
  • "firebaseEventParameterNotificationMessageId"
  • "firebaseEventParameterNotificationMessageName"
  • "firebaseEventParameterNotificationMessageTime"
  • "firebaseEventParameterNotificationTopic"
  • "firebaseEventParameterPreviousAppVersion"
  • "firebaseEventParameterPreviousOsVersion"
  • "firebaseEventParameterPrice"
  • "firebaseEventParameterProductId"
  • "firebaseEventParameterQuantity"
  • "firebaseEventParameterValue"
  • "firstPartyServingUrl"
  • "formClasses"
  • "formElement"
  • "formId"
  • "formTarget"
  • "formText"
  • "formUrl"
  • "historySource"
  • "htmlId"
  • "language"
  • "newHistoryFragment"
  • "newHistoryState"
  • "newHistoryUrl"
  • "oldHistoryFragment"
  • "oldHistoryState"
  • "oldHistoryUrl"
  • "osVersion"
  • "pageHostname"
  • "pagePath"
  • "pageUrl"
  • "platform"
  • "queryString"
  • "randomNumber"
  • "referrer"
  • "requestMethod"
  • "requestPath"
  • "resolution"
  • "scrollDepthDirection"
  • "scrollDepthThreshold"
  • "scrollDepthUnits"
  • "sdkVersion"
  • "serverPageLocationHostname"
  • "serverPageLocationPath"
  • "serverPageLocationUrl"
  • "videoCurrentTime"
  • "videoDuration"
  • "videoPercent"
  • "videoProvider"
  • "videoStatus"
  • "videoTitle"
  • "videoUrl"
  • "videoVisible"
  • "visitorRegion"
mergeConflict[].entityInWorkspace.builtInVariable.name string Tên của biến tích hợp được dùng để tham chiếu đến biến tích hợp.
mergeConflict[].entityInWorkspace.gtagConfig nested object Cấu hình gtag đang được thực thể đại diện.
mergeConflict[].entityInBaseVersion.zone nested object Vùng được đại diện bởi thực thể.
mergeConflict[].entityInBaseVersion.customTemplate nested object Mẫu tuỳ chỉnh do thực thể đại diện.
mergeConflict[].entityInBaseVersion.builtInVariable nested object Biến tích hợp được biểu thị bằng thực thể.
mergeConflict[].entityInBaseVersion.builtInVariable.path string Đường dẫn liên quan đến API của BuildInVariable của GTM.
mergeConflict[].entityInBaseVersion.builtInVariable.accountId string Mã tài khoản GTM.
mergeConflict[].entityInBaseVersion.builtInVariable.containerId string Mã vùng chứa Trình quản lý thẻ của Google (GTM).
mergeConflict[].entityInBaseVersion.builtInVariable.workspaceId string Mã không gian làm việc của Trình quản lý thẻ của Google (GTM).
mergeConflict[].entityInBaseVersion.builtInVariable.type string Loại biến tích hợp.

Các giá trị được chấp nhận là:
  • "advertiserId"
  • "advertisingTrackingEnabled"
  • "ampBrowserLanguage"
  • "ampCanonicalHost"
  • "ampCanonicalPath"
  • "ampCanonicalUrl"
  • "ampClientId"
  • "ampClientMaxScrollX"
  • "ampClientMaxScrollY"
  • "ampClientScreenHeight"
  • "ampClientScreenWidth"
  • "ampClientScrollX"
  • "ampClientScrollY"
  • "ampClientTimestamp"
  • "ampClientTimezone"
  • "ampGtmEvent"
  • "ampPageDownloadTime"
  • "ampPageLoadTime"
  • "ampPageViewId"
  • "ampReferrer"
  • "ampTitle"
  • "ampTotalEngagedTime"
  • "appId"
  • "appName"
  • "appVersionCode"
  • "appVersionName"
  • "builtInVariableTypeUnspecified"
  • "clickClasses"
  • "clickElement"
  • "clickId"
  • "clickTarget"
  • "clickText"
  • "clickUrl"
  • "clientName"
  • "containerId"
  • "containerVersion"
  • "debugMode"
  • "deviceName"
  • "elementVisibilityFirstTime"
  • "elementVisibilityRatio"
  • "elementVisibilityRecentTime"
  • "elementVisibilityTime"
  • "environmentName"
  • "errorLine"
  • "errorMessage"
  • "errorUrl"
  • "event"
  • "eventName"
  • "firebaseEventParameterCampaign"
  • "firebaseEventParameterCampaignAclid"
  • "firebaseEventParameterCampaignAnid"
  • "firebaseEventParameterCampaignClickTimestamp"
  • "firebaseEventParameterCampaignContent"
  • "firebaseEventParameterCampaignCp1"
  • "firebaseEventParameterCampaignGclid"
  • "firebaseEventParameterCampaignSource"
  • "firebaseEventParameterCampaignTerm"
  • "firebaseEventParameterCurrency"
  • "firebaseEventParameterDynamicLinkAcceptTime"
  • "firebaseEventParameterDynamicLinkLinkid"
  • "firebaseEventParameterNotificationMessageDeviceTime"
  • "firebaseEventParameterNotificationMessageId"
  • "firebaseEventParameterNotificationMessageName"
  • "firebaseEventParameterNotificationMessageTime"
  • "firebaseEventParameterNotificationTopic"
  • "firebaseEventParameterPreviousAppVersion"
  • "firebaseEventParameterPreviousOsVersion"
  • "firebaseEventParameterPrice"
  • "firebaseEventParameterProductId"
  • "firebaseEventParameterQuantity"
  • "firebaseEventParameterValue"
  • "firstPartyServingUrl"
  • "formClasses"
  • "formElement"
  • "formId"
  • "formTarget"
  • "formText"
  • "formUrl"
  • "historySource"
  • "htmlId"
  • "language"
  • "newHistoryFragment"
  • "newHistoryState"
  • "newHistoryUrl"
  • "oldHistoryFragment"
  • "oldHistoryState"
  • "oldHistoryUrl"
  • "osVersion"
  • "pageHostname"
  • "pagePath"
  • "pageUrl"
  • "platform"
  • "queryString"
  • "randomNumber"
  • "referrer"
  • "requestMethod"
  • "requestPath"
  • "resolution"
  • "scrollDepthDirection"
  • "scrollDepthThreshold"
  • "scrollDepthUnits"
  • "sdkVersion"
  • "serverPageLocationHostname"
  • "serverPageLocationPath"
  • "serverPageLocationUrl"
  • "videoCurrentTime"
  • "videoDuration"
  • "videoPercent"
  • "videoProvider"
  • "videoStatus"
  • "videoTitle"
  • "videoUrl"
  • "videoVisible"
  • "visitorRegion"
mergeConflict[].entityInBaseVersion.builtInVariable.name string Tên của biến tích hợp được dùng để tham chiếu đến biến tích hợp.
mergeConflict[].entityInBaseVersion.gtagConfig nested object Cấu hình gtag đang được thực thể đại diện.

Hãy dùng thử!

Hãy sử dụng APIs Explorer (Trình khám phá API) bên dưới để gọi phương thức này trên dữ liệu trực tiếp và xem phản hồi.