- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- ContainerVersionHeader
- Try it!
Full name: accounts.containers.versions.list
Lists all Container Versions of a GTM Container.
HTTP request
GET https://tagmanager.googleapis.com/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions
Path parameters
| Parameters | |
|---|---|
accountId |
The GTM Account ID. |
containerId |
The GTM Container ID. |
Query parameters
| Parameters | |
|---|---|
headers |
Retrieve headers only when true. |
includeDeleted |
Also retrieve deleted (archived) versions when true. |
Request body
The request body must be empty.
Response body
List container versions response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "containerVersion": [ { object ( |
| Fields | |
|---|---|
containerVersion[] |
All versions of a GTM Container. |
containerVersionHeader[] |
All container version headers of a GTM Container. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/tagmanager.edit.containershttps://www.googleapis.com/auth/tagmanager.edit.containerversionshttps://www.googleapis.com/auth/tagmanager.readonly
For more information, see the OAuth 2.0 Overview.
ContainerVersionHeader
Represents a Google Tag Manager Container Version Header.
| JSON representation |
|---|
{ "accountId": string, "containerId": string, "containerVersionId": string, "name": string, "numTags": string, "numTriggers": string, "deleted": boolean, "numVariables": string } |
| Fields | |
|---|---|
accountId |
GTM Account ID. |
containerId |
GTM Container ID. |
containerVersionId |
The Container Version ID uniquely identifies the GTM Container Version. |
name |
Container version display name. |
numTags |
Number of tags in the container version. |
numTriggers |
Number of triggers in the container version. |
deleted |
A value of true indicates this container version has been deleted. |
numVariables |
Number of variables in the container version. |