The gitlab_project_tag
data source allows details of a project tag to be retrieved by its name.
Upstream API: GitLab API docs
# By project ID
data "gitlab_project_tag" "foo" {
name = "example"
project = "12345"
}
# By project full path
data "gitlab_project_tag" "foo" {
name = "example"
project = "foo/bar"
}
name
(String) The name of a tag.project
(String) The ID or URL-encoded path of the project owned by the authenticated user.commit
(Set of Object) The commit associated with the tag. (see below for nested schema)id
(String) The ID of this resource.message
(String) The message of the annotated tag.protected
(Boolean) Bool, true if tag has tag protection.release
(Set of Object) The release associated with the tag. (see below for nested schema)target
(String) The unique id assigned to the commit by Gitlab.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)release
Read-Only:
description
(String)tag_name
(String)