1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Artifacts
  5. getRepository
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

oci.Artifacts.getRepository

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

    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 GetRepository(ctx *Context, args *GetRepositoryArgs, opts ...InvokeOption) (*GetRepositoryResult, error)
    func GetRepositoryOutput(ctx *Context, args *GetRepositoryOutputArgs, opts ...InvokeOption) GetRepositoryResultOutput

    > Note: This function is named GetRepository 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Artifacts/getRepository:getRepository
      arguments:
        # arguments dictionary

    The 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.
    DefinedTags 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.
    FreeformTags 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.
    DefinedTags 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.
    FreeformTags 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.
    definedTags 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.
    freeformTags 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.
    definedTags {[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.
    freeformTags {[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.
    defined_tags 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.
    freeform_tags 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.
    definedTags 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.
    freeformTags 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi