Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.DevOps.getRepositoryPaths
This data source provides the list of Repository Paths in Oracle Cloud Infrastructure Devops service.
Retrieves a list of files and directories in a repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositoryPaths = oci.DevOps.getRepositoryPaths({
repositoryId: testRepository.id,
displayName: repositoryPathDisplayName,
folderPath: repositoryPathFolderPath,
pathsInSubtree: repositoryPathPathsInSubtree,
ref: repositoryPathRef,
});
import pulumi
import pulumi_oci as oci
test_repository_paths = oci.DevOps.get_repository_paths(repository_id=test_repository["id"],
display_name=repository_path_display_name,
folder_path=repository_path_folder_path,
paths_in_subtree=repository_path_paths_in_subtree,
ref=repository_path_ref)
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.GetRepositoryPaths(ctx, &devops.GetRepositoryPathsArgs{
RepositoryId: testRepository.Id,
DisplayName: pulumi.StringRef(repositoryPathDisplayName),
FolderPath: pulumi.StringRef(repositoryPathFolderPath),
PathsInSubtree: pulumi.BoolRef(repositoryPathPathsInSubtree),
Ref: pulumi.StringRef(repositoryPathRef),
}, 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 testRepositoryPaths = Oci.DevOps.GetRepositoryPaths.Invoke(new()
{
RepositoryId = testRepository.Id,
DisplayName = repositoryPathDisplayName,
FolderPath = repositoryPathFolderPath,
PathsInSubtree = repositoryPathPathsInSubtree,
Ref = repositoryPathRef,
});
});
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.GetRepositoryPathsArgs;
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 testRepositoryPaths = DevOpsFunctions.getRepositoryPaths(GetRepositoryPathsArgs.builder()
.repositoryId(testRepository.id())
.displayName(repositoryPathDisplayName)
.folderPath(repositoryPathFolderPath)
.pathsInSubtree(repositoryPathPathsInSubtree)
.ref(repositoryPathRef)
.build());
}
}
variables:
testRepositoryPaths:
fn::invoke:
function: oci:DevOps:getRepositoryPaths
arguments:
repositoryId: ${testRepository.id}
displayName: ${repositoryPathDisplayName}
folderPath: ${repositoryPathFolderPath}
pathsInSubtree: ${repositoryPathPathsInSubtree}
ref: ${repositoryPathRef}
Using getRepositoryPaths
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 getRepositoryPaths(args: GetRepositoryPathsArgs, opts?: InvokeOptions): Promise<GetRepositoryPathsResult>
function getRepositoryPathsOutput(args: GetRepositoryPathsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryPathsResult>def get_repository_paths(display_name: Optional[str] = None,
filters: Optional[Sequence[GetRepositoryPathsFilter]] = None,
folder_path: Optional[str] = None,
paths_in_subtree: Optional[bool] = None,
ref: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryPathsResult
def get_repository_paths_output(display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepositoryPathsFilterArgs]]]] = None,
folder_path: Optional[pulumi.Input[str]] = None,
paths_in_subtree: Optional[pulumi.Input[bool]] = None,
ref: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryPathsResult]func GetRepositoryPaths(ctx *Context, args *GetRepositoryPathsArgs, opts ...InvokeOption) (*GetRepositoryPathsResult, error)
func GetRepositoryPathsOutput(ctx *Context, args *GetRepositoryPathsOutputArgs, opts ...InvokeOption) GetRepositoryPathsResultOutput> Note: This function is named GetRepositoryPaths in the Go SDK.
public static class GetRepositoryPaths
{
public static Task<GetRepositoryPathsResult> InvokeAsync(GetRepositoryPathsArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryPathsResult> Invoke(GetRepositoryPathsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryPathsResult> getRepositoryPaths(GetRepositoryPathsArgs args, InvokeOptions options)
public static Output<GetRepositoryPathsResult> getRepositoryPaths(GetRepositoryPathsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DevOps/getRepositoryPaths:getRepositoryPaths
arguments:
# arguments dictionaryThe following arguments are supported:
- Repository
Id string - Unique repository identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Repository Paths Filter> - Folder
Path string - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- Paths
In boolSubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- Ref string
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
- Repository
Id string - Unique repository identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Repository Paths Filter - Folder
Path string - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- Paths
In boolSubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- Ref string
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
- repository
Id String - Unique repository identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Repository Paths Filter> - folder
Path String - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- paths
In BooleanSubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- ref String
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
- repository
Id string - Unique repository identifier.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Repository Paths Filter[] - folder
Path string - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- paths
In booleanSubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- ref string
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
- repository_
id str - Unique repository identifier.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Repository Paths Filter] - folder_
path str - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- paths_
in_ boolsubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- ref str
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
- repository
Id String - Unique repository identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- folder
Path String - The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
- paths
In BooleanSubtree - Flag to determine if files must be retrived recursively. Flag is False by default.
- ref String
- The name of branch/tag or commit hash it points to. If names conflict, order of preference is commit > branch > tag. You can disambiguate with "heads/foobar" and "tags/foobar". If left blank repository's default branch will be used.
getRepositoryPaths Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - Repository
Path List<GetCollections Repository Paths Repository Path Collection> - The list of repository_path_collection.
- Display
Name string - Filters
List<Get
Repository Paths Filter> - Folder
Path string - Paths
In boolSubtree - Ref string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - Repository
Path []GetCollections Repository Paths Repository Path Collection - The list of repository_path_collection.
- Display
Name string - Filters
[]Get
Repository Paths Filter - Folder
Path string - Paths
In boolSubtree - Ref string
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - repository
Path List<GetCollections Repository Paths Repository Path Collection> - The list of repository_path_collection.
- display
Name String - filters
List<Get
Repository Paths Filter> - folder
Path String - paths
In BooleanSubtree - ref String
- id string
- The provider-assigned unique ID for this managed resource.
- repository
Id string - repository
Path GetCollections Repository Paths Repository Path Collection[] - The list of repository_path_collection.
- display
Name string - filters
Get
Repository Paths Filter[] - folder
Path string - paths
In booleanSubtree - ref string
- id str
- The provider-assigned unique ID for this managed resource.
- repository_
id str - repository_
path_ Sequence[Getcollections Repository Paths Repository Path Collection] - The list of repository_path_collection.
- display_
name str - filters
Sequence[Get
Repository Paths Filter] - folder_
path str - paths_
in_ boolsubtree - ref str
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - repository
Path List<Property Map>Collections - The list of repository_path_collection.
- display
Name String - filters List<Property Map>
- folder
Path String - paths
In BooleanSubtree - ref String
Supporting Types
GetRepositoryPathsFilter
GetRepositoryPathsRepositoryPathCollection
- Items
List<Get
Repository Paths Repository Path Collection Item> - List of objects describing files or directories in a repository.
- Items
[]Get
Repository Paths Repository Path Collection Item - List of objects describing files or directories in a repository.
- items
List<Get
Repository Paths Repository Path Collection Item> - List of objects describing files or directories in a repository.
- items
Get
Repository Paths Repository Path Collection Item[] - List of objects describing files or directories in a repository.
- items
Sequence[Get
Repository Paths Repository Path Collection Item] - List of objects describing files or directories in a repository.
- items List<Property Map>
- List of objects describing files or directories in a repository.
GetRepositoryPathsRepositoryPathCollectionItem
- 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"} - Name string
- Name of file or directory.
- Path string
- Path to file or directory in a repository.
- Sha string
- SHA-1 checksum of blob or tree.
- Size
In stringBytes - Size of file or directory.
- Submodule
Git stringUrl - The git URL of the submodule.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Type string
- File or directory.
- 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"} - Name string
- Name of file or directory.
- Path string
- Path to file or directory in a repository.
- Sha string
- SHA-1 checksum of blob or tree.
- Size
In stringBytes - Size of file or directory.
- Submodule
Git stringUrl - The git URL of the submodule.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Type string
- File or directory.
- 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"} - name String
- Name of file or directory.
- path String
- Path to file or directory in a repository.
- sha String
- SHA-1 checksum of blob or tree.
- size
In StringBytes - Size of file or directory.
- submodule
Git StringUrl - The git URL of the submodule.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - type String
- File or directory.
- {[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"} - name string
- Name of file or directory.
- path string
- Path to file or directory in a repository.
- sha string
- SHA-1 checksum of blob or tree.
- size
In stringBytes - Size of file or directory.
- submodule
Git stringUrl - The git URL of the submodule.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - type string
- File or directory.
- 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"} - name str
- Name of file or directory.
- path str
- Path to file or directory in a repository.
- sha str
- SHA-1 checksum of blob or tree.
- size_
in_ strbytes - Size of file or directory.
- submodule_
git_ strurl - The git URL of the submodule.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - type str
- File or directory.
- 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"} - name String
- Name of file or directory.
- path String
- Path to file or directory in a repository.
- sha String
- SHA-1 checksum of blob or tree.
- size
In StringBytes - Size of file or directory.
- submodule
Git StringUrl - The git URL of the submodule.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - type String
- File or directory.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
