getRelease

The gitlab.getRelease data source retrieves information about a gitlab release for a project. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// By project ID and tag_name
const example = gitlab.getRelease({
projectId: "1234",
tagName: "v1.0",
});
import pulumi
import pulumi_gitlab as gitlab
# By project ID and tag_name
example = gitlab.get_release(project_id="1234",
tag_name="v1.0")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// By project ID and tag_name
var example = GitLab.GetRelease.Invoke(new()
{
ProjectId = "1234",
TagName = "v1.0",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v7/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// By project ID and tag_name
_, err := gitlab.GetRelease(ctx, &gitlab.GetReleaseArgs{
ProjectId: "1234",
TagName: "v1.0",
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetReleaseArgs;
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) {
// By project ID and tag_name
final var example = GitlabFunctions.getRelease(GetReleaseArgs.builder()
.projectId(1234)
.tagName("v1.0")
.build());
}
}
variables:
# By project ID and tag_name
example:
fn::invoke:
Function: gitlab:getRelease
Arguments:
projectId: 1234
tagName: v1.0

Return

A collection of values returned by getRelease.

Parameters

argument

A collection of arguments for invoking getRelease.


suspend fun getRelease(assets: GetReleaseAssets? = null, projectId: String, tagName: String): GetReleaseResult

Return

A collection of values returned by getRelease.

Parameters

assets

The assets for a release

projectId

The ID or URL-encoded path of the project.

tagName

The Git tag the release is associated with.

See also


suspend fun getRelease(argument: suspend GetReleasePlainArgsBuilder.() -> Unit): GetReleaseResult

Return

A collection of values returned by getRelease.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetReleasePlainArgs.

See also