get Project Milestone
The gitlab.ProjectMilestone
data source allows get details of a project milestone. Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getProjectMilestone({
milestoneId: 10,
project: "foo/bar",
});
Content copied to clipboard
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_project_milestone(milestone_id=10,
project="foo/bar")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetProjectMilestone.Invoke(new()
{
MilestoneId = 10,
Project = "foo/bar",
});
});
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.LookupProjectMilestone(ctx, &gitlab.LookupProjectMilestoneArgs{
MilestoneId: 10,
Project: "foo/bar",
}, 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.GetProjectMilestoneArgs;
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.getProjectMilestone(GetProjectMilestoneArgs.builder()
.milestoneId(10)
.project("foo/bar")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
Function: gitlab:getProjectMilestone
Arguments:
milestoneId: 10
project: foo/bar
Content copied to clipboard
Return
A collection of values returned by getProjectMilestone.
Parameters
argument
A collection of arguments for invoking getProjectMilestone.
Return
A collection of values returned by getProjectMilestone.
Parameters
milestone Id
The instance-wide ID of the project’s milestone.
project
The ID or URL-encoded path of the project owned by the authenticated user.
See also
suspend fun getProjectMilestone(argument: suspend GetProjectMilestonePlainArgsBuilder.() -> Unit): GetProjectMilestoneResult
Return
A collection of values returned by getProjectMilestone.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectMilestonePlainArgs.