1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectTag
GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi

gitlab.getProjectTag

Explore with Pulumi AI

GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi

The gitlab.ProjectTag data source allows details of a project tag to be retrieved by its name.

Upstream API: GitLab API docs

Using getProjectTag

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getProjectTag(args: GetProjectTagArgs, opts?: InvokeOptions): Promise<GetProjectTagResult>
function getProjectTagOutput(args: GetProjectTagOutputArgs, opts?: InvokeOptions): Output<GetProjectTagResult>
Copy
def get_project_tag(name: Optional[str] = None,
                    project: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProjectTagResult
def get_project_tag_output(name: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetProjectTagResult]
Copy
func LookupProjectTag(ctx *Context, args *LookupProjectTagArgs, opts ...InvokeOption) (*LookupProjectTagResult, error)
func LookupProjectTagOutput(ctx *Context, args *LookupProjectTagOutputArgs, opts ...InvokeOption) LookupProjectTagResultOutput
Copy

> Note: This function is named LookupProjectTag in the Go SDK.

public static class GetProjectTag 
{
    public static Task<GetProjectTagResult> InvokeAsync(GetProjectTagArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectTagResult> Invoke(GetProjectTagInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectTagResult> getProjectTag(GetProjectTagArgs args, InvokeOptions options)
public static Output<GetProjectTagResult> getProjectTag(GetProjectTagArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gitlab:index/getProjectTag:getProjectTag
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of a tag.
Project This property is required. string
The ID or URL-encoded path of the project owned by the authenticated user.
Name This property is required. string
The name of a tag.
Project This property is required. string
The ID or URL-encoded path of the project owned by the authenticated user.
name This property is required. String
The name of a tag.
project This property is required. String
The ID or URL-encoded path of the project owned by the authenticated user.
name This property is required. string
The name of a tag.
project This property is required. string
The ID or URL-encoded path of the project owned by the authenticated user.
name This property is required. str
The name of a tag.
project This property is required. str
The ID or URL-encoded path of the project owned by the authenticated user.
name This property is required. String
The name of a tag.
project This property is required. String
The ID or URL-encoded path of the project owned by the authenticated user.

getProjectTag Result

The following output properties are available:

Commits List<Pulumi.GitLab.Outputs.GetProjectTagCommit>
The commit associated with the tag.
Id string
The provider-assigned unique ID for this managed resource.
Message string
The message of the annotated tag.
Name string
The name of a tag.
Project string
The ID or URL-encoded path of the project owned by the authenticated user.
Protected bool
Bool, true if tag has tag protection.
Releases List<Pulumi.GitLab.Outputs.GetProjectTagRelease>
The release associated with the tag.
Target string
The unique id assigned to the commit by Gitlab.
Commits []GetProjectTagCommit
The commit associated with the tag.
Id string
The provider-assigned unique ID for this managed resource.
Message string
The message of the annotated tag.
Name string
The name of a tag.
Project string
The ID or URL-encoded path of the project owned by the authenticated user.
Protected bool
Bool, true if tag has tag protection.
Releases []GetProjectTagRelease
The release associated with the tag.
Target string
The unique id assigned to the commit by Gitlab.
commits List<GetProjectTagCommit>
The commit associated with the tag.
id String
The provider-assigned unique ID for this managed resource.
message String
The message of the annotated tag.
name String
The name of a tag.
project String
The ID or URL-encoded path of the project owned by the authenticated user.
protected_ Boolean
Bool, true if tag has tag protection.
releases List<GetProjectTagRelease>
The release associated with the tag.
target String
The unique id assigned to the commit by Gitlab.
commits GetProjectTagCommit[]
The commit associated with the tag.
id string
The provider-assigned unique ID for this managed resource.
message string
The message of the annotated tag.
name string
The name of a tag.
project string
The ID or URL-encoded path of the project owned by the authenticated user.
protected boolean
Bool, true if tag has tag protection.
releases GetProjectTagRelease[]
The release associated with the tag.
target string
The unique id assigned to the commit by Gitlab.
commits Sequence[GetProjectTagCommit]
The commit associated with the tag.
id str
The provider-assigned unique ID for this managed resource.
message str
The message of the annotated tag.
name str
The name of a tag.
project str
The ID or URL-encoded path of the project owned by the authenticated user.
protected bool
Bool, true if tag has tag protection.
releases Sequence[GetProjectTagRelease]
The release associated with the tag.
target str
The unique id assigned to the commit by Gitlab.
commits List<Property Map>
The commit associated with the tag.
id String
The provider-assigned unique ID for this managed resource.
message String
The message of the annotated tag.
name String
The name of a tag.
project String
The ID or URL-encoded path of the project owned by the authenticated user.
protected Boolean
Bool, true if tag has tag protection.
releases List<Property Map>
The release associated with the tag.
target String
The unique id assigned to the commit by Gitlab.

Supporting Types

GetProjectTagCommit

AuthorEmail This property is required. string
The email of the author.
AuthorName This property is required. string
The name of the author.
AuthoredDate This property is required. string
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
CommittedDate This property is required. string
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
CommitterEmail This property is required. string
The email of the user that committed.
CommitterName This property is required. string
The name of the user that committed.
Id This property is required. string
The unique id assigned to the commit by Gitlab.
Message This property is required. string
The commit message
ParentIds This property is required. List<string>
The id of the parents of the commit
ShortId This property is required. string
The short id assigned to the commit by Gitlab.
Title This property is required. string
The title of the commit
AuthorEmail This property is required. string
The email of the author.
AuthorName This property is required. string
The name of the author.
AuthoredDate This property is required. string
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
CommittedDate This property is required. string
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
CommitterEmail This property is required. string
The email of the user that committed.
CommitterName This property is required. string
The name of the user that committed.
Id This property is required. string
The unique id assigned to the commit by Gitlab.
Message This property is required. string
The commit message
ParentIds This property is required. []string
The id of the parents of the commit
ShortId This property is required. string
The short id assigned to the commit by Gitlab.
Title This property is required. string
The title of the commit
authorEmail This property is required. String
The email of the author.
authorName This property is required. String
The name of the author.
authoredDate This property is required. String
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
committedDate This property is required. String
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
committerEmail This property is required. String
The email of the user that committed.
committerName This property is required. String
The name of the user that committed.
id This property is required. String
The unique id assigned to the commit by Gitlab.
message This property is required. String
The commit message
parentIds This property is required. List<String>
The id of the parents of the commit
shortId This property is required. String
The short id assigned to the commit by Gitlab.
title This property is required. String
The title of the commit
authorEmail This property is required. string
The email of the author.
authorName This property is required. string
The name of the author.
authoredDate This property is required. string
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
committedDate This property is required. string
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
committerEmail This property is required. string
The email of the user that committed.
committerName This property is required. string
The name of the user that committed.
id This property is required. string
The unique id assigned to the commit by Gitlab.
message This property is required. string
The commit message
parentIds This property is required. string[]
The id of the parents of the commit
shortId This property is required. string
The short id assigned to the commit by Gitlab.
title This property is required. string
The title of the commit
author_email This property is required. str
The email of the author.
author_name This property is required. str
The name of the author.
authored_date This property is required. str
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
committed_date This property is required. str
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
committer_email This property is required. str
The email of the user that committed.
committer_name This property is required. str
The name of the user that committed.
id This property is required. str
The unique id assigned to the commit by Gitlab.
message This property is required. str
The commit message
parent_ids This property is required. Sequence[str]
The id of the parents of the commit
short_id This property is required. str
The short id assigned to the commit by Gitlab.
title This property is required. str
The title of the commit
authorEmail This property is required. String
The email of the author.
authorName This property is required. String
The name of the author.
authoredDate This property is required. String
The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
committedDate This property is required. String
The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
committerEmail This property is required. String
The email of the user that committed.
committerName This property is required. String
The name of the user that committed.
id This property is required. String
The unique id assigned to the commit by Gitlab.
message This property is required. String
The commit message
parentIds This property is required. List<String>
The id of the parents of the commit
shortId This property is required. String
The short id assigned to the commit by Gitlab.
title This property is required. String
The title of the commit

GetProjectTagRelease

Description This property is required. string
The description of release.
TagName This property is required. string
The name of the tag.
Description This property is required. string
The description of release.
TagName This property is required. string
The name of the tag.
description This property is required. String
The description of release.
tagName This property is required. String
The name of the tag.
description This property is required. string
The description of release.
tagName This property is required. string
The name of the tag.
description This property is required. str
The description of release.
tag_name This property is required. str
The name of the tag.
description This property is required. String
The description of release.
tagName This property is required. String
The name of the tag.

Package Details

Repository
GitLab pulumi/pulumi-gitlab
License
Apache-2.0
Notes
This Pulumi package is based on the gitlab Terraform Provider.
GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi