GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi
gitlab.getReleaseLink
Explore with Pulumi AI
The gitlab.ReleaseLink
data source allows get details of a release link.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getReleaseLink({
linkId: 11,
project: "foo/bar",
tagName: "v1.0.1",
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_release_link(link_id=11,
project="foo/bar",
tag_name="v1.0.1")
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.LookupReleaseLink(ctx, &gitlab.LookupReleaseLinkArgs{
LinkId: 11,
Project: "foo/bar",
TagName: "v1.0.1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetReleaseLink.Invoke(new()
{
LinkId = 11,
Project = "foo/bar",
TagName = "v1.0.1",
});
});
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.GetReleaseLinkArgs;
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.getReleaseLink(GetReleaseLinkArgs.builder()
.linkId("11")
.project("foo/bar")
.tagName("v1.0.1")
.build());
}
}
variables:
example:
fn::invoke:
Function: gitlab:getReleaseLink
Arguments:
linkId: '11'
project: foo/bar
tagName: v1.0.1
Using getReleaseLink
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 getReleaseLink(args: GetReleaseLinkArgs, opts?: InvokeOptions): Promise<GetReleaseLinkResult>
function getReleaseLinkOutput(args: GetReleaseLinkOutputArgs, opts?: InvokeOptions): Output<GetReleaseLinkResult>
def get_release_link(link_id: Optional[int] = None,
project: Optional[str] = None,
tag_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReleaseLinkResult
def get_release_link_output(link_id: Optional[pulumi.Input[int]] = None,
project: Optional[pulumi.Input[str]] = None,
tag_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReleaseLinkResult]
func LookupReleaseLink(ctx *Context, args *LookupReleaseLinkArgs, opts ...InvokeOption) (*LookupReleaseLinkResult, error)
func LookupReleaseLinkOutput(ctx *Context, args *LookupReleaseLinkOutputArgs, opts ...InvokeOption) LookupReleaseLinkResultOutput
> Note: This function is named LookupReleaseLink
in the Go SDK.
public static class GetReleaseLink
{
public static Task<GetReleaseLinkResult> InvokeAsync(GetReleaseLinkArgs args, InvokeOptions? opts = null)
public static Output<GetReleaseLinkResult> Invoke(GetReleaseLinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReleaseLinkResult> getReleaseLink(GetReleaseLinkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getReleaseLink:getReleaseLink
arguments:
# arguments dictionary
The following arguments are supported:
- Link
Id int - The ID of the link.
- Project string
- The ID or URL-encoded path of the project.
- Tag
Name string - The tag associated with the Release.
- Link
Id int - The ID of the link.
- Project string
- The ID or URL-encoded path of the project.
- Tag
Name string - The tag associated with the Release.
- link
Id Integer - The ID of the link.
- project String
- The ID or URL-encoded path of the project.
- tag
Name String - The tag associated with the Release.
- link
Id number - The ID of the link.
- project string
- The ID or URL-encoded path of the project.
- tag
Name string - The tag associated with the Release.
- link_
id int - The ID of the link.
- project str
- The ID or URL-encoded path of the project.
- tag_
name str - The tag associated with the Release.
- link
Id Number - The ID of the link.
- project String
- The ID or URL-encoded path of the project.
- tag
Name String - The tag associated with the Release.
getReleaseLink Result
The following output properties are available:
- Direct
Asset stringUrl - Full path for a Direct Asset link.
- External bool
- External or internal link.
- Filepath string
- Relative path for a Direct Asset link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id int - The ID of the link.
- Link
Type string - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - Name string
- The name of the link. Link names must be unique within the release.
- Project string
- The ID or URL-encoded path of the project.
- Tag
Name string - The tag associated with the Release.
- Url string
- The URL of the link. Link URLs must be unique within the release.
- Direct
Asset stringUrl - Full path for a Direct Asset link.
- External bool
- External or internal link.
- Filepath string
- Relative path for a Direct Asset link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id int - The ID of the link.
- Link
Type string - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - Name string
- The name of the link. Link names must be unique within the release.
- Project string
- The ID or URL-encoded path of the project.
- Tag
Name string - The tag associated with the Release.
- Url string
- The URL of the link. Link URLs must be unique within the release.
- direct
Asset StringUrl - Full path for a Direct Asset link.
- external Boolean
- External or internal link.
- filepath String
- Relative path for a Direct Asset link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id Integer - The ID of the link.
- link
Type String - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - name String
- The name of the link. Link names must be unique within the release.
- project String
- The ID or URL-encoded path of the project.
- tag
Name String - The tag associated with the Release.
- url String
- The URL of the link. Link URLs must be unique within the release.
- direct
Asset stringUrl - Full path for a Direct Asset link.
- external boolean
- External or internal link.
- filepath string
- Relative path for a Direct Asset link.
- id string
- The provider-assigned unique ID for this managed resource.
- link
Id number - The ID of the link.
- link
Type string - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - name string
- The name of the link. Link names must be unique within the release.
- project string
- The ID or URL-encoded path of the project.
- tag
Name string - The tag associated with the Release.
- url string
- The URL of the link. Link URLs must be unique within the release.
- direct_
asset_ strurl - Full path for a Direct Asset link.
- external bool
- External or internal link.
- filepath str
- Relative path for a Direct Asset link.
- id str
- The provider-assigned unique ID for this managed resource.
- link_
id int - The ID of the link.
- link_
type str - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - name str
- The name of the link. Link names must be unique within the release.
- project str
- The ID or URL-encoded path of the project.
- tag_
name str - The tag associated with the Release.
- url str
- The URL of the link. Link URLs must be unique within the release.
- direct
Asset StringUrl - Full path for a Direct Asset link.
- external Boolean
- External or internal link.
- filepath String
- Relative path for a Direct Asset link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id Number - The ID of the link.
- link
Type String - The type of the link. Valid values are
other
,runbook
,image
,package
. Defaults to other. - name String
- The name of the link. Link names must be unique within the release.
- project String
- The ID or URL-encoded path of the project.
- tag
Name String - The tag associated with the Release.
- url String
- The URL of the link. Link URLs must be unique within the release.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.