GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi
gitlab.getReleaseLinks
Explore with Pulumi AI
The gitlab.getReleaseLinks
data source allows get details of release links.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getReleaseLinks({
project: "foo/bar",
tagName: "v1.0.1",
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_release_links(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.GetReleaseLinks(ctx, &gitlab.GetReleaseLinksArgs{
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.GetReleaseLinks.Invoke(new()
{
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.GetReleaseLinksArgs;
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.getReleaseLinks(GetReleaseLinksArgs.builder()
.project("foo/bar")
.tagName("v1.0.1")
.build());
}
}
variables:
example:
fn::invoke:
Function: gitlab:getReleaseLinks
Arguments:
project: foo/bar
tagName: v1.0.1
Using getReleaseLinks
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 getReleaseLinks(args: GetReleaseLinksArgs, opts?: InvokeOptions): Promise<GetReleaseLinksResult>
function getReleaseLinksOutput(args: GetReleaseLinksOutputArgs, opts?: InvokeOptions): Output<GetReleaseLinksResult>
def get_release_links(project: Optional[str] = None,
tag_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReleaseLinksResult
def get_release_links_output(project: Optional[pulumi.Input[str]] = None,
tag_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReleaseLinksResult]
func GetReleaseLinks(ctx *Context, args *GetReleaseLinksArgs, opts ...InvokeOption) (*GetReleaseLinksResult, error)
func GetReleaseLinksOutput(ctx *Context, args *GetReleaseLinksOutputArgs, opts ...InvokeOption) GetReleaseLinksResultOutput
> Note: This function is named GetReleaseLinks
in the Go SDK.
public static class GetReleaseLinks
{
public static Task<GetReleaseLinksResult> InvokeAsync(GetReleaseLinksArgs args, InvokeOptions? opts = null)
public static Output<GetReleaseLinksResult> Invoke(GetReleaseLinksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReleaseLinksResult> getReleaseLinks(GetReleaseLinksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getReleaseLinks:getReleaseLinks
arguments:
# arguments dictionary
The following arguments are supported:
getReleaseLinks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- The ID or full path to the project.
- Release
Links List<Pulumi.Git Lab. Outputs. Get Release Links Release Link> - List of release links
- Tag
Name string - The tag associated with the Release.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project string
- The ID or full path to the project.
- Release
Links []GetRelease Links Release Link - List of release links
- Tag
Name string - The tag associated with the Release.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- The ID or full path to the project.
- release
Links List<GetRelease Links Release Link> - List of release links
- tag
Name String - The tag associated with the Release.
- id string
- The provider-assigned unique ID for this managed resource.
- project string
- The ID or full path to the project.
- release
Links GetRelease Links Release Link[] - List of release links
- tag
Name string - The tag associated with the Release.
- id str
- The provider-assigned unique ID for this managed resource.
- project str
- The ID or full path to the project.
- release_
links Sequence[GetRelease Links Release Link] - List of release links
- tag_
name str - The tag associated with the Release.
- id String
- The provider-assigned unique ID for this managed resource.
- project String
- The ID or full path to the project.
- release
Links List<Property Map> - List of release links
- tag
Name String - The tag associated with the Release.
Supporting Types
GetReleaseLinksReleaseLink
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.