# ContainerVersionsByContainer: Matomo Matomo Tag Manager Container Versions ## Documentation A version of a container: the unit tags, triggers and variables are written against, and the unit which is promoted to an environment on publication. - Catalog: `Matomo` - Schema: `TagManager` - Primary Keys: `idcontainerversion` - Label: Matomo Tag Manager Container Versions - Retrieve: True - Insert: True - Update: False - Delete: False ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `ContainerVersionsByContainer`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `id_container` | `varchar2` | ☑ | | The container to list versions of - Matomo.TagManager.Containers.idcontainer. | | `id_site` | `number` | ☑ | | The Matomo site ID the container belongs to. | ## Columns of Table Function The columns of the table function `ContainerVersionsByContainer` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `created_date` | `varchar2` | | ☐ | Date and time the version was created, as returned by Matomo. Matomo does not document which time zone this is expressed in. | | `description` | `varchar2` | | ☐ | Version description. | | `idcontainer` | `varchar2` | | ☑ | The container this version belongs to. Same case-sensitivity reason as idsite below: createContainerVersion's own PHP parameter is 'idContainer'. | | `idcontainerversion` | `int32` | | ☑ | Version ID - assigned by Matomo on insert, never written. | | `idsite` | `int32` | | ☑ | Site ID the container belongs to. | | `name` | `varchar2` | | ☑ | Version name. | | `revision` | `int32` | | ☐ | Revision number, incremented on every change saved against this version. | | `status` | `varchar2` | | ☐ | Version status, for instance 'active'. | | `updated_date` | `varchar2` | | ☐ | Date and time the version was last changed, as returned by Matomo. Matomo does not document which time zone this is expressed in. |