1. Packages
  2. GitLab
  3. API Docs
  4. getProjectMilestone
GitLab v6.11.0 published on Friday, Apr 19, 2024 by Pulumi

gitlab.getProjectMilestone

Explore with Pulumi AI

gitlab logo
GitLab v6.11.0 published on Friday, Apr 19, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.get_project_milestone(milestone_id=10,
        project="foo/bar")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: gitlab:getProjectMilestone
          Arguments:
            milestoneId: 10
            project: foo/bar
    

    Using getProjectMilestone

    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 getProjectMilestone(args: GetProjectMilestoneArgs, opts?: InvokeOptions): Promise<GetProjectMilestoneResult>
    function getProjectMilestoneOutput(args: GetProjectMilestoneOutputArgs, opts?: InvokeOptions): Output<GetProjectMilestoneResult>
    def get_project_milestone(milestone_id: Optional[int] = None,
                              project: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetProjectMilestoneResult
    def get_project_milestone_output(milestone_id: Optional[pulumi.Input[int]] = None,
                              project: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetProjectMilestoneResult]
    func LookupProjectMilestone(ctx *Context, args *LookupProjectMilestoneArgs, opts ...InvokeOption) (*LookupProjectMilestoneResult, error)
    func LookupProjectMilestoneOutput(ctx *Context, args *LookupProjectMilestoneOutputArgs, opts ...InvokeOption) LookupProjectMilestoneResultOutput

    > Note: This function is named LookupProjectMilestone in the Go SDK.

    public static class GetProjectMilestone 
    {
        public static Task<GetProjectMilestoneResult> InvokeAsync(GetProjectMilestoneArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectMilestoneResult> Invoke(GetProjectMilestoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectMilestoneResult> getProjectMilestone(GetProjectMilestoneArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gitlab:index/getProjectMilestone:getProjectMilestone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MilestoneId int
    The instance-wide ID of the project’s milestone.
    Project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    MilestoneId int
    The instance-wide ID of the project’s milestone.
    Project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    milestoneId Integer
    The instance-wide ID of the project’s milestone.
    project String
    The ID or URL-encoded path of the project owned by the authenticated user.
    milestoneId number
    The instance-wide ID of the project’s milestone.
    project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    milestone_id int
    The instance-wide ID of the project’s milestone.
    project str
    The ID or URL-encoded path of the project owned by the authenticated user.
    milestoneId Number
    The instance-wide ID of the project’s milestone.
    project String
    The ID or URL-encoded path of the project owned by the authenticated user.

    getProjectMilestone Result

    The following output properties are available:

    CreatedAt string
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    Description string
    The description of the milestone.
    DueDate string
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    Expired bool
    Bool, true if milestone expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    Iid int
    The ID of the project's milestone.
    MilestoneId int
    The instance-wide ID of the project’s milestone.
    Project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    ProjectId int
    The project ID of milestone.
    StartDate string
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    State string
    The state of the milestone. Valid values are: active, closed.
    Title string
    The title of a milestone.
    UpdatedAt string
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    WebUrl string
    The web URL of the milestone.
    CreatedAt string
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    Description string
    The description of the milestone.
    DueDate string
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    Expired bool
    Bool, true if milestone expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    Iid int
    The ID of the project's milestone.
    MilestoneId int
    The instance-wide ID of the project’s milestone.
    Project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    ProjectId int
    The project ID of milestone.
    StartDate string
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    State string
    The state of the milestone. Valid values are: active, closed.
    Title string
    The title of a milestone.
    UpdatedAt string
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    WebUrl string
    The web URL of the milestone.
    createdAt String
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    description String
    The description of the milestone.
    dueDate String
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    expired Boolean
    Bool, true if milestone expired.
    id String
    The provider-assigned unique ID for this managed resource.
    iid Integer
    The ID of the project's milestone.
    milestoneId Integer
    The instance-wide ID of the project’s milestone.
    project String
    The ID or URL-encoded path of the project owned by the authenticated user.
    projectId Integer
    The project ID of milestone.
    startDate String
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    state String
    The state of the milestone. Valid values are: active, closed.
    title String
    The title of a milestone.
    updatedAt String
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    webUrl String
    The web URL of the milestone.
    createdAt string
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    description string
    The description of the milestone.
    dueDate string
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    expired boolean
    Bool, true if milestone expired.
    id string
    The provider-assigned unique ID for this managed resource.
    iid number
    The ID of the project's milestone.
    milestoneId number
    The instance-wide ID of the project’s milestone.
    project string
    The ID or URL-encoded path of the project owned by the authenticated user.
    projectId number
    The project ID of milestone.
    startDate string
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    state string
    The state of the milestone. Valid values are: active, closed.
    title string
    The title of a milestone.
    updatedAt string
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    webUrl string
    The web URL of the milestone.
    created_at str
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    description str
    The description of the milestone.
    due_date str
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    expired bool
    Bool, true if milestone expired.
    id str
    The provider-assigned unique ID for this managed resource.
    iid int
    The ID of the project's milestone.
    milestone_id int
    The instance-wide ID of the project’s milestone.
    project str
    The ID or URL-encoded path of the project owned by the authenticated user.
    project_id int
    The project ID of milestone.
    start_date str
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    state str
    The state of the milestone. Valid values are: active, closed.
    title str
    The title of a milestone.
    updated_at str
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    web_url str
    The web URL of the milestone.
    createdAt String
    The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    description String
    The description of the milestone.
    dueDate String
    The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    expired Boolean
    Bool, true if milestone expired.
    id String
    The provider-assigned unique ID for this managed resource.
    iid Number
    The ID of the project's milestone.
    milestoneId Number
    The instance-wide ID of the project’s milestone.
    project String
    The ID or URL-encoded path of the project owned by the authenticated user.
    projectId Number
    The project ID of milestone.
    startDate String
    The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.
    state String
    The state of the milestone. Valid values are: active, closed.
    title String
    The title of a milestone.
    updatedAt String
    The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
    webUrl String
    The web URL of the milestone.

    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.11.0 published on Friday, Apr 19, 2024 by Pulumi