1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Artifacts
  6. ContainerRepository
Viewing docs for Oracle Cloud Infrastructure v5.9.0
published on Thursday, Nov 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.9.0
published on Thursday, Nov 26, 2026 by Pulumi

    This resource provides the Container Repository resource in Oracle Cloud Infrastructure Artifacts service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/registry/latest/ContainerRepository

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/artifacts

    Create a new empty container repository. Avoid entering confidential information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testContainerRepository = new oci.artifacts.ContainerRepository("test_container_repository", {
        compartmentId: compartmentId,
        displayName: containerRepositoryDisplayName,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
        isImmutable: containerRepositoryIsImmutable,
        isPublic: containerRepositoryIsPublic,
        isTopLevel: containerRepositoryIsTopLevel,
        multiRegionPeers: containerRepositoryMultiRegionPeers,
        readme: {
            content: containerRepositoryReadmeContent,
            format: containerRepositoryReadmeFormat,
        },
        repositoryType: containerRepositoryRepositoryType,
        upstreamSecretId: containerRepositoryUpstreamSecretId,
        upstreamUrl: containerRepositoryUpstreamUrl,
        upstreamUsername: containerRepositoryUpstreamUsername,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_container_repository = oci.artifacts.ContainerRepository("test_container_repository",
        compartment_id=compartment_id,
        display_name=container_repository_display_name,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        },
        is_immutable=container_repository_is_immutable,
        is_public=container_repository_is_public,
        is_top_level=container_repository_is_top_level,
        multi_region_peers=container_repository_multi_region_peers,
        readme={
            "content": container_repository_readme_content,
            "format": container_repository_readme_format,
        },
        repository_type=container_repository_repository_type,
        upstream_secret_id=container_repository_upstream_secret_id,
        upstream_url=container_repository_upstream_url,
        upstream_username=container_repository_upstream_username)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/artifacts"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifacts.NewContainerRepository(ctx, "test_container_repository", &artifacts.ContainerRepositoryArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(containerRepositoryDisplayName),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			IsImmutable:      pulumi.Any(containerRepositoryIsImmutable),
    			IsPublic:         pulumi.Any(containerRepositoryIsPublic),
    			IsTopLevel:       pulumi.Any(containerRepositoryIsTopLevel),
    			MultiRegionPeers: pulumi.Any(containerRepositoryMultiRegionPeers),
    			Readme: &artifacts.ContainerRepositoryReadmeArgs{
    				Content: pulumi.Any(containerRepositoryReadmeContent),
    				Format:  pulumi.Any(containerRepositoryReadmeFormat),
    			},
    			RepositoryType:   pulumi.Any(containerRepositoryRepositoryType),
    			UpstreamSecretId: pulumi.Any(containerRepositoryUpstreamSecretId),
    			UpstreamUrl:      pulumi.Any(containerRepositoryUpstreamUrl),
    			UpstreamUsername: pulumi.Any(containerRepositoryUpstreamUsername),
    		})
    		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 testContainerRepository = new Oci.Artifacts.ContainerRepository("test_container_repository", new()
        {
            CompartmentId = compartmentId,
            DisplayName = containerRepositoryDisplayName,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            IsImmutable = containerRepositoryIsImmutable,
            IsPublic = containerRepositoryIsPublic,
            IsTopLevel = containerRepositoryIsTopLevel,
            MultiRegionPeers = containerRepositoryMultiRegionPeers,
            Readme = new Oci.Artifacts.Inputs.ContainerRepositoryReadmeArgs
            {
                Content = containerRepositoryReadmeContent,
                Format = containerRepositoryReadmeFormat,
            },
            RepositoryType = containerRepositoryRepositoryType,
            UpstreamSecretId = containerRepositoryUpstreamSecretId,
            UpstreamUrl = containerRepositoryUpstreamUrl,
            UpstreamUsername = containerRepositoryUpstreamUsername,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Artifacts.ContainerRepository;
    import com.pulumi.oci.Artifacts.ContainerRepositoryArgs;
    import com.pulumi.oci.Artifacts.inputs.ContainerRepositoryReadmeArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var testContainerRepository = new ContainerRepository("testContainerRepository", ContainerRepositoryArgs.builder()
                .compartmentId(compartmentId)
                .displayName(containerRepositoryDisplayName)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .isImmutable(containerRepositoryIsImmutable)
                .isPublic(containerRepositoryIsPublic)
                .isTopLevel(containerRepositoryIsTopLevel)
                .multiRegionPeers(containerRepositoryMultiRegionPeers)
                .readme(ContainerRepositoryReadmeArgs.builder()
                    .content(containerRepositoryReadmeContent)
                    .format(containerRepositoryReadmeFormat)
                    .build())
                .repositoryType(containerRepositoryRepositoryType)
                .upstreamSecretId(containerRepositoryUpstreamSecretId)
                .upstreamUrl(containerRepositoryUpstreamUrl)
                .upstreamUsername(containerRepositoryUpstreamUsername)
                .build());
    
        }
    }
    
    resources:
      testContainerRepository:
        type: oci:Artifacts:ContainerRepository
        name: test_container_repository
        properties:
          compartmentId: ${compartmentId}
          displayName: ${containerRepositoryDisplayName}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
          isImmutable: ${containerRepositoryIsImmutable}
          isPublic: ${containerRepositoryIsPublic}
          isTopLevel: ${containerRepositoryIsTopLevel}
          multiRegionPeers: ${containerRepositoryMultiRegionPeers}
          readme:
            content: ${containerRepositoryReadmeContent}
            format: ${containerRepositoryReadmeFormat}
          repositoryType: ${containerRepositoryRepositoryType}
          upstreamSecretId: ${containerRepositoryUpstreamSecretId}
          upstreamUrl: ${containerRepositoryUpstreamUrl}
          upstreamUsername: ${containerRepositoryUpstreamUsername}
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_artifacts_container_repository" "test_container_repository" {
      lifecycle {
        create_before_destroy = true
      }
      compartment_id = compartmentId
      display_name   = containerRepositoryDisplayName
      defined_tags = {
        "Operations.CostCenter" = "42"
      }
      freeform_tags = {
        "Department" = "Finance"
      }
      is_immutable       = containerRepositoryIsImmutable
      is_public          = containerRepositoryIsPublic
      is_top_level       = containerRepositoryIsTopLevel
      multi_region_peers = containerRepositoryMultiRegionPeers
      readme {
        content = containerRepositoryReadmeContent
        format  = containerRepositoryReadmeFormat
      }
      #Required
      repository_type    = containerRepositoryRepositoryType
      upstream_secret_id = containerRepositoryUpstreamSecretId
      upstream_url       = containerRepositoryUpstreamUrl
      upstream_username  = containerRepositoryUpstreamUsername
    }
    

    Create ContainerRepository Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContainerRepository(name: string, args: ContainerRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerRepository(resource_name: str,
                            args: ContainerRepositoryArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerRepository(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            display_name: Optional[str] = None,
                            compartment_id: Optional[str] = None,
                            is_top_level: Optional[bool] = None,
                            freeform_tags: Optional[Mapping[str, str]] = None,
                            is_immutable: Optional[bool] = None,
                            is_public: Optional[bool] = None,
                            defined_tags: Optional[Mapping[str, str]] = None,
                            multi_region_peers: Optional[Sequence[str]] = None,
                            readme: Optional[ContainerRepositoryReadmeArgs] = None,
                            repository_type: Optional[str] = None,
                            upstream_secret_id: Optional[str] = None,
                            upstream_url: Optional[str] = None,
                            upstream_username: Optional[str] = None)
    func NewContainerRepository(ctx *Context, name string, args ContainerRepositoryArgs, opts ...ResourceOption) (*ContainerRepository, error)
    public ContainerRepository(string name, ContainerRepositoryArgs args, CustomResourceOptions? opts = null)
    public ContainerRepository(String name, ContainerRepositoryArgs args)
    public ContainerRepository(String name, ContainerRepositoryArgs args, CustomResourceOptions options)
    
    type: oci:Artifacts:ContainerRepository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_artifacts_container_repository" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var containerRepositoryResource = new Oci.Artifacts.ContainerRepository("containerRepositoryResource", new()
    {
        DisplayName = "string",
        CompartmentId = "string",
        IsTopLevel = false,
        FreeformTags = 
        {
            { "string", "string" },
        },
        IsImmutable = false,
        IsPublic = false,
        DefinedTags = 
        {
            { "string", "string" },
        },
        MultiRegionPeers = new[]
        {
            "string",
        },
        Readme = new Oci.Artifacts.Inputs.ContainerRepositoryReadmeArgs
        {
            Content = "string",
            Format = "string",
        },
        RepositoryType = "string",
        UpstreamSecretId = "string",
        UpstreamUrl = "string",
        UpstreamUsername = "string",
    });
    
    example, err := artifacts.NewContainerRepository(ctx, "containerRepositoryResource", &artifacts.ContainerRepositoryArgs{
    	DisplayName:   pulumi.String("string"),
    	CompartmentId: pulumi.String("string"),
    	IsTopLevel:    pulumi.Bool(false),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	IsImmutable: pulumi.Bool(false),
    	IsPublic:    pulumi.Bool(false),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	MultiRegionPeers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Readme: &artifacts.ContainerRepositoryReadmeArgs{
    		Content: pulumi.String("string"),
    		Format:  pulumi.String("string"),
    	},
    	RepositoryType:   pulumi.String("string"),
    	UpstreamSecretId: pulumi.String("string"),
    	UpstreamUrl:      pulumi.String("string"),
    	UpstreamUsername: pulumi.String("string"),
    })
    
    resource "oci_artifacts_container_repository" "containerRepositoryResource" {
      lifecycle {
        create_before_destroy = true
      }
      display_name   = "string"
      compartment_id = "string"
      is_top_level   = false
      freeform_tags = {
        "string" = "string"
      }
      is_immutable = false
      is_public    = false
      defined_tags = {
        "string" = "string"
      }
      multi_region_peers = ["string"]
      readme = {
        content = "string"
        format  = "string"
      }
      repository_type    = "string"
      upstream_secret_id = "string"
      upstream_url       = "string"
      upstream_username  = "string"
    }
    
    var containerRepositoryResource = new ContainerRepository("containerRepositoryResource", ContainerRepositoryArgs.builder()
        .displayName("string")
        .compartmentId("string")
        .isTopLevel(false)
        .freeformTags(Map.of("string", "string"))
        .isImmutable(false)
        .isPublic(false)
        .definedTags(Map.of("string", "string"))
        .multiRegionPeers("string")
        .readme(ContainerRepositoryReadmeArgs.builder()
            .content("string")
            .format("string")
            .build())
        .repositoryType("string")
        .upstreamSecretId("string")
        .upstreamUrl("string")
        .upstreamUsername("string")
        .build());
    
    container_repository_resource = oci.artifacts.ContainerRepository("containerRepositoryResource",
        display_name="string",
        compartment_id="string",
        is_top_level=False,
        freeform_tags={
            "string": "string",
        },
        is_immutable=False,
        is_public=False,
        defined_tags={
            "string": "string",
        },
        multi_region_peers=["string"],
        readme={
            "content": "string",
            "format": "string",
        },
        repository_type="string",
        upstream_secret_id="string",
        upstream_url="string",
        upstream_username="string")
    
    const containerRepositoryResource = new oci.artifacts.ContainerRepository("containerRepositoryResource", {
        displayName: "string",
        compartmentId: "string",
        isTopLevel: false,
        freeformTags: {
            string: "string",
        },
        isImmutable: false,
        isPublic: false,
        definedTags: {
            string: "string",
        },
        multiRegionPeers: ["string"],
        readme: {
            content: "string",
            format: "string",
        },
        repositoryType: "string",
        upstreamSecretId: "string",
        upstreamUrl: "string",
        upstreamUsername: "string",
    });
    
    type: oci:Artifacts:ContainerRepository
    properties:
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        isImmutable: false
        isPublic: false
        isTopLevel: false
        multiRegionPeers:
            - string
        readme:
            content: string
            format: string
        repositoryType: string
        upstreamSecretId: string
        upstreamUrl: string
        upstreamUsername: string
    

    ContainerRepository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ContainerRepository resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    DisplayName string
    The container repository name.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    IsImmutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    IsPublic bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    IsTopLevel bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    MultiRegionPeers List<string>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    Readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    RepositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    UpstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    UpstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    UpstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    DisplayName string
    The container repository name.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string
    (Updatable) 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"}
    IsImmutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    IsPublic bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    IsTopLevel bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    MultiRegionPeers []string
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    Readme ContainerRepositoryReadmeArgs
    (Updatable) Container repository readme.
    RepositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    UpstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    UpstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    UpstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id string
    (Updatable) The OCID of the compartment in which to create the resource.
    display_name string
    The container repository name.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags map(string)
    (Updatable) 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"}
    is_immutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    is_public bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    is_top_level bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    multi_region_peers list(string)
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    readme object
    (Updatable) Container repository readme.
    repository_type string
    The type of container repository. This determines the repository behavior and required settings.
    upstream_secret_id string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstream_url string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstream_username string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment in which to create the resource.
    displayName String
    The container repository name.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>
    (Updatable) 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"}
    isImmutable Boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic Boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel Boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    multiRegionPeers List<String>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    repositoryType String
    The type of container repository. This determines the repository behavior and required settings.
    upstreamSecretId String
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl String

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername String

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    displayName string
    The container repository name.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    isImmutable boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    multiRegionPeers string[]
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    repositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    upstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The OCID of the compartment in which to create the resource.
    display_name str
    The container repository name.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    is_immutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    is_public bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    is_top_level bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    multi_region_peers Sequence[str]
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    readme ContainerRepositoryReadmeArgs
    (Updatable) Container repository readme.
    repository_type str
    The type of container repository. This determines the repository behavior and required settings.
    upstream_secret_id str
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstream_url str

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstream_username str

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment in which to create the resource.
    displayName String
    The container repository name.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>
    (Updatable) 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"}
    isImmutable Boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic Boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel Boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    multiRegionPeers List<String>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    readme Property Map
    (Updatable) Container repository readme.
    repositoryType String
    The type of container repository. This determines the repository behavior and required settings.
    upstreamSecretId String
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl String

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername String

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerRepository resource produces the following output properties:

    BillableSizeInGbs string
    Total storage size in GBs that will be charged.
    CreatedBy string
    The id of the user or principal that created the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageCount int
    Total number of images.
    LayerCount int
    Total number of layers.
    LayersSizeInBytes string
    Total storage in bytes consumed by layers.
    Namespace string
    The tenancy namespace used in the container repository path.
    State string
    The current state of the container repository.
    SystemTags Dictionary<string, string>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    TimeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    BillableSizeInGbs string
    Total storage size in GBs that will be charged.
    CreatedBy string
    The id of the user or principal that created the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageCount int
    Total number of images.
    LayerCount int
    Total number of layers.
    LayersSizeInBytes string
    Total storage in bytes consumed by layers.
    Namespace string
    The tenancy namespace used in the container repository path.
    State string
    The current state of the container repository.
    SystemTags map[string]string
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    TimeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    billable_size_in_gbs string
    Total storage size in GBs that will be charged.
    created_by string
    The id of the user or principal that created the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    image_count number
    Total number of images.
    layer_count number
    Total number of layers.
    layers_size_in_bytes string
    Total storage in bytes consumed by layers.
    namespace string
    The tenancy namespace used in the container repository path.
    state string
    The current state of the container repository.
    system_tags map(string)
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    An RFC 3339 timestamp indicating when the repository was created.
    time_last_pushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    billableSizeInGbs String
    Total storage size in GBs that will be charged.
    createdBy String
    The id of the user or principal that created the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    imageCount Integer
    Total number of images.
    layerCount Integer
    Total number of layers.
    layersSizeInBytes String
    Total storage in bytes consumed by layers.
    namespace String
    The tenancy namespace used in the container repository path.
    state String
    The current state of the container repository.
    systemTags Map<String,String>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed String
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    billableSizeInGbs string
    Total storage size in GBs that will be charged.
    createdBy string
    The id of the user or principal that created the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    imageCount number
    Total number of images.
    layerCount number
    Total number of layers.
    layersSizeInBytes string
    Total storage in bytes consumed by layers.
    namespace string
    The tenancy namespace used in the container repository path.
    state string
    The current state of the container repository.
    systemTags {[key: string]: string}
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    billable_size_in_gbs str
    Total storage size in GBs that will be charged.
    created_by str
    The id of the user or principal that created the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    image_count int
    Total number of images.
    layer_count int
    Total number of layers.
    layers_size_in_bytes str
    Total storage in bytes consumed by layers.
    namespace str
    The tenancy namespace used in the container repository path.
    state str
    The current state of the container repository.
    system_tags Mapping[str, str]
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    An RFC 3339 timestamp indicating when the repository was created.
    time_last_pushed str
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    billableSizeInGbs String
    Total storage size in GBs that will be charged.
    createdBy String
    The id of the user or principal that created the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    imageCount Number
    Total number of images.
    layerCount Number
    Total number of layers.
    layersSizeInBytes String
    Total storage in bytes consumed by layers.
    namespace String
    The tenancy namespace used in the container repository path.
    state String
    The current state of the container repository.
    systemTags Map<String>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed String
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.

    Look up Existing ContainerRepository Resource

    Get an existing ContainerRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ContainerRepositoryState, opts?: CustomResourceOptions): ContainerRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            billable_size_in_gbs: Optional[str] = None,
            compartment_id: Optional[str] = None,
            created_by: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            image_count: Optional[int] = None,
            is_immutable: Optional[bool] = None,
            is_public: Optional[bool] = None,
            is_top_level: Optional[bool] = None,
            layer_count: Optional[int] = None,
            layers_size_in_bytes: Optional[str] = None,
            multi_region_peers: Optional[Sequence[str]] = None,
            namespace: Optional[str] = None,
            readme: Optional[ContainerRepositoryReadmeArgs] = None,
            repository_type: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_last_pushed: Optional[str] = None,
            upstream_secret_id: Optional[str] = None,
            upstream_url: Optional[str] = None,
            upstream_username: Optional[str] = None) -> ContainerRepository
    func GetContainerRepository(ctx *Context, name string, id IDInput, state *ContainerRepositoryState, opts ...ResourceOption) (*ContainerRepository, error)
    public static ContainerRepository Get(string name, Input<string> id, ContainerRepositoryState? state, CustomResourceOptions? opts = null)
    public static ContainerRepository get(String name, Output<String> id, ContainerRepositoryState state, CustomResourceOptions options)
    resources:  existingContainerRepository:    type: oci:Artifacts:ContainerRepository    get:      id: ${id}
    import {
      to = oci_artifacts_container_repository.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state ContainerRepositoryState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ContainerRepositoryState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state ContainerRepositoryState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state ContainerRepositoryState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    BillableSizeInGbs string
    Total storage size in GBs that will be charged.
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    CreatedBy string
    The id of the user or principal that created the resource.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The container repository name.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    ImageCount int
    Total number of images.
    IsImmutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    IsPublic bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    IsTopLevel bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    LayerCount int
    Total number of layers.
    LayersSizeInBytes string
    Total storage in bytes consumed by layers.
    MultiRegionPeers List<string>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    Namespace string
    The tenancy namespace used in the container repository path.
    Readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    RepositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    State string
    The current state of the container repository.
    SystemTags Dictionary<string, string>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    TimeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    UpstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    UpstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    UpstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    BillableSizeInGbs string
    Total storage size in GBs that will be charged.
    CompartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    CreatedBy string
    The id of the user or principal that created the resource.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The container repository name.
    FreeformTags map[string]string
    (Updatable) 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"}
    ImageCount int
    Total number of images.
    IsImmutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    IsPublic bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    IsTopLevel bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    LayerCount int
    Total number of layers.
    LayersSizeInBytes string
    Total storage in bytes consumed by layers.
    MultiRegionPeers []string
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    Namespace string
    The tenancy namespace used in the container repository path.
    Readme ContainerRepositoryReadmeArgs
    (Updatable) Container repository readme.
    RepositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    State string
    The current state of the container repository.
    SystemTags map[string]string
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    TimeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    UpstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    UpstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    UpstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    billable_size_in_gbs string
    Total storage size in GBs that will be charged.
    compartment_id string
    (Updatable) The OCID of the compartment in which to create the resource.
    created_by string
    The id of the user or principal that created the resource.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name string
    The container repository name.
    freeform_tags map(string)
    (Updatable) 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"}
    image_count number
    Total number of images.
    is_immutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    is_public bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    is_top_level bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    layer_count number
    Total number of layers.
    layers_size_in_bytes string
    Total storage in bytes consumed by layers.
    multi_region_peers list(string)
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    namespace string
    The tenancy namespace used in the container repository path.
    readme object
    (Updatable) Container repository readme.
    repository_type string
    The type of container repository. This determines the repository behavior and required settings.
    state string
    The current state of the container repository.
    system_tags map(string)
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    An RFC 3339 timestamp indicating when the repository was created.
    time_last_pushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    upstream_secret_id string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstream_url string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstream_username string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    billableSizeInGbs String
    Total storage size in GBs that will be charged.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the resource.
    createdBy String
    The id of the user or principal that created the resource.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The container repository name.
    freeformTags Map<String,String>
    (Updatable) 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"}
    imageCount Integer
    Total number of images.
    isImmutable Boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic Boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel Boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    layerCount Integer
    Total number of layers.
    layersSizeInBytes String
    Total storage in bytes consumed by layers.
    multiRegionPeers List<String>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    namespace String
    The tenancy namespace used in the container repository path.
    readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    repositoryType String
    The type of container repository. This determines the repository behavior and required settings.
    state String
    The current state of the container repository.
    systemTags Map<String,String>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed String
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    upstreamSecretId String
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl String

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername String

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    billableSizeInGbs string
    Total storage size in GBs that will be charged.
    compartmentId string
    (Updatable) The OCID of the compartment in which to create the resource.
    createdBy string
    The id of the user or principal that created the resource.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    The container repository name.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    imageCount number
    Total number of images.
    isImmutable boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    layerCount number
    Total number of layers.
    layersSizeInBytes string
    Total storage in bytes consumed by layers.
    multiRegionPeers string[]
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    namespace string
    The tenancy namespace used in the container repository path.
    readme ContainerRepositoryReadme
    (Updatable) Container repository readme.
    repositoryType string
    The type of container repository. This determines the repository behavior and required settings.
    state string
    The current state of the container repository.
    systemTags {[key: string]: string}
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed string
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    upstreamSecretId string
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl string

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername string

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    billable_size_in_gbs str
    Total storage size in GBs that will be charged.
    compartment_id str
    (Updatable) The OCID of the compartment in which to create the resource.
    created_by str
    The id of the user or principal that created the resource.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    The container repository name.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    image_count int
    Total number of images.
    is_immutable bool
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    is_public bool
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    is_top_level bool
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    layer_count int
    Total number of layers.
    layers_size_in_bytes str
    Total storage in bytes consumed by layers.
    multi_region_peers Sequence[str]
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    namespace str
    The tenancy namespace used in the container repository path.
    readme ContainerRepositoryReadmeArgs
    (Updatable) Container repository readme.
    repository_type str
    The type of container repository. This determines the repository behavior and required settings.
    state str
    The current state of the container repository.
    system_tags Mapping[str, str]
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    An RFC 3339 timestamp indicating when the repository was created.
    time_last_pushed str
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    upstream_secret_id str
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstream_url str

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstream_username str

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    billableSizeInGbs String
    Total storage size in GBs that will be charged.
    compartmentId String
    (Updatable) The OCID of the compartment in which to create the resource.
    createdBy String
    The id of the user or principal that created the resource.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The container repository name.
    freeformTags Map<String>
    (Updatable) 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"}
    imageCount Number
    Total number of images.
    isImmutable Boolean
    (Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default.
    isPublic Boolean
    (Updatable) Whether the repository is public. A public repository allows unauthenticated access.
    isTopLevel Boolean
    Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix.
    layerCount Number
    Total number of layers.
    layersSizeInBytes String
    Total storage in bytes consumed by layers.
    multiRegionPeers List<String>
    List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, us-phoenix-1). The peer set must match a supported multi-region endpoint group and MUST include the local OCIR region where the repository is created. Required when repositoryType is MULTI_REGION.
    namespace String
    The tenancy namespace used in the container repository path.
    readme Property Map
    (Updatable) Container repository readme.
    repositoryType String
    The type of container repository. This determines the repository behavior and required settings.
    state String
    The current state of the container repository.
    systemTags Map<String>
    The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    An RFC 3339 timestamp indicating when the repository was created.
    timeLastPushed String
    An RFC 3339 timestamp indicating when an image was last pushed to the repository.
    upstreamSecretId String
    (Updatable) The OCID of the Oracle Cloud Infrastructure Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. Example: ocid1.vaultsecret.oc1..exampleuniqueID
    upstreamUrl String

    The upstream registry URL for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. The value must include the registry endpoint and repository path, and must not include a tag or digest.

    If isTopLevel is false, the value must be an exact upstream image full path. Example: iad.ocir.io/<upstreamNamespace>/library/ubuntu

    If isTopLevel is true, the value must be an upstream repository path prefix, allowing OCIR to pull multiple repositories under that prefix. Example: iad.ocir.io/<upstreamNamespace>/library or iad.ocir.io/<upstreamNamespace>

    upstreamUsername String

    (Updatable) The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    ContainerRepositoryReadme, ContainerRepositoryReadmeArgs

    Content string
    (Updatable) Readme content. Avoid entering confidential information.
    Format string
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    Content string
    (Updatable) Readme content. Avoid entering confidential information.
    Format string
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    content string
    (Updatable) Readme content. Avoid entering confidential information.
    format string
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    content String
    (Updatable) Readme content. Avoid entering confidential information.
    format String
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    content string
    (Updatable) Readme content. Avoid entering confidential information.
    format string
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    content str
    (Updatable) Readme content. Avoid entering confidential information.
    format str
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.
    content String
    (Updatable) Readme content. Avoid entering confidential information.
    format String
    (Updatable) Readme format. Supported formats are text/plain and text/markdown.

    Import

    ContainerRepositories can be imported using the id, e.g.

    $ pulumi import oci:Artifacts/containerRepository:ContainerRepository test_container_repository "{repositoryId}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.9.0
    published on Thursday, Nov 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial