Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DevOps.getRepositoryAuthors
Explore with Pulumi AI
This data source provides the list of Repository Authors in Oracle Cloud Infrastructure Devops service.
Retrieve a list of all the authors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositoryAuthors = oci.DevOps.getRepositoryAuthors({
    repositoryId: testRepository.id,
    refName: repositoryAuthorRefName,
});
import pulumi
import pulumi_oci as oci
test_repository_authors = oci.DevOps.get_repository_authors(repository_id=test_repository["id"],
    ref_name=repository_author_ref_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/devops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devops.GetRepositoryAuthors(ctx, &devops.GetRepositoryAuthorsArgs{
			RepositoryId: testRepository.Id,
			RefName:      pulumi.StringRef(repositoryAuthorRefName),
		}, 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 testRepositoryAuthors = Oci.DevOps.GetRepositoryAuthors.Invoke(new()
    {
        RepositoryId = testRepository.Id,
        RefName = repositoryAuthorRefName,
    });
});
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.GetRepositoryAuthorsArgs;
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 testRepositoryAuthors = DevOpsFunctions.getRepositoryAuthors(GetRepositoryAuthorsArgs.builder()
            .repositoryId(testRepository.id())
            .refName(repositoryAuthorRefName)
            .build());
    }
}
variables:
  testRepositoryAuthors:
    fn::invoke:
      function: oci:DevOps:getRepositoryAuthors
      arguments:
        repositoryId: ${testRepository.id}
        refName: ${repositoryAuthorRefName}
Using getRepositoryAuthors
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 getRepositoryAuthors(args: GetRepositoryAuthorsArgs, opts?: InvokeOptions): Promise<GetRepositoryAuthorsResult>
function getRepositoryAuthorsOutput(args: GetRepositoryAuthorsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryAuthorsResult>def get_repository_authors(filters: Optional[Sequence[GetRepositoryAuthorsFilter]] = None,
                           ref_name: Optional[str] = None,
                           repository_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRepositoryAuthorsResult
def get_repository_authors_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepositoryAuthorsFilterArgs]]]] = None,
                           ref_name: Optional[pulumi.Input[str]] = None,
                           repository_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryAuthorsResult]func GetRepositoryAuthors(ctx *Context, args *GetRepositoryAuthorsArgs, opts ...InvokeOption) (*GetRepositoryAuthorsResult, error)
func GetRepositoryAuthorsOutput(ctx *Context, args *GetRepositoryAuthorsOutputArgs, opts ...InvokeOption) GetRepositoryAuthorsResultOutput> Note: This function is named GetRepositoryAuthors in the Go SDK.
public static class GetRepositoryAuthors 
{
    public static Task<GetRepositoryAuthorsResult> InvokeAsync(GetRepositoryAuthorsArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryAuthorsResult> Invoke(GetRepositoryAuthorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryAuthorsResult> getRepositoryAuthors(GetRepositoryAuthorsArgs args, InvokeOptions options)
public static Output<GetRepositoryAuthorsResult> getRepositoryAuthors(GetRepositoryAuthorsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getRepositoryAuthors:getRepositoryAuthors
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepositoryId string
- Unique repository identifier.
- Filters
List<GetRepository Authors Filter> 
- RefName string
- A filter to return only resources that match the given reference name.
- RepositoryId string
- Unique repository identifier.
- Filters
[]GetRepository Authors Filter 
- RefName string
- A filter to return only resources that match the given reference name.
- repositoryId String
- Unique repository identifier.
- filters
List<GetRepository Authors Filter> 
- refName String
- A filter to return only resources that match the given reference name.
- repositoryId string
- Unique repository identifier.
- filters
GetRepository Authors Filter[] 
- refName string
- A filter to return only resources that match the given reference name.
- repository_id str
- Unique repository identifier.
- filters
Sequence[GetRepository Authors Filter] 
- ref_name str
- A filter to return only resources that match the given reference name.
- repositoryId String
- Unique repository identifier.
- filters List<Property Map>
- refName String
- A filter to return only resources that match the given reference name.
getRepositoryAuthors Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- 
List<GetRepository Authors Repository Author Collection> 
- The list of repository_author_collection.
- RepositoryId string
- Filters
List<GetRepository Authors Filter> 
- RefName string
- Id string
- The provider-assigned unique ID for this managed resource.
- 
[]GetRepository Authors Repository Author Collection 
- The list of repository_author_collection.
- RepositoryId string
- Filters
[]GetRepository Authors Filter 
- RefName string
- id String
- The provider-assigned unique ID for this managed resource.
- 
List<GetRepository Authors Repository Author Collection> 
- The list of repository_author_collection.
- repositoryId String
- filters
List<GetRepository Authors Filter> 
- refName String
- id string
- The provider-assigned unique ID for this managed resource.
- 
GetRepository Authors Repository Author Collection[] 
- The list of repository_author_collection.
- repositoryId string
- filters
GetRepository Authors Filter[] 
- refName string
- id str
- The provider-assigned unique ID for this managed resource.
- 
Sequence[GetRepository Authors Repository Author Collection] 
- The list of repository_author_collection.
- repository_id str
- filters
Sequence[GetRepository Authors Filter] 
- ref_name str
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- The list of repository_author_collection.
- repositoryId String
- filters List<Property Map>
- refName String
Supporting Types
GetRepositoryAuthorsFilter   
GetRepositoryAuthorsRepositoryAuthorCollection     
- Items
List<GetRepository Authors Repository Author Collection Item> 
- List of author objects.
- Items
[]GetRepository Authors Repository Author Collection Item 
- List of author objects.
- items
List<GetRepository Authors Repository Author Collection Item> 
- List of author objects.
- items
GetRepository Authors Repository Author Collection Item[] 
- List of author objects.
- items
Sequence[GetRepository Authors Repository Author Collection Item] 
- List of author objects.
- items List<Property Map>
- List of author objects.
GetRepositoryAuthorsRepositoryAuthorCollectionItem      
- string
- Author name.
- 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"}
- 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"}
- string
- Author name.
- 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"}
- 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"}
- String
- Author name.
- 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"}
- 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"}
- string
- Author name.
- {[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"}
- {[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"}
- str
- Author name.
- 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"}
- 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"}
- String
- Author name.
- 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"}
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.