Method: containers.lookup

Full name: accounts.containers.lookup

Looks up a Container by destination ID or tag ID.

HTTP request

GET https://tagmanager.googleapis.com/tagmanager/v2/accounts/containers:lookup

Query parameters

Parameters
destinationId

string

Destination ID linked to a GTM Container, e.g. AW-123456789. Only one of destinationId or tagId should be set.

tagId

string

Tag ID for a GTM Container, e.g. GTM-123456789. Only one of destinationId or tagId should be set.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Container.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/tagmanager.edit.containers
  • https://www.googleapis.com/auth/tagmanager.readonly

For more information, see the OAuth 2.0 Overview.