GitLab

Pulumi Official
Package maintained by Pulumi
v4.7.1 published on Thursday, Jun 30, 2022 by Pulumi

getProjectTag

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

Upstream API: GitLab API docs

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(GitLab.GetProjectTag.InvokeAsync(new GitLab.GetProjectTagArgs
        {
            Name = "example",
            Project = "foo/bar",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gitlab.LookupProjectTag(ctx, &GetProjectTagArgs{
			Name:    "example",
			Project: "foo/bar",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var foo = Output.of(GitlabFunctions.getProjectTag(GetProjectTagArgs.builder()
            .name("example")
            .project("foo/bar")
            .build()));

    }
}
import pulumi
import pulumi_gitlab as gitlab

foo = gitlab.get_project_tag(name="example",
    project="foo/bar")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

// By project full path
const foo = pulumi.output(gitlab.getProjectTag({
    name: "example",
    project: "foo/bar",
}));
variables:
  foo:
    Fn::Invoke:
      Function: gitlab:getProjectTag
      Arguments:
        name: example
        project: foo/bar

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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gitlab:index/getProjectTag:getProjectTag
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string
Project string
Name string
Project string
name String
project String
name string
project string
name str
project str
name String
project String

getProjectTag Result

The following output properties are available:

Commits List<Pulumi.GitLab.Outputs.GetProjectTagCommit>
Id string

The provider-assigned unique ID for this managed resource.

Message string
Name string
Project string
Protected bool
Releases List<Pulumi.GitLab.Outputs.GetProjectTagRelease>
Target string
Commits []GetProjectTagCommit
Id string

The provider-assigned unique ID for this managed resource.

Message string
Name string
Project string
Protected bool
Releases []GetProjectTagRelease
Target string
commits List<GetProjectTagCommit>
id String

The provider-assigned unique ID for this managed resource.

message String
name String
project String
protected_ Boolean
releases List<GetProjectTagRelease>
target String
commits GetProjectTagCommit[]
id string

The provider-assigned unique ID for this managed resource.

message string
name string
project string
protected boolean
releases GetProjectTagRelease[]
target string
commits Sequence[GetProjectTagCommit]
id str

The provider-assigned unique ID for this managed resource.

message str
name str
project str
protected bool
releases Sequence[GetProjectTagRelease]
target str
commits List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

message String
name String
project String
protected Boolean
releases List<Property Map>
target String

Supporting Types

GetProjectTagCommit

AuthorEmail string
AuthorName string
AuthoredDate string
CommittedDate string
CommitterEmail string
CommitterName string
Id string
Message string
ParentIds List<string>
ShortId string
Title string
AuthorEmail string
AuthorName string
AuthoredDate string
CommittedDate string
CommitterEmail string
CommitterName string
Id string
Message string
ParentIds []string
ShortId string
Title string
authorEmail String
authorName String
authoredDate String
committedDate String
committerEmail String
committerName String
id String
message String
parentIds List<String>
shortId String
title String
authorEmail string
authorName string
authoredDate string
committedDate string
committerEmail string
committerName string
id string
message string
parentIds string[]
shortId string
title string
authorEmail String
authorName String
authoredDate String
committedDate String
committerEmail String
committerName String
id String
message String
parentIds List<String>
shortId String
title String

GetProjectTagRelease

Description string
TagName string
Description string
TagName string
description String
tagName String
description string
tagName string
description String
tagName String

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes

This Pulumi package is based on the gitlab Terraform Provider.