get Project Tag
The gitlab.ProjectTag
data source allows details of a project tag to be retrieved by its name. Upstream API: GitLab API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const foo = gitlab.getProjectTag({
name: "example",
project: "foo/bar",
});
Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
foo = gitlab.get_project_tag(name="example",
project="foo/bar")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var foo = GitLab.GetProjectTag.Invoke(new()
{
Name = "example",
Project = "foo/bar",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.LookupProjectTag(ctx, &gitlab.LookupProjectTagArgs{
Name: "example",
Project: "foo/bar",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetProjectTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = GitlabFunctions.getProjectTag(GetProjectTagArgs.builder()
.name("example")
.project("foo/bar")
.build());
}
}
Content copied to clipboard
variables:
foo:
fn::invoke:
Function: gitlab:getProjectTag
Arguments:
name: example
project: foo/bar
Content copied to clipboard
Return
A collection of values returned by getProjectTag.
Parameters
argument
A collection of arguments for invoking getProjectTag.
Return
A collection of values returned by getProjectTag.
Parameters
name
The name of a tag.
project
The ID or URL-encoded path of the project owned by the authenticated user.
See also
suspend fun getProjectTag(argument: suspend GetProjectTagPlainArgsBuilder.() -> Unit): GetProjectTagResult
Return
A collection of values returned by getProjectTag.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectTagPlainArgs.