GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi
gitlab.getProjectMilestones
Explore with Pulumi AI
The gitlab.getProjectMilestones data source allows get details of a project milestones.
Upstream API: GitLab REST API docs
Using getProjectMilestones
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 getProjectMilestones(args: GetProjectMilestonesArgs, opts?: InvokeOptions): Promise<GetProjectMilestonesResult>
function getProjectMilestonesOutput(args: GetProjectMilestonesOutputArgs, opts?: InvokeOptions): Output<GetProjectMilestonesResult>def get_project_milestones(iids: Optional[Sequence[int]] = None,
                           include_parent_milestones: Optional[bool] = None,
                           project: Optional[str] = None,
                           search: Optional[str] = None,
                           state: Optional[str] = None,
                           title: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetProjectMilestonesResult
def get_project_milestones_output(iids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                           include_parent_milestones: Optional[pulumi.Input[bool]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           search: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           title: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetProjectMilestonesResult]func GetProjectMilestones(ctx *Context, args *GetProjectMilestonesArgs, opts ...InvokeOption) (*GetProjectMilestonesResult, error)
func GetProjectMilestonesOutput(ctx *Context, args *GetProjectMilestonesOutputArgs, opts ...InvokeOption) GetProjectMilestonesResultOutput> Note: This function is named GetProjectMilestones in the Go SDK.
public static class GetProjectMilestones 
{
    public static Task<GetProjectMilestonesResult> InvokeAsync(GetProjectMilestonesArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectMilestonesResult> Invoke(GetProjectMilestonesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectMilestonesResult> getProjectMilestones(GetProjectMilestonesArgs args, InvokeOptions options)
public static Output<GetProjectMilestonesResult> getProjectMilestones(GetProjectMilestonesArgs args, InvokeOptions options)
fn::invoke:
  function: gitlab:index/getProjectMilestones:getProjectMilestones
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - Iids List<int>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - Include
Parent boolMilestones  - Include group milestones from parent group and its ancestors.
 - Search string
 - Return only milestones with a title or description matching the provided string.
 - State string
 - Return only 
activeorclosedmilestones. - Title string
 - Return only the milestones having the given 
title. 
- Project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - Iids []int
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - Include
Parent boolMilestones  - Include group milestones from parent group and its ancestors.
 - Search string
 - Return only milestones with a title or description matching the provided string.
 - State string
 - Return only 
activeorclosedmilestones. - Title string
 - Return only the milestones having the given 
title. 
- project String
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids List<Integer>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent BooleanMilestones  - Include group milestones from parent group and its ancestors.
 - search String
 - Return only milestones with a title or description matching the provided string.
 - state String
 - Return only 
activeorclosedmilestones. - title String
 - Return only the milestones having the given 
title. 
- project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids number[]
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent booleanMilestones  - Include group milestones from parent group and its ancestors.
 - search string
 - Return only milestones with a title or description matching the provided string.
 - state string
 - Return only 
activeorclosedmilestones. - title string
 - Return only the milestones having the given 
title. 
- project str
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids Sequence[int]
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include_
parent_ boolmilestones  - Include group milestones from parent group and its ancestors.
 - search str
 - Return only milestones with a title or description matching the provided string.
 - state str
 - Return only 
activeorclosedmilestones. - title str
 - Return only the milestones having the given 
title. 
- project String
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids List<Number>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent BooleanMilestones  - Include group milestones from parent group and its ancestors.
 - search String
 - Return only milestones with a title or description matching the provided string.
 - state String
 - Return only 
activeorclosedmilestones. - title String
 - Return only the milestones having the given 
title. 
getProjectMilestones Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Milestones
List<Pulumi.
Git Lab. Outputs. Get Project Milestones Milestone>  - List of milestones from a project.
 - Project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - Iids List<int>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - Include
Parent boolMilestones  - Include group milestones from parent group and its ancestors.
 - Search string
 - Return only milestones with a title or description matching the provided string.
 - State string
 - Return only 
activeorclosedmilestones. - Title string
 - Return only the milestones having the given 
title. 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Milestones
[]Get
Project Milestones Milestone  - List of milestones from a project.
 - Project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - Iids []int
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - Include
Parent boolMilestones  - Include group milestones from parent group and its ancestors.
 - Search string
 - Return only milestones with a title or description matching the provided string.
 - State string
 - Return only 
activeorclosedmilestones. - Title string
 - Return only the milestones having the given 
title. 
- id String
 - The provider-assigned unique ID for this managed resource.
 - milestones
List<Get
Project Milestones Milestone>  - List of milestones from a project.
 - project String
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids List<Integer>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent BooleanMilestones  - Include group milestones from parent group and its ancestors.
 - search String
 - Return only milestones with a title or description matching the provided string.
 - state String
 - Return only 
activeorclosedmilestones. - title String
 - Return only the milestones having the given 
title. 
- id string
 - The provider-assigned unique ID for this managed resource.
 - milestones
Get
Project Milestones Milestone[]  - List of milestones from a project.
 - project string
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids number[]
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent booleanMilestones  - Include group milestones from parent group and its ancestors.
 - search string
 - Return only milestones with a title or description matching the provided string.
 - state string
 - Return only 
activeorclosedmilestones. - title string
 - Return only the milestones having the given 
title. 
- id str
 - The provider-assigned unique ID for this managed resource.
 - milestones
Sequence[Get
Project Milestones Milestone]  - List of milestones from a project.
 - project str
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids Sequence[int]
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include_
parent_ boolmilestones  - Include group milestones from parent group and its ancestors.
 - search str
 - Return only milestones with a title or description matching the provided string.
 - state str
 - Return only 
activeorclosedmilestones. - title str
 - Return only the milestones having the given 
title. 
- id String
 - The provider-assigned unique ID for this managed resource.
 - milestones List<Property Map>
 - List of milestones from a project.
 - project String
 - The ID or URL-encoded path of the project owned by the authenticated user.
 - iids List<Number>
 - Return only the milestones having the given 
iid(Note: ignored ifinclude_parent_milestonesis set astrue). - include
Parent BooleanMilestones  - Include group milestones from parent group and its ancestors.
 - search String
 - Return only milestones with a title or description matching the provided string.
 - state String
 - Return only 
activeorclosedmilestones. - title String
 - Return only the milestones having the given 
title. 
Supporting Types
GetProjectMilestonesMilestone   
- Created
At 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.
 - Due
Date 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.
 - Iid int
 - The ID of the project's milestone.
 - Milestone
Id 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.
 - Project
Id int - The project ID of milestone.
 - Start
Date 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.
 - Updated
At string - The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
 - Web
Url string - The web URL of the milestone.
 
- Created
At 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.
 - Due
Date 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.
 - Iid int
 - The ID of the project's milestone.
 - Milestone
Id 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.
 - Project
Id int - The project ID of milestone.
 - Start
Date 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.
 - Updated
At string - The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
 - Web
Url string - The web URL of the milestone.
 
- created
At 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.
 - due
Date 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.
 - iid Integer
 - The ID of the project's milestone.
 - milestone
Id 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.
 - project
Id Integer - The project ID of milestone.
 - start
Date 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.
 - updated
At String - The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
 - web
Url String - The web URL of the milestone.
 
- created
At 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.
 - due
Date 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.
 - iid number
 - The ID of the project's milestone.
 - milestone
Id 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.
 - project
Id number - The project ID of milestone.
 - start
Date 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.
 - updated
At string - The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
 - web
Url 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.
 - 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.
 
- created
At 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.
 - due
Date 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.
 - iid Number
 - The ID of the project's milestone.
 - milestone
Id 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.
 - project
Id Number - The project ID of milestone.
 - start
Date 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.
 - updated
At String - The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.
 - web
Url 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 
gitlabTerraform Provider.