gitlab.getProjects
The gitlab.getProjects
data source allows details of multiple projects to be retrieved. Optionally filtered by the set attributes.
This data source supports all available filters exposed by the xanzy/go-gitlab package, which might not expose all available filters exposed by the Gitlab APIs.
The owner sub-attributes are only populated if the Gitlab token used has an administrator scope.
Upstream API: GitLab REST API docs
Example Usage
using System.Collections.Generic;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var mygroup = GitLab.GetGroup.Invoke(new()
{
FullPath = "mygroup",
});
var groupProjects = GitLab.GetProjects.Invoke(new()
{
GroupId = mygroup.Apply(getGroupResult => getGroupResult.Id),
OrderBy = "name",
IncludeSubgroups = true,
WithShared = false,
});
var projects = GitLab.GetProjects.Invoke(new()
{
Search = "postgresql",
Visibility = "private",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
mygroup, err := gitlab.LookupGroup(ctx, &GetGroupArgs{
FullPath: pulumi.StringRef("mygroup"),
}, nil)
if err != nil {
return err
}
_, err = gitlab.GetProjects(ctx, &GetProjectsArgs{
GroupId: pulumi.IntRef(mygroup.Id),
OrderBy: pulumi.StringRef("name"),
IncludeSubgroups: pulumi.BoolRef(true),
WithShared: pulumi.BoolRef(false),
}, nil)
if err != nil {
return err
}
_, err = gitlab.GetProjects(ctx, &GetProjectsArgs{
Search: pulumi.StringRef("postgresql"),
Visibility: pulumi.StringRef("private"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetGroupArgs;
import com.pulumi.gitlab.inputs.GetProjectsArgs;
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 mygroup = GitlabFunctions.getGroup(GetGroupArgs.builder()
.fullPath("mygroup")
.build());
final var groupProjects = GitlabFunctions.getProjects(GetProjectsArgs.builder()
.groupId(mygroup.applyValue(getGroupResult -> getGroupResult.id()))
.orderBy("name")
.includeSubgroups(true)
.withShared(false)
.build());
final var projects = GitlabFunctions.getProjects(GetProjectsArgs.builder()
.search("postgresql")
.visibility("private")
.build());
}
}
import pulumi
import pulumi_gitlab as gitlab
mygroup = gitlab.get_group(full_path="mygroup")
group_projects = gitlab.get_projects(group_id=mygroup.id,
order_by="name",
include_subgroups=True,
with_shared=False)
projects = gitlab.get_projects(search="postgresql",
visibility="private")
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const mygroup = gitlab.getGroup({
fullPath: "mygroup",
});
const groupProjects = mygroup.then(mygroup => gitlab.getProjects({
groupId: mygroup.id,
orderBy: "name",
includeSubgroups: true,
withShared: false,
}));
const projects = gitlab.getProjects({
search: "postgresql",
visibility: "private",
});
variables:
mygroup:
fn::invoke:
Function: gitlab:getGroup
Arguments:
fullPath: mygroup
groupProjects:
fn::invoke:
Function: gitlab:getProjects
Arguments:
groupId: ${mygroup.id}
orderBy: name
includeSubgroups: true
withShared: false
projects:
fn::invoke:
Function: gitlab:getProjects
Arguments:
search: postgresql
visibility: private
Using getProjects
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 getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
def get_projects(archived: Optional[bool] = None,
group_id: Optional[int] = None,
include_subgroups: Optional[bool] = None,
max_queryable_pages: Optional[int] = None,
membership: Optional[bool] = None,
min_access_level: Optional[int] = None,
order_by: Optional[str] = None,
owned: Optional[bool] = None,
page: Optional[int] = None,
per_page: Optional[int] = None,
search: Optional[str] = None,
simple: Optional[bool] = None,
sort: Optional[str] = None,
starred: Optional[bool] = None,
statistics: Optional[bool] = None,
visibility: Optional[str] = None,
with_custom_attributes: Optional[bool] = None,
with_issues_enabled: Optional[bool] = None,
with_merge_requests_enabled: Optional[bool] = None,
with_programming_language: Optional[str] = None,
with_shared: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(archived: Optional[pulumi.Input[bool]] = None,
group_id: Optional[pulumi.Input[int]] = None,
include_subgroups: Optional[pulumi.Input[bool]] = None,
max_queryable_pages: Optional[pulumi.Input[int]] = None,
membership: Optional[pulumi.Input[bool]] = None,
min_access_level: Optional[pulumi.Input[int]] = None,
order_by: Optional[pulumi.Input[str]] = None,
owned: Optional[pulumi.Input[bool]] = None,
page: Optional[pulumi.Input[int]] = None,
per_page: Optional[pulumi.Input[int]] = None,
search: Optional[pulumi.Input[str]] = None,
simple: Optional[pulumi.Input[bool]] = None,
sort: Optional[pulumi.Input[str]] = None,
starred: Optional[pulumi.Input[bool]] = None,
statistics: Optional[pulumi.Input[bool]] = None,
visibility: Optional[pulumi.Input[str]] = None,
with_custom_attributes: Optional[pulumi.Input[bool]] = None,
with_issues_enabled: Optional[pulumi.Input[bool]] = None,
with_merge_requests_enabled: Optional[pulumi.Input[bool]] = None,
with_programming_language: Optional[pulumi.Input[str]] = None,
with_shared: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
> Note: This function is named GetProjects
in the Go SDK.
public static class GetProjects
{
public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getProjects:getProjects
arguments:
# arguments dictionary
The following arguments are supported:
- Archived bool
Limit by archived status.
- Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Include
Subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- Max
Queryable intPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- Membership bool
Limit by projects that the current user is a member of.
- Min
Access intLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- Order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- Owned bool
Limit by projects owned by the current user.
- Page int
The first page to begin the query on.
- Per
Page int The number of results to return per page.
- Search string
Return list of authorized projects matching the search criteria.
- Simple bool
Return only the ID, URL, name, and path of each project.
- Sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- Starred bool
Limit by projects starred by the current user.
- Statistics bool
Include project statistics. Cannot be used with
group_id
.- Visibility string
Limit by visibility
public
,internal
, orprivate
.- With
Custom boolAttributes Include custom attributes in response (admins only).
- With
Issues boolEnabled Limit by projects with issues feature enabled. Default is
false
.- With
Merge boolRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- With
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- Archived bool
Limit by archived status.
- Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Include
Subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- Max
Queryable intPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- Membership bool
Limit by projects that the current user is a member of.
- Min
Access intLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- Order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- Owned bool
Limit by projects owned by the current user.
- Page int
The first page to begin the query on.
- Per
Page int The number of results to return per page.
- Search string
Return list of authorized projects matching the search criteria.
- Simple bool
Return only the ID, URL, name, and path of each project.
- Sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- Starred bool
Limit by projects starred by the current user.
- Statistics bool
Include project statistics. Cannot be used with
group_id
.- Visibility string
Limit by visibility
public
,internal
, orprivate
.- With
Custom boolAttributes Include custom attributes in response (admins only).
- With
Issues boolEnabled Limit by projects with issues feature enabled. Default is
false
.- With
Merge boolRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- With
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- archived Boolean
Limit by archived status.
- group
Id Integer The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups Boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable IntegerPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership Boolean
Limit by projects that the current user is a member of.
- min
Access IntegerLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By String Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned Boolean
Limit by projects owned by the current user.
- page Integer
The first page to begin the query on.
- per
Page Integer The number of results to return per page.
- search String
Return list of authorized projects matching the search criteria.
- simple Boolean
Return only the ID, URL, name, and path of each project.
- sort String
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred Boolean
Limit by projects starred by the current user.
- statistics Boolean
Include project statistics. Cannot be used with
group_id
.- visibility String
Limit by visibility
public
,internal
, orprivate
.- with
Custom BooleanAttributes Include custom attributes in response (admins only).
- with
Issues BooleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge BooleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming StringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- Boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- archived boolean
Limit by archived status.
- group
Id number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable numberPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership boolean
Limit by projects that the current user is a member of.
- min
Access numberLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned boolean
Limit by projects owned by the current user.
- page number
The first page to begin the query on.
- per
Page number The number of results to return per page.
- search string
Return list of authorized projects matching the search criteria.
- simple boolean
Return only the ID, URL, name, and path of each project.
- sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred boolean
Limit by projects starred by the current user.
- statistics boolean
Include project statistics. Cannot be used with
group_id
.- visibility string
Limit by visibility
public
,internal
, orprivate
.- with
Custom booleanAttributes Include custom attributes in response (admins only).
- with
Issues booleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge booleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- archived bool
Limit by archived status.
- group_
id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include_
subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max_
queryable_ intpages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership bool
Limit by projects that the current user is a member of.
- min_
access_ intlevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order_
by str Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned bool
Limit by projects owned by the current user.
- page int
The first page to begin the query on.
- per_
page int The number of results to return per page.
- search str
Return list of authorized projects matching the search criteria.
- simple bool
Return only the ID, URL, name, and path of each project.
- sort str
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred bool
Limit by projects starred by the current user.
- statistics bool
Include project statistics. Cannot be used with
group_id
.- visibility str
Limit by visibility
public
,internal
, orprivate
.- with_
custom_ boolattributes Include custom attributes in response (admins only).
- with_
issues_ boolenabled Limit by projects with issues feature enabled. Default is
false
.- with_
merge_ boolrequests_ enabled Limit by projects with merge requests feature enabled. Default is
false
.- with_
programming_ strlanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- archived Boolean
Limit by archived status.
- group
Id Number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups Boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable NumberPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership Boolean
Limit by projects that the current user is a member of.
- min
Access NumberLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By String Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned Boolean
Limit by projects owned by the current user.
- page Number
The first page to begin the query on.
- per
Page Number The number of results to return per page.
- search String
Return list of authorized projects matching the search criteria.
- simple Boolean
Return only the ID, URL, name, and path of each project.
- sort String
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred Boolean
Limit by projects starred by the current user.
- statistics Boolean
Include project statistics. Cannot be used with
group_id
.- visibility String
Limit by visibility
public
,internal
, orprivate
.- with
Custom BooleanAttributes Include custom attributes in response (admins only).
- with
Issues BooleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge BooleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming StringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- Boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
getProjects Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Projects
List<Pulumi.
Git Lab. Outputs. Get Projects Project> A list containing the projects matching the supplied arguments
- Archived bool
Limit by archived status.
- Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Include
Subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- Max
Queryable intPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- Membership bool
Limit by projects that the current user is a member of.
- Min
Access intLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- Order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- Owned bool
Limit by projects owned by the current user.
- Page int
The first page to begin the query on.
- Per
Page int The number of results to return per page.
- Search string
Return list of authorized projects matching the search criteria.
- Simple bool
Return only the ID, URL, name, and path of each project.
- Sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- Starred bool
Limit by projects starred by the current user.
- Statistics bool
Include project statistics. Cannot be used with
group_id
.- Visibility string
Limit by visibility
public
,internal
, orprivate
.- With
Custom boolAttributes Include custom attributes in response (admins only).
- With
Issues boolEnabled Limit by projects with issues feature enabled. Default is
false
.- With
Merge boolRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- With
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- Id string
The provider-assigned unique ID for this managed resource.
- Projects
[]Get
Projects Project A list containing the projects matching the supplied arguments
- Archived bool
Limit by archived status.
- Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Include
Subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- Max
Queryable intPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- Membership bool
Limit by projects that the current user is a member of.
- Min
Access intLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- Order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- Owned bool
Limit by projects owned by the current user.
- Page int
The first page to begin the query on.
- Per
Page int The number of results to return per page.
- Search string
Return list of authorized projects matching the search criteria.
- Simple bool
Return only the ID, URL, name, and path of each project.
- Sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- Starred bool
Limit by projects starred by the current user.
- Statistics bool
Include project statistics. Cannot be used with
group_id
.- Visibility string
Limit by visibility
public
,internal
, orprivate
.- With
Custom boolAttributes Include custom attributes in response (admins only).
- With
Issues boolEnabled Limit by projects with issues feature enabled. Default is
false
.- With
Merge boolRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- With
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- id String
The provider-assigned unique ID for this managed resource.
- projects
List<Get
Projects Project> A list containing the projects matching the supplied arguments
- archived Boolean
Limit by archived status.
- group
Id Integer The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups Boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable IntegerPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership Boolean
Limit by projects that the current user is a member of.
- min
Access IntegerLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By String Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned Boolean
Limit by projects owned by the current user.
- page Integer
The first page to begin the query on.
- per
Page Integer The number of results to return per page.
- search String
Return list of authorized projects matching the search criteria.
- simple Boolean
Return only the ID, URL, name, and path of each project.
- sort String
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred Boolean
Limit by projects starred by the current user.
- statistics Boolean
Include project statistics. Cannot be used with
group_id
.- visibility String
Limit by visibility
public
,internal
, orprivate
.- with
Custom BooleanAttributes Include custom attributes in response (admins only).
- with
Issues BooleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge BooleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming StringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- Boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- id string
The provider-assigned unique ID for this managed resource.
- projects
Get
Projects Project[] A list containing the projects matching the supplied arguments
- archived boolean
Limit by archived status.
- group
Id number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable numberPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership boolean
Limit by projects that the current user is a member of.
- min
Access numberLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By string Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned boolean
Limit by projects owned by the current user.
- page number
The first page to begin the query on.
- per
Page number The number of results to return per page.
- search string
Return list of authorized projects matching the search criteria.
- simple boolean
Return only the ID, URL, name, and path of each project.
- sort string
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred boolean
Limit by projects starred by the current user.
- statistics boolean
Include project statistics. Cannot be used with
group_id
.- visibility string
Limit by visibility
public
,internal
, orprivate
.- with
Custom booleanAttributes Include custom attributes in response (admins only).
- with
Issues booleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge booleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming stringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- id str
The provider-assigned unique ID for this managed resource.
- projects
Sequence[Get
Projects Project] A list containing the projects matching the supplied arguments
- archived bool
Limit by archived status.
- group_
id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include_
subgroups bool Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max_
queryable_ intpages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership bool
Limit by projects that the current user is a member of.
- min_
access_ intlevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order_
by str Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned bool
Limit by projects owned by the current user.
- page int
The first page to begin the query on.
- per_
page int The number of results to return per page.
- search str
Return list of authorized projects matching the search criteria.
- simple bool
Return only the ID, URL, name, and path of each project.
- sort str
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred bool
Limit by projects starred by the current user.
- statistics bool
Include project statistics. Cannot be used with
group_id
.- visibility str
Limit by visibility
public
,internal
, orprivate
.- with_
custom_ boolattributes Include custom attributes in response (admins only).
- with_
issues_ boolenabled Limit by projects with issues feature enabled. Default is
false
.- with_
merge_ boolrequests_ enabled Limit by projects with merge requests feature enabled. Default is
false
.- with_
programming_ strlanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- bool
Include projects shared to this group. Default is
true
. Needsgroup_id
.
- id String
The provider-assigned unique ID for this managed resource.
- projects List<Property Map>
A list containing the projects matching the supplied arguments
- archived Boolean
Limit by archived status.
- group
Id Number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- include
Subgroups Boolean Include projects in subgroups of this group. Default is
false
. Needsgroup_id
.- max
Queryable NumberPages The maximum number of project results pages that may be queried. Prevents overloading your Gitlab instance in case of a misconfiguration.
- membership Boolean
Limit by projects that the current user is a member of.
- min
Access NumberLevel Limit to projects where current user has at least this access level, refer to the official documentation for values. Cannot be used with
group_id
.- order
By String Return projects ordered by
id
,name
,path
,created_at
,updated_at
, orlast_activity_at
fields. Default iscreated_at
.- owned Boolean
Limit by projects owned by the current user.
- page Number
The first page to begin the query on.
- per
Page Number The number of results to return per page.
- search String
Return list of authorized projects matching the search criteria.
- simple Boolean
Return only the ID, URL, name, and path of each project.
- sort String
Return projects sorted in
asc
ordesc
order. Default isdesc
.- starred Boolean
Limit by projects starred by the current user.
- statistics Boolean
Include project statistics. Cannot be used with
group_id
.- visibility String
Limit by visibility
public
,internal
, orprivate
.- with
Custom BooleanAttributes Include custom attributes in response (admins only).
- with
Issues BooleanEnabled Limit by projects with issues feature enabled. Default is
false
.- with
Merge BooleanRequests Enabled Limit by projects with merge requests feature enabled. Default is
false
.- with
Programming StringLanguage Limit by projects which use the given programming language. Cannot be used with
group_id
.- Boolean
Include projects shared to this group. Default is
true
. Needsgroup_id
.
Supporting Types
GetProjectsProject
- Allow
Merge boolOn Skipped Pipeline - Analytics
Access stringLevel - Approvals
Before intMerge - Archived bool
Limit by archived status.
- Auto
Cancel stringPending Pipelines - Auto
Devops stringDeploy Strategy - Auto
Devops boolEnabled - Autoclose
Referenced boolIssues - Avatar
Url string - Build
Coverage stringRegex - Build
Git stringStrategy - Build
Timeout int - Builds
Access stringLevel - Ci
Config stringPath - Ci
Default intGit Depth - Ci
Forward boolDeployment Enabled - Container
Expiration List<Pulumi.Policies Git Lab. Inputs. Get Projects Project Container Expiration Policy> - Container
Registry stringAccess Level - Container
Registry boolEnabled - Created
At string - Creator
Id int - Custom
Attributes List<ImmutableDictionary<string, string>> - Default
Branch string - Description string
- Emails
Disabled bool - string
- Forked
From Pulumi.Project Git Lab. Inputs. Get Projects Project Forked From Project - Forking
Access stringLevel - Forks
Count int - Http
Url stringTo Repo - Id int
The ID of this resource.
- Import
Error string - Import
Status string - Issues
Access stringLevel - Issues
Enabled bool - Jobs
Enabled bool - Last
Activity stringAt - Lfs
Enabled bool - Merge
Commit stringTemplate - Merge
Method string - Merge
Pipelines boolEnabled - Merge
Requests stringAccess Level - Merge
Requests boolEnabled - Merge
Trains boolEnabled - Mirror bool
- Mirror
Overwrites boolDiverged Branches - Mirror
Trigger boolBuilds - Mirror
User intId - Name string
- Name
With stringNamespace - Namespace
Pulumi.
Git Lab. Inputs. Get Projects Project Namespace - Only
Allow boolMerge If All Discussions Are Resolved - Only
Allow boolMerge If Pipeline Succeeds - Only
Mirror boolProtected Branches - Open
Issues intCount - Operations
Access stringLevel - Owner
Pulumi.
Git Lab. Inputs. Get Projects Project Owner - Packages
Enabled bool - Path string
- Path
With stringNamespace - Permissions
Pulumi.
Git Lab. Inputs. Get Projects Project Permissions - Public bool
- Public
Builds bool - Readme
Url string - Repository
Access stringLevel - Repository
Storage string - Request
Access boolEnabled - Requirements
Access stringLevel - Resolve
Outdated boolDiff Discussions - Runners
Token string - Security
And stringCompliance Access Level - bool
- List<Pulumi.
Git Lab. Inputs. Get Projects Project Shared With Group> - Snippets
Access stringLevel - Snippets
Enabled bool - Squash
Commit stringTemplate - Ssh
Url stringTo Repo - Star
Count int - Statistics Dictionary<string, int>
Include project statistics. Cannot be used with
group_id
.- Tag
Lists List<string> - Topics List<string>
- Visibility string
Limit by visibility
public
,internal
, orprivate
.- Web
Url string - Wiki
Access stringLevel - Wiki
Enabled bool - _
links Dictionary<string, string>
- Allow
Merge boolOn Skipped Pipeline - Analytics
Access stringLevel - Approvals
Before intMerge - Archived bool
Limit by archived status.
- Auto
Cancel stringPending Pipelines - Auto
Devops stringDeploy Strategy - Auto
Devops boolEnabled - Autoclose
Referenced boolIssues - Avatar
Url string - Build
Coverage stringRegex - Build
Git stringStrategy - Build
Timeout int - Builds
Access stringLevel - Ci
Config stringPath - Ci
Default intGit Depth - Ci
Forward boolDeployment Enabled - Container
Expiration []GetPolicies Projects Project Container Expiration Policy - Container
Registry stringAccess Level - Container
Registry boolEnabled - Created
At string - Creator
Id int - Custom
Attributes []map[string]string - Default
Branch string - Description string
- Emails
Disabled bool - string
- Forked
From GetProject Projects Project Forked From Project - Forking
Access stringLevel - Forks
Count int - Http
Url stringTo Repo - Id int
The ID of this resource.
- Import
Error string - Import
Status string - Issues
Access stringLevel - Issues
Enabled bool - Jobs
Enabled bool - Last
Activity stringAt - Lfs
Enabled bool - Merge
Commit stringTemplate - Merge
Method string - Merge
Pipelines boolEnabled - Merge
Requests stringAccess Level - Merge
Requests boolEnabled - Merge
Trains boolEnabled - Mirror bool
- Mirror
Overwrites boolDiverged Branches - Mirror
Trigger boolBuilds - Mirror
User intId - Name string
- Name
With stringNamespace - Namespace
Get
Projects Project Namespace - Only
Allow boolMerge If All Discussions Are Resolved - Only
Allow boolMerge If Pipeline Succeeds - Only
Mirror boolProtected Branches - Open
Issues intCount - Operations
Access stringLevel - Owner
Get
Projects Project Owner - Packages
Enabled bool - Path string
- Path
With stringNamespace - Permissions
Get
Projects Project Permissions - Public bool
- Public
Builds bool - Readme
Url string - Repository
Access stringLevel - Repository
Storage string - Request
Access boolEnabled - Requirements
Access stringLevel - Resolve
Outdated boolDiff Discussions - Runners
Token string - Security
And stringCompliance Access Level - bool
- []Get
Projects Project Shared With Group - Snippets
Access stringLevel - Snippets
Enabled bool - Squash
Commit stringTemplate - Ssh
Url stringTo Repo - Star
Count int - Statistics map[string]int
Include project statistics. Cannot be used with
group_id
.- Tag
Lists []string - Topics []string
- Visibility string
Limit by visibility
public
,internal
, orprivate
.- Web
Url string - Wiki
Access stringLevel - Wiki
Enabled bool - _
links map[string]string
- _
links Map<String,String> - allow
Merge BooleanOn Skipped Pipeline - analytics
Access StringLevel - approvals
Before IntegerMerge - archived Boolean
Limit by archived status.
- auto
Cancel StringPending Pipelines - auto
Devops StringDeploy Strategy - auto
Devops BooleanEnabled - autoclose
Referenced BooleanIssues - avatar
Url String - build
Coverage StringRegex - build
Git StringStrategy - build
Timeout Integer - builds
Access StringLevel - ci
Config StringPath - ci
Default IntegerGit Depth - ci
Forward BooleanDeployment Enabled - container
Expiration List<GetPolicies Projects Project Container Expiration Policy> - container
Registry StringAccess Level - container
Registry BooleanEnabled - created
At String - creator
Id Integer - custom
Attributes List<Map<String,String>> - default
Branch String - description String
- emails
Disabled Boolean - String
- forked
From GetProject Projects Project Forked From Project - forking
Access StringLevel - forks
Count Integer - http
Url StringTo Repo - id Integer
The ID of this resource.
- import
Error String - import
Status String - issues
Access StringLevel - issues
Enabled Boolean - jobs
Enabled Boolean - last
Activity StringAt - lfs
Enabled Boolean - merge
Commit StringTemplate - merge
Method String - merge
Pipelines BooleanEnabled - merge
Requests StringAccess Level - merge
Requests BooleanEnabled - merge
Trains BooleanEnabled - mirror Boolean
- mirror
Overwrites BooleanDiverged Branches - mirror
Trigger BooleanBuilds - mirror
User IntegerId - name String
- name
With StringNamespace - namespace
Get
Projects Project Namespace - only
Allow BooleanMerge If All Discussions Are Resolved - only
Allow BooleanMerge If Pipeline Succeeds - only
Mirror BooleanProtected Branches - open
Issues IntegerCount - operations
Access StringLevel - owner
Get
Projects Project Owner - packages
Enabled Boolean - path String
- path
With StringNamespace - permissions
Get
Projects Project Permissions - public
Builds Boolean - public_ Boolean
- readme
Url String - repository
Access StringLevel - repository
Storage String - request
Access BooleanEnabled - requirements
Access StringLevel - resolve
Outdated BooleanDiff Discussions - runners
Token String - security
And StringCompliance Access Level - Boolean
- List<Get
Projects Project Shared With Group> - snippets
Access StringLevel - snippets
Enabled Boolean - squash
Commit StringTemplate - ssh
Url StringTo Repo - star
Count Integer - statistics Map<String,Integer>
Include project statistics. Cannot be used with
group_id
.- tag
Lists List<String> - topics List<String>
- visibility String
Limit by visibility
public
,internal
, orprivate
.- web
Url String - wiki
Access StringLevel - wiki
Enabled Boolean
- _
links {[key: string]: string} - allow
Merge booleanOn Skipped Pipeline - analytics
Access stringLevel - approvals
Before numberMerge - archived boolean
Limit by archived status.
- auto
Cancel stringPending Pipelines - auto
Devops stringDeploy Strategy - auto
Devops booleanEnabled - autoclose
Referenced booleanIssues - avatar
Url string - build
Coverage stringRegex - build
Git stringStrategy - build
Timeout number - builds
Access stringLevel - ci
Config stringPath - ci
Default numberGit Depth - ci
Forward booleanDeployment Enabled - container
Expiration GetPolicies Projects Project Container Expiration Policy[] - container
Registry stringAccess Level - container
Registry booleanEnabled - created
At string - creator
Id number - custom
Attributes {[key: string]: string}[] - default
Branch string - description string
- emails
Disabled boolean - string
- forked
From GetProject Projects Project Forked From Project - forking
Access stringLevel - forks
Count number - http
Url stringTo Repo - id number
The ID of this resource.
- import
Error string - import
Status string - issues
Access stringLevel - issues
Enabled boolean - jobs
Enabled boolean - last
Activity stringAt - lfs
Enabled boolean - merge
Commit stringTemplate - merge
Method string - merge
Pipelines booleanEnabled - merge
Requests stringAccess Level - merge
Requests booleanEnabled - merge
Trains booleanEnabled - mirror boolean
- mirror
Overwrites booleanDiverged Branches - mirror
Trigger booleanBuilds - mirror
User numberId - name string
- name
With stringNamespace - namespace
Get
Projects Project Namespace - only
Allow booleanMerge If All Discussions Are Resolved - only
Allow booleanMerge If Pipeline Succeeds - only
Mirror booleanProtected Branches - open
Issues numberCount - operations
Access stringLevel - owner
Get
Projects Project Owner - packages
Enabled boolean - path string
- path
With stringNamespace - permissions
Get
Projects Project Permissions - public boolean
- public
Builds boolean - readme
Url string - repository
Access stringLevel - repository
Storage string - request
Access booleanEnabled - requirements
Access stringLevel - resolve
Outdated booleanDiff Discussions - runners
Token string - security
And stringCompliance Access Level - boolean
- Get
Projects Project Shared With Group[] - snippets
Access stringLevel - snippets
Enabled boolean - squash
Commit stringTemplate - ssh
Url stringTo Repo - star
Count number - statistics {[key: string]: number}
Include project statistics. Cannot be used with
group_id
.- tag
Lists string[] - topics string[]
- visibility string
Limit by visibility
public
,internal
, orprivate
.- web
Url string - wiki
Access stringLevel - wiki
Enabled boolean
- _
links Mapping[str, str] - allow_
merge_ boolon_ skipped_ pipeline - analytics_
access_ strlevel - approvals_
before_ intmerge - archived bool
Limit by archived status.
- auto_
cancel_ strpending_ pipelines - auto_
devops_ strdeploy_ strategy - auto_
devops_ boolenabled - autoclose_
referenced_ boolissues - avatar_
url str - build_
coverage_ strregex - build_
git_ strstrategy - build_
timeout int - builds_
access_ strlevel - ci_
config_ strpath - ci_
default_ intgit_ depth - ci_
forward_ booldeployment_ enabled - container_
expiration_ Sequence[Getpolicies Projects Project Container Expiration Policy] - container_
registry_ straccess_ level - container_
registry_ boolenabled - created_
at str - creator_
id int - custom_
attributes Sequence[Mapping[str, str]] - default_
branch str - description str
- emails_
disabled bool - str
- forked_
from_ Getproject Projects Project Forked From Project - forking_
access_ strlevel - forks_
count int - http_
url_ strto_ repo - id int
The ID of this resource.
- import_
error str - import_
status str - issues_
access_ strlevel - issues_
enabled bool - jobs_
enabled bool - last_
activity_ strat - lfs_
enabled bool - merge_
commit_ strtemplate - merge_
method str - merge_
pipelines_ boolenabled - merge_
requests_ straccess_ level - merge_
requests_ boolenabled - merge_
trains_ boolenabled - mirror bool
- mirror_
overwrites_ booldiverged_ branches - mirror_
trigger_ boolbuilds - mirror_
user_ intid - name str
- name_
with_ strnamespace - namespace
Get
Projects Project Namespace - only_
allow_ boolmerge_ if_ all_ discussions_ are_ resolved - only_
allow_ boolmerge_ if_ pipeline_ succeeds - only_
mirror_ boolprotected_ branches - open_
issues_ intcount - operations_
access_ strlevel - owner
Get
Projects Project Owner - packages_
enabled bool - path str
- path_
with_ strnamespace - permissions
Get
Projects Project Permissions - public bool
- public_
builds bool - readme_
url str - repository_
access_ strlevel - repository_
storage str - request_
access_ boolenabled - requirements_
access_ strlevel - resolve_
outdated_ booldiff_ discussions - runners_
token str - security_
and_ strcompliance_ access_ level - bool
- Sequence[Get
Projects Project Shared With Group] - snippets_
access_ strlevel - snippets_
enabled bool - squash_
commit_ strtemplate - ssh_
url_ strto_ repo - star_
count int - statistics Mapping[str, int]
Include project statistics. Cannot be used with
group_id
.- tag_
lists Sequence[str] - topics Sequence[str]
- visibility str
Limit by visibility
public
,internal
, orprivate
.- web_
url str - wiki_
access_ strlevel - wiki_
enabled bool
- _
links Map<String> - allow
Merge BooleanOn Skipped Pipeline - analytics
Access StringLevel - approvals
Before NumberMerge - archived Boolean
Limit by archived status.
- auto
Cancel StringPending Pipelines - auto
Devops StringDeploy Strategy - auto
Devops BooleanEnabled - autoclose
Referenced BooleanIssues - avatar
Url String - build
Coverage StringRegex - build
Git StringStrategy - build
Timeout Number - builds
Access StringLevel - ci
Config StringPath - ci
Default NumberGit Depth - ci
Forward BooleanDeployment Enabled - container
Expiration List<Property Map>Policies - container
Registry StringAccess Level - container
Registry BooleanEnabled - created
At String - creator
Id Number - custom
Attributes List<Map<String>> - default
Branch String - description String
- emails
Disabled Boolean - String
- forked
From Property MapProject - forking
Access StringLevel - forks
Count Number - http
Url StringTo Repo - id Number
The ID of this resource.
- import
Error String - import
Status String - issues
Access StringLevel - issues
Enabled Boolean - jobs
Enabled Boolean - last
Activity StringAt - lfs
Enabled Boolean - merge
Commit StringTemplate - merge
Method String - merge
Pipelines BooleanEnabled - merge
Requests StringAccess Level - merge
Requests BooleanEnabled - merge
Trains BooleanEnabled - mirror Boolean
- mirror
Overwrites BooleanDiverged Branches - mirror
Trigger BooleanBuilds - mirror
User NumberId - name String
- name
With StringNamespace - namespace Property Map
- only
Allow BooleanMerge If All Discussions Are Resolved - only
Allow BooleanMerge If Pipeline Succeeds - only
Mirror BooleanProtected Branches - open
Issues NumberCount - operations
Access StringLevel - owner Property Map
- packages
Enabled Boolean - path String
- path
With StringNamespace - permissions Property Map
- public Boolean
- public
Builds Boolean - readme
Url String - repository
Access StringLevel - repository
Storage String - request
Access BooleanEnabled - requirements
Access StringLevel - resolve
Outdated BooleanDiff Discussions - runners
Token String - security
And StringCompliance Access Level - Boolean
- List<Property Map>
- snippets
Access StringLevel - snippets
Enabled Boolean - squash
Commit StringTemplate - ssh
Url StringTo Repo - star
Count Number - statistics Map<Number>
Include project statistics. Cannot be used with
group_id
.- tag
Lists List<String> - topics List<String>
- visibility String
Limit by visibility
public
,internal
, orprivate
.- web
Url String - wiki
Access StringLevel - wiki
Enabled Boolean
GetProjectsProjectContainerExpirationPolicy
- Cadence string
- Enabled bool
- Keep
N int - Name
Regex stringDelete - Name
Regex stringKeep - Next
Run stringAt - Older
Than string
- Cadence string
- Enabled bool
- Keep
N int - Name
Regex stringDelete - Name
Regex stringKeep - Next
Run stringAt - Older
Than string
- cadence String
- enabled Boolean
- keep
N Integer - name
Regex StringDelete - name
Regex StringKeep - next
Run StringAt - older
Than String
- cadence string
- enabled boolean
- keep
N number - name
Regex stringDelete - name
Regex stringKeep - next
Run stringAt - older
Than string
- cadence str
- enabled bool
- keep_
n int - name_
regex_ strdelete - name_
regex_ strkeep - next_
run_ strat - older_
than str
- cadence String
- enabled Boolean
- keep
N Number - name
Regex StringDelete - name
Regex StringKeep - next
Run StringAt - older
Than String
GetProjectsProjectForkedFromProject
- Http
Url stringTo Repo - Id int
The ID of this resource.
- Name string
- Name
With stringNamespace - Path string
- Path
With stringNamespace - Web
Url string
- Http
Url stringTo Repo - Id int
The ID of this resource.
- Name string
- Name
With stringNamespace - Path string
- Path
With stringNamespace - Web
Url string
- http
Url StringTo Repo - id Integer
The ID of this resource.
- name String
- name
With StringNamespace - path String
- path
With StringNamespace - web
Url String
- http
Url stringTo Repo - id number
The ID of this resource.
- name string
- name
With stringNamespace - path string
- path
With stringNamespace - web
Url string
- http_
url_ strto_ repo - id int
The ID of this resource.
- name str
- name_
with_ strnamespace - path str
- path_
with_ strnamespace - web_
url str
- http
Url StringTo Repo - id Number
The ID of this resource.
- name String
- name
With StringNamespace - path String
- path
With StringNamespace - web
Url String
GetProjectsProjectNamespace
GetProjectsProjectOwner
- avatar_
url str - id int
The ID of this resource.
- name str
- state str
- username str
- website_
url str
GetProjectsProjectPermissions
- Group
Access Dictionary<string, int> - Project
Access Dictionary<string, int>
- Group
Access map[string]int - Project
Access map[string]int
- group
Access Map<String,Integer> - project
Access Map<String,Integer>
- group
Access {[key: string]: number} - project
Access {[key: string]: number}
- group_
access Mapping[str, int] - project_
access Mapping[str, int]
- group
Access Map<Number> - project
Access Map<Number>
GetProjectsProjectSharedWithGroup
- Group
Access stringLevel - Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Group
Name string
- Group
Access stringLevel - Group
Id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- Group
Name string
- group
Access StringLevel - group
Id Integer The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- group
Name String
- group
Access stringLevel - group
Id number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- group
Name string
- group_
access_ strlevel - group_
id int The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- group_
name str
- group
Access StringLevel - group
Id Number The ID of the group owned by the authenticated user to look projects for within. Cannot be used with
min_access_level
,with_programming_language
orstatistics
.- group
Name String
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
gitlab
Terraform Provider.