Resource: Environment
Represents a Google Tag Manager Environment. Note that a user can create, delete and update environments of type USER, but can only update the enableDebug and url fields of environments of other types.
JSON representation |
---|
{ "path": string, "accountId": string, "containerId": string, "environmentId": string, "type": enum ( |
Fields | |
---|---|
path |
GTM Environment's API relative path. |
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
environmentId |
GTM Environment ID uniquely identifies the GTM Environment. |
type |
The type of this environment. |
fingerprint |
The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified. |
name |
The environment display name. Can be set or changed only on USER type environments. |
description |
The environment description. Can be set or changed only on USER type environments. |
enableDebug |
Whether or not to enable debug by default for the environment. |
url |
Default preview page url for the environment. |
authorizationCode |
The environment authorization code. |
authorizationTimestamp |
The last update time-stamp for the authorization code. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
tagManagerUrl |
Auto generated link to the tag manager UI |
Union field Link . The version ID, workspace id or none. May contain other IDs in the future. Can be set or changed only on USER type environments. Link can be only one of the following: |
|
containerVersionId |
Represents a link to a container version. |
workspaceId |
Represents a link to a quick preview of a workspace. |
EnvironmentType
Enums | |
---|---|
user |
Points to a user defined environment. |
live |
Points to the current live container version. |
latest |
Points to the latest container version. |
workspace |
Automatically managed environment that points to a workspace preview or version created by a workspace. |
Methods |
|
---|---|
|
Creates a GTM Environment. |
|
Deletes a GTM Environment. |
|
Gets a GTM Environment. |
|
Lists all GTM Environments of a GTM Container. |
|
Re-generates the authorization code for a GTM Environment. |
|
Updates a GTM Environment. |