Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Artifacts.getRepository
Explore with Pulumi AI
This data source provides details about a specific Repository resource in Oracle Cloud Infrastructure Artifacts service.
Gets the specified repository’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepository = oci.Artifacts.getRepository({
    repositoryId: testRepositoryOciArtifactsRepository.id,
});
import pulumi
import pulumi_oci as oci
test_repository = oci.Artifacts.get_repository(repository_id=test_repository_oci_artifacts_repository["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/artifacts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifacts.GetRepository(ctx, &artifacts.GetRepositoryArgs{
			RepositoryId: testRepositoryOciArtifactsRepository.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 testRepository = Oci.Artifacts.GetRepository.Invoke(new()
    {
        RepositoryId = testRepositoryOciArtifactsRepository.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ArtifactsFunctions;
import com.pulumi.oci.Artifacts.inputs.GetRepositoryArgs;
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 testRepository = ArtifactsFunctions.getRepository(GetRepositoryArgs.builder()
            .repositoryId(testRepositoryOciArtifactsRepository.id())
            .build());
    }
}
variables:
  testRepository:
    fn::invoke:
      function: oci:Artifacts:getRepository
      arguments:
        repositoryId: ${testRepositoryOciArtifactsRepository.id}
Using getRepository
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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>def get_repository(repository_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(repository_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput> Note: This function is named LookupRepository in the Go SDK.
public static class GetRepository 
{
    public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Artifacts/getRepository:getRepository
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepositoryId string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- RepositoryId string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- repositoryId String
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- repositoryId string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- repository_id str
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- repositoryId String
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
getRepository Result
The following output properties are available:
- CompartmentId string
- The OCID of the repository's compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- The repository description.
- DisplayName string
- The repository name.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- IsImmutable bool
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- RepositoryId string
- RepositoryType string
- The repository's supported artifact type.
- State string
- The current state of the repository.
- TimeCreated string
- An RFC 3339 timestamp indicating when the repository was created.
- CompartmentId string
- The OCID of the repository's compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- The repository description.
- DisplayName string
- The repository name.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- IsImmutable bool
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- RepositoryId string
- RepositoryType string
- The repository's supported artifact type.
- State string
- The current state of the repository.
- TimeCreated string
- An RFC 3339 timestamp indicating when the repository was created.
- compartmentId String
- The OCID of the repository's compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- The repository description.
- displayName String
- The repository name.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- isImmutable Boolean
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repositoryId String
- repositoryType String
- The repository's supported artifact type.
- state String
- The current state of the repository.
- timeCreated String
- An RFC 3339 timestamp indicating when the repository was created.
- compartmentId string
- The OCID of the repository's compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description string
- The repository description.
- displayName string
- The repository name.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- isImmutable boolean
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repositoryId string
- repositoryType string
- The repository's supported artifact type.
- state string
- The current state of the repository.
- timeCreated string
- An RFC 3339 timestamp indicating when the repository was created.
- compartment_id str
- The OCID of the repository's compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description str
- The repository description.
- display_name str
- The repository name.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- is_immutable bool
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repository_id str
- repository_type str
- The repository's supported artifact type.
- state str
- The current state of the repository.
- time_created str
- An RFC 3339 timestamp indicating when the repository was created.
- compartmentId String
- The OCID of the repository's compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- The repository description.
- displayName String
- The repository name.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the repository. Example: ocid1.artifactrepository.oc1..exampleuniqueID
- isImmutable Boolean
- Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repositoryId String
- repositoryType String
- The repository's supported artifact type.
- state String
- The current state of the repository.
- timeCreated String
- An RFC 3339 timestamp indicating when the repository was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.