The gitlab_project_tags
data source allows details of project tags to be retrieved by some search criteria.
Upstream API: GitLab REST API docs
# By project ID
data "gitlab_project_tags" "example" {
project = "12345"
}
# By project full path
data "gitlab_project_tags" "example" {
project = "foo/bar"
}
project
(String) The ID or URL-encoded path of the project owned by the authenticated user.order_by
(String) Return tags ordered by name
or updated
fields. Default is updated
.search
(String) Return list of tags matching the search criteria. You can use ^term
and term$
to find tags that begin and end with term
respectively. No other regular expressions are supported.sort
(String) Return tags sorted in asc
or desc
order. Default is desc
.id
(String) The ID of this resource.tags
(List of Object) List of repository tags from a project. (see below for nested schema)tags
Read-Only:
commit
(Set of Object) (see below for nested schema)message
(String)name
(String)protected
(Boolean)release
(Set of Object) (see below for nested schema)target
(String)tags.commit
Read-Only:
author_email
(String)author_name
(String)authored_date
(String)committed_date
(String)committer_email
(String)committer_name
(String)id
(String)message
(String)parent_ids
(Set of String)short_id
(String)title
(String)tags.release
Read-Only:
description
(String)tag_name
(String)