get Release
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";
const example = gitlab.getRelease({
projectId: "1234",
tagName: "v1.0",
});
Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_release(project_id="1234",
tag_name="v1.0")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetRelease.Invoke(new()
{
ProjectId = "1234",
TagName = "v1.0",
});
});
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.GetRelease(ctx, &gitlab.GetReleaseArgs{
ProjectId: "1234",
TagName: "v1.0",
}, 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.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) {
final var example = GitlabFunctions.getRelease(GetReleaseArgs.builder()
.projectId(1234)
.tagName("v1.0")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
Function: gitlab:getRelease
Arguments:
projectId: 1234
tagName: v1.0
Content copied to clipboard
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
project Id
The ID or URL-encoded path of the project.
tag Name
The Git tag the release is associated with.
See also
Return
A collection of values returned by getRelease.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetReleasePlainArgs.