Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DevOps.getRepositoryAuthor
Explore with Pulumi AI
This data source provides details about a specific Repository Author resource 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 testRepositoryAuthor = oci.DevOps.getRepositoryAuthor({
    repositoryId: testRepository.id,
    refName: repositoryAuthorRefName,
});
import pulumi
import pulumi_oci as oci
test_repository_author = oci.DevOps.get_repository_author(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.GetRepositoryAuthor(ctx, &devops.GetRepositoryAuthorArgs{
			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 testRepositoryAuthor = Oci.DevOps.GetRepositoryAuthor.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.GetRepositoryAuthorArgs;
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 testRepositoryAuthor = DevOpsFunctions.getRepositoryAuthor(GetRepositoryAuthorArgs.builder()
            .repositoryId(testRepository.id())
            .refName(repositoryAuthorRefName)
            .build());
    }
}
variables:
  testRepositoryAuthor:
    fn::invoke:
      function: oci:DevOps:getRepositoryAuthor
      arguments:
        repositoryId: ${testRepository.id}
        refName: ${repositoryAuthorRefName}
Using getRepositoryAuthor
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 getRepositoryAuthor(args: GetRepositoryAuthorArgs, opts?: InvokeOptions): Promise<GetRepositoryAuthorResult>
function getRepositoryAuthorOutput(args: GetRepositoryAuthorOutputArgs, opts?: InvokeOptions): Output<GetRepositoryAuthorResult>def get_repository_author(ref_name: Optional[str] = None,
                          repository_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRepositoryAuthorResult
def get_repository_author_output(ref_name: Optional[pulumi.Input[str]] = None,
                          repository_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryAuthorResult]func GetRepositoryAuthor(ctx *Context, args *GetRepositoryAuthorArgs, opts ...InvokeOption) (*GetRepositoryAuthorResult, error)
func GetRepositoryAuthorOutput(ctx *Context, args *GetRepositoryAuthorOutputArgs, opts ...InvokeOption) GetRepositoryAuthorResultOutput> Note: This function is named GetRepositoryAuthor in the Go SDK.
public static class GetRepositoryAuthor 
{
    public static Task<GetRepositoryAuthorResult> InvokeAsync(GetRepositoryAuthorArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryAuthorResult> Invoke(GetRepositoryAuthorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryAuthorResult> getRepositoryAuthor(GetRepositoryAuthorArgs args, InvokeOptions options)
public static Output<GetRepositoryAuthorResult> getRepositoryAuthor(GetRepositoryAuthorArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getRepositoryAuthor:getRepositoryAuthor
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepositoryId string
- Unique repository identifier.
- RefName string
- A filter to return only resources that match the given reference name.
- RepositoryId string
- Unique repository identifier.
- RefName string
- A filter to return only resources that match the given reference name.
- repositoryId String
- Unique repository identifier.
- refName String
- A filter to return only resources that match the given reference name.
- repositoryId string
- Unique repository identifier.
- refName string
- A filter to return only resources that match the given reference name.
- repository_id str
- Unique repository identifier.
- ref_name str
- A filter to return only resources that match the given reference name.
- repositoryId String
- Unique repository identifier.
- refName String
- A filter to return only resources that match the given reference name.
getRepositoryAuthor Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetRepository Author Item> 
- List of author objects.
- RepositoryId string
- RefName string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetRepository Author Item 
- List of author objects.
- RepositoryId string
- RefName string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetRepository Author Item> 
- List of author objects.
- repositoryId String
- refName String
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetRepository Author Item[] 
- List of author objects.
- repositoryId string
- refName string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetRepository Author Item] 
- List of author objects.
- repository_id str
- ref_name str
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- List of author objects.
- repositoryId String
- refName String
Supporting Types
GetRepositoryAuthorItem   
- 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"}
- 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"}
- 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"}
- 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"}
- 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"}
- 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"}
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.