REST Resource: accounts.containers.environments
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# REST Resource: accounts.containers.environments\n\n- [Resource: Environment](#Environment)\n - [JSON representation](#Environment.SCHEMA_REPRESENTATION)\n- [EnvironmentType](#EnvironmentType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Environment\n---------------------\n\nRepresents 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.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accountId\": string, \"containerId\": string, \"environmentId\": string, \"type\": enum (/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments#EnvironmentType), \"fingerprint\": string, \"name\": string, \"description\": string, \"enableDebug\": boolean, \"url\": string, \"authorizationCode\": string, \"authorizationTimestampMs\": string, // Union field `Link` can be only one of the following: \"containerVersionId\": string // End of list of possible types for union field `Link`. } ``` |\n\n| Fields ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountId` | `string` GTM Account ID. |\n| `containerId` | `string` GTM Container ID. |\n| `environmentId` | `string` GTM Environment ID uniquely identifies the GTM Environment. |\n| `type` | `enum (`[EnvironmentType](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments#EnvironmentType)`)` The type of this environment. |\n| `fingerprint` | `string` The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified. |\n| `name` | `string` The environment display name. Can be set or changed only on USER type environments. |\n| `description` | `string` The environment description. Can be set or changed only on USER type environments. |\n| `enableDebug` | `boolean` Whether or not to enable debug by default on for the environment. |\n| `url` | `string` Default preview page url for the environment. |\n| `authorizationCode` | `string` The environment authorization code. |\n| `authorizationTimestampMs` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The last update time-stamp for the authorization code. |\n| Union field `Link`. The version ID or none. May contain other IDs in future. Can be set or changed only on USER type environments. `Link` can be only one of the following: ||\n| `containerVersionId` | `string` |\n\nEnvironmentType\n---------------\n\n| Enums ||\n|----------|------------------------------------------------------------------------------------|\n| `user` | Used for user defined environments. |\n| `live` | Used for Live environment, which points to the live published container version. |\n| `latest` | Used for Latest environment, which points to the latest created container version. |\n| `draft` | Used for Draft environment, which points to the single draft in the container. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------------------------|------------------------------------------------|\n| ### [create](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments/create) | Creates a GTM Environment. |\n| ### [delete](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments/delete) | Deletes a GTM Environment. |\n| ### [get](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments/get) | Gets a GTM Environment. |\n| ### [list](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments/list) | Lists all GTM Environments of a GTM Container. |\n| ### [update](/tag-platform/tag-manager/api/reference/rest/v1/accounts.containers.environments/update) | Updates a GTM Environment. |"]]