GitLab

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

getProjectTags

The gitlab.getProjectTags data source allows details of project tags to be retrieved by some search criteria.

Upstream API: GitLab REST API docs

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(GitLab.GetProjectTags.InvokeAsync(new GitLab.GetProjectTagsArgs
        {
            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.GetProjectTags(ctx, &GetProjectTagsArgs{
			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 example = Output.of(GitlabFunctions.getProjectTags(GetProjectTagsArgs.builder()
            .project("foo/bar")
            .build()));

    }
}
import pulumi
import pulumi_gitlab as gitlab

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

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

Using getProjectTags

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 getProjectTags(args: GetProjectTagsArgs, opts?: InvokeOptions): Promise<GetProjectTagsResult>
function getProjectTagsOutput(args: GetProjectTagsOutputArgs, opts?: InvokeOptions): Output<GetProjectTagsResult>
def get_project_tags(order_by: Optional[str] = None,
                     project: Optional[str] = None,
                     search: Optional[str] = None,
                     sort: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProjectTagsResult
def get_project_tags_output(order_by: Optional[pulumi.Input[str]] = None,
                     project: Optional[pulumi.Input[str]] = None,
                     search: Optional[pulumi.Input[str]] = None,
                     sort: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectTagsResult]
func GetProjectTags(ctx *Context, args *GetProjectTagsArgs, opts ...InvokeOption) (*GetProjectTagsResult, error)
func GetProjectTagsOutput(ctx *Context, args *GetProjectTagsOutputArgs, opts ...InvokeOption) GetProjectTagsResultOutput

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

public static class GetProjectTags 
{
    public static Task<GetProjectTagsResult> InvokeAsync(GetProjectTagsArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectTagsResult> Invoke(GetProjectTagsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectTagsResult> getProjectTags(GetProjectTagsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gitlab:index/getProjectTags:getProjectTags
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Project string
OrderBy string
Search string
Sort string
Project string
OrderBy string
Search string
Sort string
project String
orderBy String
search String
sort String
project string
orderBy string
search string
sort string
project String
orderBy String
search String
sort String

getProjectTags Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Project string
Tags List<Pulumi.GitLab.Outputs.GetProjectTagsTag>
OrderBy string
Search string
Sort string
Id string

The provider-assigned unique ID for this managed resource.

Project string
Tags []GetProjectTagsTag
OrderBy string
Search string
Sort string
id String

The provider-assigned unique ID for this managed resource.

project String
tags List<GetProjectTagsTag>
orderBy String
search String
sort String
id string

The provider-assigned unique ID for this managed resource.

project string
tags GetProjectTagsTag[]
orderBy string
search string
sort string
id str

The provider-assigned unique ID for this managed resource.

project str
tags Sequence[GetProjectTagsTag]
order_by str
search str
sort str
id String

The provider-assigned unique ID for this managed resource.

project String
tags List<Property Map>
orderBy String
search String
sort String

Supporting Types

GetProjectTagsTag

GetProjectTagsTagCommit

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

GetProjectTagsTagRelease

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.