get Project Protected Branches
suspend fun getProjectProtectedBranches(argument: GetProjectProtectedBranchesPlainArgs): GetProjectProtectedBranchesResult
The gitlab.getProjectProtectedBranches
data source allows details of the protected branches of a given project. 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.GetProjectProtectedBranchesArgs;
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.getProjectProtectedBranches(GetProjectProtectedBranchesArgs.builder()
.projectId("foo/bar/baz")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getProjectProtectedBranches.
Parameters
argument
A collection of arguments for invoking getProjectProtectedBranches.
Return
A collection of values returned by getProjectProtectedBranches.
Parameters
project Id
The integer or path with namespace that uniquely identifies the project.
See also
suspend fun getProjectProtectedBranches(argument: suspend GetProjectProtectedBranchesPlainArgsBuilder.() -> Unit): GetProjectProtectedBranchesResult
Return
A collection of values returned by getProjectProtectedBranches.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetProjectProtectedBranchesPlainArgs.