get Project Branches
The gitlab.getProjectBranches
data source allows details of the branches of a given project to be retrieved. 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.GetProjectBranchesArgs;
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.getProjectBranches(GetProjectBranchesArgs.builder()
.project("foo/bar/baz")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getProjectBranches.
Parameters
argument
A collection of arguments for invoking getProjectBranches.
Return
A collection of values returned by getProjectBranches.
Parameters
project
ID or URL-encoded path of the project owned by the authenticated user.
See also
suspend fun getProjectBranches(argument: suspend GetProjectBranchesPlainArgsBuilder.() -> Unit): GetProjectBranchesResult
Return
A collection of values returned by getProjectBranches.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectBranchesPlainArgs.