Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
oci.DevOps.getProjectRepositorySetting
Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
This data source provides details about a specific Project Repository Setting resource in Oracle Cloud Infrastructure Devops service.
Retrieves a project’s repository settings details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProjectRepositorySetting = oci.DevOps.getProjectRepositorySetting({
projectId: testProject.id,
});
import pulumi
import pulumi_oci as oci
test_project_repository_setting = oci.DevOps.get_project_repository_setting(project_id=test_project["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/devops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devops.GetProjectRepositorySetting(ctx, &devops.GetProjectRepositorySettingArgs{
ProjectId: testProject.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testProjectRepositorySetting = Oci.DevOps.GetProjectRepositorySetting.Invoke(new()
{
ProjectId = testProject.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetProjectRepositorySettingArgs;
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 testProjectRepositorySetting = DevOpsFunctions.getProjectRepositorySetting(GetProjectRepositorySettingArgs.builder()
.projectId(testProject.id())
.build());
}
}
variables:
testProjectRepositorySetting:
fn::invoke:
function: oci:DevOps:getProjectRepositorySetting
arguments:
projectId: ${testProject.id}
Using getProjectRepositorySetting
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 getProjectRepositorySetting(args: GetProjectRepositorySettingArgs, opts?: InvokeOptions): Promise<GetProjectRepositorySettingResult>
function getProjectRepositorySettingOutput(args: GetProjectRepositorySettingOutputArgs, opts?: InvokeOptions): Output<GetProjectRepositorySettingResult>def get_project_repository_setting(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectRepositorySettingResult
def get_project_repository_setting_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectRepositorySettingResult]func LookupProjectRepositorySetting(ctx *Context, args *LookupProjectRepositorySettingArgs, opts ...InvokeOption) (*LookupProjectRepositorySettingResult, error)
func LookupProjectRepositorySettingOutput(ctx *Context, args *LookupProjectRepositorySettingOutputArgs, opts ...InvokeOption) LookupProjectRepositorySettingResultOutput> Note: This function is named LookupProjectRepositorySetting in the Go SDK.
public static class GetProjectRepositorySetting
{
public static Task<GetProjectRepositorySettingResult> InvokeAsync(GetProjectRepositorySettingArgs args, InvokeOptions? opts = null)
public static Output<GetProjectRepositorySettingResult> Invoke(GetProjectRepositorySettingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectRepositorySettingResult> getProjectRepositorySetting(GetProjectRepositorySettingArgs args, InvokeOptions options)
public static Output<GetProjectRepositorySettingResult> getProjectRepositorySetting(GetProjectRepositorySettingArgs args, InvokeOptions options)
fn::invoke:
function: oci:DevOps/getProjectRepositorySetting:getProjectRepositorySetting
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - Unique project identifier.
- Project
Id string - Unique project identifier.
- project
Id String - Unique project identifier.
- project
Id string - Unique project identifier.
- project_
id str - Unique project identifier.
- project
Id String - Unique project identifier.
getProjectRepositorySetting Result
The following output properties are available:
- Approval
Rules List<GetProject Repository Setting Approval Rule> - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- Id string
- Merge
Settings List<GetProject Repository Setting Merge Setting> - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- Project
Id string
- Approval
Rules []GetProject Repository Setting Approval Rule - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- Id string
- Merge
Settings []GetProject Repository Setting Merge Setting - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- Project
Id string
- approval
Rules List<GetProject Repository Setting Approval Rule> - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id String
- merge
Settings List<GetProject Repository Setting Merge Setting> - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- project
Id String
- approval
Rules GetProject Repository Setting Approval Rule[] - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id string
- merge
Settings GetProject Repository Setting Merge Setting[] - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- project
Id string
- approval_
rules Sequence[GetProject Repository Setting Approval Rule] - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id str
- merge_
settings Sequence[GetProject Repository Setting Merge Setting] - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- project_
id str
- approval
Rules List<Property Map> - List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id String
- merge
Settings List<Property Map> - Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- project
Id String
Supporting Types
GetProjectRepositorySettingApprovalRule
- Items
List<Get
Project Repository Setting Approval Rule Item> - List of approval rules.
- Items
[]Get
Project Repository Setting Approval Rule Item - List of approval rules.
- items
List<Get
Project Repository Setting Approval Rule Item> - List of approval rules.
- items
Get
Project Repository Setting Approval Rule Item[] - List of approval rules.
- items
Sequence[Get
Project Repository Setting Approval Rule Item] - List of approval rules.
- items List<Property Map>
- List of approval rules.
GetProjectRepositorySettingApprovalRuleItem
- Destination
Branch string - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- Min
Approvals intCount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- Name string
- Name which is used to uniquely identify an approval rule.
- Reviewers
List<Get
Project Repository Setting Approval Rule Item Reviewer> - List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- Destination
Branch string - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- Min
Approvals intCount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- Name string
- Name which is used to uniquely identify an approval rule.
- Reviewers
[]Get
Project Repository Setting Approval Rule Item Reviewer - List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- destination
Branch String - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- min
Approvals IntegerCount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name String
- Name which is used to uniquely identify an approval rule.
- reviewers
List<Get
Project Repository Setting Approval Rule Item Reviewer> - List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- destination
Branch string - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- min
Approvals numberCount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name string
- Name which is used to uniquely identify an approval rule.
- reviewers
Get
Project Repository Setting Approval Rule Item Reviewer[] - List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- destination_
branch str - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- min_
approvals_ intcount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name str
- Name which is used to uniquely identify an approval rule.
- reviewers
Sequence[Get
Project Repository Setting Approval Rule Item Reviewer] - List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- destination
Branch String - Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- min
Approvals NumberCount - Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name String
- Name which is used to uniquely identify an approval rule.
- reviewers List<Property Map>
- List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
GetProjectRepositorySettingApprovalRuleItemReviewer
- Principal
Id string - the OCID of the principal
- Principal
Name string - the name of the principal
- Principal
State string - The state of the principal, it can be active or inactive or suppressed for emails
- Principal
Type string - the type of principal
- Principal
Id string - the OCID of the principal
- Principal
Name string - the name of the principal
- Principal
State string - The state of the principal, it can be active or inactive or suppressed for emails
- Principal
Type string - the type of principal
- principal
Id String - the OCID of the principal
- principal
Name String - the name of the principal
- principal
State String - The state of the principal, it can be active or inactive or suppressed for emails
- principal
Type String - the type of principal
- principal
Id string - the OCID of the principal
- principal
Name string - the name of the principal
- principal
State string - The state of the principal, it can be active or inactive or suppressed for emails
- principal
Type string - the type of principal
- principal_
id str - the OCID of the principal
- principal_
name str - the name of the principal
- principal_
state str - The state of the principal, it can be active or inactive or suppressed for emails
- principal_
type str - the type of principal
- principal
Id String - the OCID of the principal
- principal
Name String - the name of the principal
- principal
State String - The state of the principal, it can be active or inactive or suppressed for emails
- principal
Type String - the type of principal
GetProjectRepositorySettingMergeSetting
- Allowed
Merge List<string>Strategies - List of merge strategies which are allowed for a Project or Repository.
- Default
Merge stringStrategy - Default type of merge strategy associated with the a Project or Repository.
- Allowed
Merge []stringStrategies - List of merge strategies which are allowed for a Project or Repository.
- Default
Merge stringStrategy - Default type of merge strategy associated with the a Project or Repository.
- allowed
Merge List<String>Strategies - List of merge strategies which are allowed for a Project or Repository.
- default
Merge StringStrategy - Default type of merge strategy associated with the a Project or Repository.
- allowed
Merge string[]Strategies - List of merge strategies which are allowed for a Project or Repository.
- default
Merge stringStrategy - Default type of merge strategy associated with the a Project or Repository.
- allowed_
merge_ Sequence[str]strategies - List of merge strategies which are allowed for a Project or Repository.
- default_
merge_ strstrategy - Default type of merge strategy associated with the a Project or Repository.
- allowed
Merge List<String>Strategies - List of merge strategies which are allowed for a Project or Repository.
- default
Merge StringStrategy - Default type of merge strategy associated with the a Project or Repository.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.0 published on Thursday, Nov 13, 2025 by Pulumi
