1. Packages
  2. GitLab
  3. API Docs
  4. getReleaseLinks
GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi

gitlab.getReleaseLinks

Explore with Pulumi AI

gitlab logo
GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi

    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:

    Project string
    TagName string
    Project string
    TagName string
    project String
    tagName String
    project string
    tagName string
    project String
    tagName String

    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.
    ReleaseLinks List<Pulumi.GitLab.Outputs.GetReleaseLinksReleaseLink>
    List of release links
    TagName 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.
    ReleaseLinks []GetReleaseLinksReleaseLink
    List of release links
    TagName 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.
    releaseLinks List<GetReleaseLinksReleaseLink>
    List of release links
    tagName 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.
    releaseLinks GetReleaseLinksReleaseLink[]
    List of release links
    tagName 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[GetReleaseLinksReleaseLink]
    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.
    releaseLinks List<Property Map>
    List of release links
    tagName String
    The tag associated with the Release.

    Supporting Types

    DirectAssetUrl string
    Full path for a Direct Asset link.
    External bool
    External or internal link.
    Filepath string
    Relative path for a Direct Asset link.
    LinkId int
    The ID of the link.
    LinkType 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.
    TagName string
    The tag associated with the Release.
    Url string
    The URL of the link. Link URLs must be unique within the release.
    DirectAssetUrl string
    Full path for a Direct Asset link.
    External bool
    External or internal link.
    Filepath string
    Relative path for a Direct Asset link.
    LinkId int
    The ID of the link.
    LinkType 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.
    TagName string
    The tag associated with the Release.
    Url string
    The URL of the link. Link URLs must be unique within the release.
    directAssetUrl String
    Full path for a Direct Asset link.
    external Boolean
    External or internal link.
    filepath String
    Relative path for a Direct Asset link.
    linkId Integer
    The ID of the link.
    linkType 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.
    tagName String
    The tag associated with the Release.
    url String
    The URL of the link. Link URLs must be unique within the release.
    directAssetUrl string
    Full path for a Direct Asset link.
    external boolean
    External or internal link.
    filepath string
    Relative path for a Direct Asset link.
    linkId number
    The ID of the link.
    linkType 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.
    tagName string
    The tag associated with the Release.
    url string
    The URL of the link. Link URLs must be unique within the release.
    direct_asset_url str
    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.
    directAssetUrl String
    Full path for a Direct Asset link.
    external Boolean
    External or internal link.
    filepath String
    Relative path for a Direct Asset link.
    linkId Number
    The ID of the link.
    linkType 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.
    tagName 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.
    gitlab logo
    GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi