Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.DevOps.getRepositoryRefs
This data source provides the list of Repository Refs in Oracle Cloud Infrastructure Devops service.
Returns a list of references.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositoryRefs = oci.DevOps.getRepositoryRefs({
repositoryId: testRepository.id,
commitId: testCommit.id,
refName: repositoryRefRefName,
refType: repositoryRefRefType,
});
import pulumi
import pulumi_oci as oci
test_repository_refs = oci.DevOps.get_repository_refs(repository_id=test_repository["id"],
commit_id=test_commit["id"],
ref_name=repository_ref_ref_name,
ref_type=repository_ref_ref_type)
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.GetRepositoryRefs(ctx, &devops.GetRepositoryRefsArgs{
RepositoryId: testRepository.Id,
CommitId: pulumi.StringRef(testCommit.Id),
RefName: pulumi.StringRef(repositoryRefRefName),
RefType: pulumi.StringRef(repositoryRefRefType),
}, 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 testRepositoryRefs = Oci.DevOps.GetRepositoryRefs.Invoke(new()
{
RepositoryId = testRepository.Id,
CommitId = testCommit.Id,
RefName = repositoryRefRefName,
RefType = repositoryRefRefType,
});
});
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.GetRepositoryRefsArgs;
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 testRepositoryRefs = DevOpsFunctions.getRepositoryRefs(GetRepositoryRefsArgs.builder()
.repositoryId(testRepository.id())
.commitId(testCommit.id())
.refName(repositoryRefRefName)
.refType(repositoryRefRefType)
.build());
}
}
variables:
testRepositoryRefs:
fn::invoke:
function: oci:DevOps:getRepositoryRefs
arguments:
repositoryId: ${testRepository.id}
commitId: ${testCommit.id}
refName: ${repositoryRefRefName}
refType: ${repositoryRefRefType}
Using getRepositoryRefs
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 getRepositoryRefs(args: GetRepositoryRefsArgs, opts?: InvokeOptions): Promise<GetRepositoryRefsResult>
function getRepositoryRefsOutput(args: GetRepositoryRefsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryRefsResult>
def get_repository_refs(commit_id: Optional[str] = None,
filters: Optional[Sequence[GetRepositoryRefsFilter]] = None,
ref_name: Optional[str] = None,
ref_type: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryRefsResult
def get_repository_refs_output(commit_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepositoryRefsFilterArgs]]]] = None,
ref_name: Optional[pulumi.Input[str]] = None,
ref_type: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryRefsResult]
func GetRepositoryRefs(ctx *Context, args *GetRepositoryRefsArgs, opts ...InvokeOption) (*GetRepositoryRefsResult, error)
func GetRepositoryRefsOutput(ctx *Context, args *GetRepositoryRefsOutputArgs, opts ...InvokeOption) GetRepositoryRefsResultOutput
> Note: This function is named GetRepositoryRefs
in the Go SDK.
public static class GetRepositoryRefs
{
public static Task<GetRepositoryRefsResult> InvokeAsync(GetRepositoryRefsArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryRefsResult> Invoke(GetRepositoryRefsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepositoryRefsResult> getRepositoryRefs(GetRepositoryRefsArgs args, InvokeOptions options)
public static Output<GetRepositoryRefsResult> getRepositoryRefs(GetRepositoryRefsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DevOps/getRepositoryRefs:getRepositoryRefs
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - Unique repository identifier.
- Commit
Id string - Commit ID in a repository.
- Filters
List<Get
Repository Refs Filter> - Ref
Name string - A filter to return only resources that match the given reference name.
- Ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- Repository
Id string - Unique repository identifier.
- Commit
Id string - Commit ID in a repository.
- Filters
[]Get
Repository Refs Filter - Ref
Name string - A filter to return only resources that match the given reference name.
- Ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id String - Unique repository identifier.
- commit
Id String - Commit ID in a repository.
- filters
List<Get
Repository Refs Filter> - ref
Name String - A filter to return only resources that match the given reference name.
- ref
Type String - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id string - Unique repository identifier.
- commit
Id string - Commit ID in a repository.
- filters
Get
Repository Refs Filter[] - ref
Name string - A filter to return only resources that match the given reference name.
- ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository_
id str - Unique repository identifier.
- commit_
id str - Commit ID in a repository.
- filters
Sequence[Get
Repository Refs Filter] - ref_
name str - A filter to return only resources that match the given reference name.
- ref_
type str - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id String - Unique repository identifier.
- commit
Id String - Commit ID in a repository.
- filters List<Property Map>
- ref
Name String - A filter to return only resources that match the given reference name.
- ref
Type String - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
getRepositoryRefs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - The OCID of the repository containing the reference.
- Repository
Ref List<GetCollections Repository Refs Repository Ref Collection> - The list of repository_ref_collection.
- Commit
Id string - Commit ID pointed to by the new branch.
- Filters
List<Get
Repository Refs Filter> - Ref
Name string - Unique reference name inside a repository.
- Ref
Type string - The type of reference (BRANCH or TAG).
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - The OCID of the repository containing the reference.
- Repository
Ref []GetCollections Repository Refs Repository Ref Collection - The list of repository_ref_collection.
- Commit
Id string - Commit ID pointed to by the new branch.
- Filters
[]Get
Repository Refs Filter - Ref
Name string - Unique reference name inside a repository.
- Ref
Type string - The type of reference (BRANCH or TAG).
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - The OCID of the repository containing the reference.
- repository
Ref List<GetCollections Repository Refs Repository Ref Collection> - The list of repository_ref_collection.
- commit
Id String - Commit ID pointed to by the new branch.
- filters
List<Get
Repository Refs Filter> - ref
Name String - Unique reference name inside a repository.
- ref
Type String - The type of reference (BRANCH or TAG).
- id string
- The provider-assigned unique ID for this managed resource.
- repository
Id string - The OCID of the repository containing the reference.
- repository
Ref GetCollections Repository Refs Repository Ref Collection[] - The list of repository_ref_collection.
- commit
Id string - Commit ID pointed to by the new branch.
- filters
Get
Repository Refs Filter[] - ref
Name string - Unique reference name inside a repository.
- ref
Type string - The type of reference (BRANCH or TAG).
- id str
- The provider-assigned unique ID for this managed resource.
- repository_
id str - The OCID of the repository containing the reference.
- repository_
ref_ Sequence[Getcollections Repository Refs Repository Ref Collection] - The list of repository_ref_collection.
- commit_
id str - Commit ID pointed to by the new branch.
- filters
Sequence[Get
Repository Refs Filter] - ref_
name str - Unique reference name inside a repository.
- ref_
type str - The type of reference (BRANCH or TAG).
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - The OCID of the repository containing the reference.
- repository
Ref List<Property Map>Collections - The list of repository_ref_collection.
- commit
Id String - Commit ID pointed to by the new branch.
- filters List<Property Map>
- ref
Name String - Unique reference name inside a repository.
- ref
Type String - The type of reference (BRANCH or TAG).
Supporting Types
GetRepositoryRefsFilter
GetRepositoryRefsRepositoryRefCollection
GetRepositoryRefsRepositoryRefCollectionItem
- Commit
Id string - Commit ID in a repository.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Full
Ref stringName - Unique full reference name inside a repository.
- Id string
- Object
Id string - SHA-1 hash value of the object pointed to by the tag.
- Ref
Name string - A filter to return only resources that match the given reference name.
- Ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- Repository
Id string - Unique repository identifier.
- Commit
Id string - Commit ID in a repository.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Full
Ref stringName - Unique full reference name inside a repository.
- Id string
- Object
Id string - SHA-1 hash value of the object pointed to by the tag.
- Ref
Name string - A filter to return only resources that match the given reference name.
- Ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- Repository
Id string - Unique repository identifier.
- commit
Id String - Commit ID in a repository.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- full
Ref StringName - Unique full reference name inside a repository.
- id String
- object
Id String - SHA-1 hash value of the object pointed to by the tag.
- ref
Name String - A filter to return only resources that match the given reference name.
- ref
Type String - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id String - Unique repository identifier.
- commit
Id string - Commit ID in a repository.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- full
Ref stringName - Unique full reference name inside a repository.
- id string
- object
Id string - SHA-1 hash value of the object pointed to by the tag.
- ref
Name string - A filter to return only resources that match the given reference name.
- ref
Type string - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id string - Unique repository identifier.
- commit_
id str - Commit ID in a repository.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- full_
ref_ strname - Unique full reference name inside a repository.
- id str
- object_
id str - SHA-1 hash value of the object pointed to by the tag.
- ref_
name str - A filter to return only resources that match the given reference name.
- ref_
type str - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository_
id str - Unique repository identifier.
- commit
Id String - Commit ID in a repository.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- full
Ref StringName - Unique full reference name inside a repository.
- id String
- object
Id String - SHA-1 hash value of the object pointed to by the tag.
- ref
Name String - A filter to return only resources that match the given reference name.
- ref
Type String - Reference type to distinguish between branch and tag. If it is not specified, all references are returned.
- repository
Id String - Unique repository identifier.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.