Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Artifacts.getContainerRepository
Explore with Pulumi AI
This data source provides details about a specific Container Repository resource in Oracle Cloud Infrastructure Artifacts service.
Get container repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerRepository = oci.Artifacts.getContainerRepository({
    repositoryId: testRepository.id,
});
import pulumi
import pulumi_oci as oci
test_container_repository = oci.Artifacts.get_container_repository(repository_id=test_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.GetContainerRepository(ctx, &artifacts.GetContainerRepositoryArgs{
			RepositoryId: testRepository.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 testContainerRepository = Oci.Artifacts.GetContainerRepository.Invoke(new()
    {
        RepositoryId = testRepository.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.GetContainerRepositoryArgs;
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 testContainerRepository = ArtifactsFunctions.getContainerRepository(GetContainerRepositoryArgs.builder()
            .repositoryId(testRepository.id())
            .build());
    }
}
variables:
  testContainerRepository:
    fn::invoke:
      function: oci:Artifacts:getContainerRepository
      arguments:
        repositoryId: ${testRepository.id}
Using getContainerRepository
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 getContainerRepository(args: GetContainerRepositoryArgs, opts?: InvokeOptions): Promise<GetContainerRepositoryResult>
function getContainerRepositoryOutput(args: GetContainerRepositoryOutputArgs, opts?: InvokeOptions): Output<GetContainerRepositoryResult>def get_container_repository(repository_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetContainerRepositoryResult
def get_container_repository_output(repository_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetContainerRepositoryResult]func LookupContainerRepository(ctx *Context, args *LookupContainerRepositoryArgs, opts ...InvokeOption) (*LookupContainerRepositoryResult, error)
func LookupContainerRepositoryOutput(ctx *Context, args *LookupContainerRepositoryOutputArgs, opts ...InvokeOption) LookupContainerRepositoryResultOutput> Note: This function is named LookupContainerRepository in the Go SDK.
public static class GetContainerRepository 
{
    public static Task<GetContainerRepositoryResult> InvokeAsync(GetContainerRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerRepositoryResult> Invoke(GetContainerRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
public static Output<GetContainerRepositoryResult> getContainerRepository(GetContainerRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Artifacts/getContainerRepository:getContainerRepository
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepositoryId string
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- RepositoryId string
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- repositoryId String
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- repositoryId string
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- repository_id str
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- repositoryId String
- The OCID of the container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
getContainerRepository Result
The following output properties are available:
- BillableSize stringIn Gbs 
- Total storage size in GBs that will be charged.
- CompartmentId string
- The OCID of the compartment in which the container repository exists.
- CreatedBy string
- The id of the user or principal that created the resource.
- 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"}
- DisplayName string
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- ImageCount int
- Total number of images.
- IsImmutable bool
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- IsPublic bool
- Whether the repository is public. A public repository allows unauthenticated access.
- LayerCount int
- Total number of layers.
- LayersSize stringIn Bytes 
- Total storage in bytes consumed by layers.
- Namespace string
- The tenancy namespace used in the container repository path.
- Readmes
List<GetContainer Repository Readme> 
- Container repository readme.
- RepositoryId string
- State string
- The current state of the container repository.
- 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.
- TimeLast stringPushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- BillableSize stringIn Gbs 
- Total storage size in GBs that will be charged.
- CompartmentId string
- The OCID of the compartment in which the container repository exists.
- CreatedBy string
- The id of the user or principal that created the resource.
- 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"}
- DisplayName string
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- ImageCount int
- Total number of images.
- IsImmutable bool
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- IsPublic bool
- Whether the repository is public. A public repository allows unauthenticated access.
- LayerCount int
- Total number of layers.
- LayersSize stringIn Bytes 
- Total storage in bytes consumed by layers.
- Namespace string
- The tenancy namespace used in the container repository path.
- Readmes
[]GetContainer Repository Readme 
- Container repository readme.
- RepositoryId string
- State string
- The current state of the container repository.
- 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.
- TimeLast stringPushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billableSize StringIn Gbs 
- Total storage size in GBs that will be charged.
- compartmentId String
- The OCID of the compartment in which the container repository exists.
- createdBy String
- The id of the user or principal that created the resource.
- 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"}
- displayName String
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- imageCount Integer
- Total number of images.
- isImmutable Boolean
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- isPublic Boolean
- Whether the repository is public. A public repository allows unauthenticated access.
- layerCount Integer
- Total number of layers.
- layersSize StringIn Bytes 
- Total storage in bytes consumed by layers.
- namespace String
- The tenancy namespace used in the container repository path.
- readmes
List<GetContainer Repository Readme> 
- Container repository readme.
- repositoryId String
- state String
- The current state of the container repository.
- 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.
- timeLast StringPushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billableSize stringIn Gbs 
- Total storage size in GBs that will be charged.
- compartmentId string
- The OCID of the compartment in which the container repository exists.
- createdBy string
- The id of the user or principal that created the resource.
- {[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"}
- displayName string
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- imageCount number
- Total number of images.
- isImmutable boolean
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- isPublic boolean
- Whether the repository is public. A public repository allows unauthenticated access.
- layerCount number
- Total number of layers.
- layersSize stringIn Bytes 
- Total storage in bytes consumed by layers.
- namespace string
- The tenancy namespace used in the container repository path.
- readmes
GetContainer Repository Readme[] 
- Container repository readme.
- repositoryId string
- state string
- The current state of the container repository.
- {[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.
- timeLast stringPushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billable_size_ strin_ gbs 
- Total storage size in GBs that will be charged.
- compartment_id str
- The OCID of the compartment in which the container repository exists.
- created_by str
- The id of the user or principal that created the resource.
- 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"}
- display_name str
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- image_count int
- Total number of images.
- is_immutable bool
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- is_public bool
- Whether the repository is public. A public repository allows unauthenticated access.
- layer_count int
- Total number of layers.
- layers_size_ strin_ bytes 
- Total storage in bytes consumed by layers.
- namespace str
- The tenancy namespace used in the container repository path.
- readmes
Sequence[GetContainer Repository Readme] 
- Container repository readme.
- repository_id str
- state str
- The current state of the container repository.
- 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_ strpushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
- billableSize StringIn Gbs 
- Total storage size in GBs that will be charged.
- compartmentId String
- The OCID of the compartment in which the container repository exists.
- createdBy String
- The id of the user or principal that created the resource.
- 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"}
- displayName String
- The container 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 container repository. Example: ocid1.containerrepo.oc1..exampleuniqueID
- imageCount Number
- Total number of images.
- isImmutable Boolean
- Whether the repository is immutable. Images cannot be overwritten in an immutable repository.
- isPublic Boolean
- Whether the repository is public. A public repository allows unauthenticated access.
- layerCount Number
- Total number of layers.
- layersSize StringIn Bytes 
- Total storage in bytes consumed by layers.
- namespace String
- The tenancy namespace used in the container repository path.
- readmes List<Property Map>
- Container repository readme.
- repositoryId String
- state String
- The current state of the container repository.
- 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.
- timeLast StringPushed 
- An RFC 3339 timestamp indicating when an image was last pushed to the repository.
Supporting Types
GetContainerRepositoryReadme   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.