GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi
gitlab.getProjectTag
Explore with Pulumi AI
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>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]func LookupProjectTag(ctx *Context, args *LookupProjectTagArgs, opts ...InvokeOption) (*LookupProjectTagResult, error)
func LookupProjectTagOutput(ctx *Context, args *LookupProjectTagOutputArgs, opts ...InvokeOption) LookupProjectTagResultOutput> 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)
}public static CompletableFuture<GetProjectTagResult> getProjectTag(GetProjectTagArgs args, InvokeOptions options)
public static Output<GetProjectTagResult> getProjectTag(GetProjectTagArgs args, InvokeOptions options)
fn::invoke:
  function: gitlab:index/getProjectTag:getProjectTag
  arguments:
    # arguments dictionaryThe following arguments are supported:
getProjectTag Result
The following output properties are available:
- Commits
List<Pulumi.
Git Lab. Outputs. Get Project Tag Commit>  - 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.
Git Lab. Outputs. Get Project Tag Release>  - The release associated with the tag.
 - Target string
 - The unique id assigned to the commit by Gitlab.
 
- Commits
[]Get
Project Tag Commit  - 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
[]Get
Project Tag Release  - The release associated with the tag.
 - Target string
 - The unique id assigned to the commit by Gitlab.
 
- commits
List<Get
Project Tag Commit>  - 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<Get
Project Tag Release>  - The release associated with the tag.
 - target String
 - The unique id assigned to the commit by Gitlab.
 
- commits
Get
Project Tag Commit[]  - 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
Get
Project Tag Release[]  - The release associated with the tag.
 - target string
 - The unique id assigned to the commit by Gitlab.
 
- commits
Sequence[Get
Project Tag Commit]  - 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[Get
Project Tag Release]  - 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   
- string
 - The email of the author.
 - string
 - The name of the author.
 - string
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - Committed
Date string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - Committer
Email string - The email of the user that committed.
 - Committer
Name string - The name of the user that committed.
 - Id string
 - The unique id assigned to the commit by Gitlab.
 - Message string
 - The commit message
 - Parent
Ids List<string> - The id of the parents of the commit
 - Short
Id string - The short id assigned to the commit by Gitlab.
 - Title string
 - The title of the commit
 
- string
 - The email of the author.
 - string
 - The name of the author.
 - string
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - Committed
Date string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - Committer
Email string - The email of the user that committed.
 - Committer
Name string - The name of the user that committed.
 - Id string
 - The unique id assigned to the commit by Gitlab.
 - Message string
 - The commit message
 - Parent
Ids []string - The id of the parents of the commit
 - Short
Id string - The short id assigned to the commit by Gitlab.
 - Title string
 - The title of the commit
 
- String
 - The email of the author.
 - String
 - The name of the author.
 - String
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - committed
Date String - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - committer
Email String - The email of the user that committed.
 - committer
Name String - The name of the user that committed.
 - id String
 - The unique id assigned to the commit by Gitlab.
 - message String
 - The commit message
 - parent
Ids List<String> - The id of the parents of the commit
 - short
Id String - The short id assigned to the commit by Gitlab.
 - title String
 - The title of the commit
 
- string
 - The email of the author.
 - string
 - The name of the author.
 - string
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - committed
Date string - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - committer
Email string - The email of the user that committed.
 - committer
Name string - The name of the user that committed.
 - id string
 - The unique id assigned to the commit by Gitlab.
 - message string
 - The commit message
 - parent
Ids string[] - The id of the parents of the commit
 - short
Id string - The short id assigned to the commit by Gitlab.
 - title string
 - The title of the commit
 
- str
 - The email of the author.
 - str
 - The name of the author.
 - str
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - committed_
date str - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - committer_
email str - The email of the user that committed.
 - committer_
name str - The name of the user that committed.
 - id str
 - The unique id assigned to the commit by Gitlab.
 - message str
 - The commit message
 - parent_
ids Sequence[str] - The id of the parents of the commit
 - short_
id str - The short id assigned to the commit by Gitlab.
 - title str
 - The title of the commit
 
- String
 - The email of the author.
 - String
 - The name of the author.
 - String
 - The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
 - committed
Date String - The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
 - committer
Email String - The email of the user that committed.
 - committer
Name String - The name of the user that committed.
 - id String
 - The unique id assigned to the commit by Gitlab.
 - message String
 - The commit message
 - parent
Ids List<String> - The id of the parents of the commit
 - short
Id String - The short id assigned to the commit by Gitlab.
 - title String
 - The title of the commit
 
GetProjectTagRelease   
- Description string
 - The description of release.
 - Tag
Name string - The name of the tag.
 
- Description string
 - The description of release.
 - Tag
Name string - The name of the tag.
 
- description String
 - The description of release.
 - tag
Name String - The name of the tag.
 
- description string
 - The description of release.
 - tag
Name string - The name of the tag.
 
- description str
 - The description of release.
 - tag_
name str - The name of the tag.
 
- description String
 - The description of release.
 - tag
Name 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 
gitlabTerraform Provider.