getProject

The gitlab.Project data source allows details of a project to be retrieved by either its ID or its path with namespace. Upstream API: GitLab REST API docs

Example Usage

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.GetProjectArgs;
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.getProject(GetProjectArgs.builder()
.id("foo/bar/baz")
.build());
}
}

Return

A collection of values returned by getProject.

Parameters

argument

A collection of arguments for invoking getProject.


suspend fun getProject(ciDefaultGitDepth: Int? = null, id: String? = null, pathWithNamespace: String? = null, publicBuilds: Boolean? = null): GetProjectResult

Return

A collection of values returned by getProject.

Parameters

ciDefaultGitDepth

Default number of revisions for shallow cloning.

id

The integer or path with namespace that uniquely identifies the project within the gitlab install.

pathWithNamespace

The path of the repository with namespace.

publicBuilds

If true, jobs can be viewed by non-project members.

See also


suspend fun getProject(argument: suspend GetProjectPlainArgsBuilder.() -> Unit): GetProjectResult

Return

A collection of values returned by getProject.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectPlainArgs.

See also