The gitlab_release_link
data source allows get details of a release link.
Upstream API: GitLab REST API docs
# By project ID
data "gitlab_release_link" "example" {
project = "12345"
tag_name = "v1.0.1"
link_id = "11"
}
# By project full path
data "gitlab_release_link" "example" {
project = "foo/bar"
tag_name = "v1.0.1"
link_id = "11"
}
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.direct_asset_url
(String) 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 ID of this resource.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.url
(String) The URL of the link. Link URLs must be unique within the release.