oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.Artifacts.getContainerRepository

This data source provides details about a specific Container Repository resource in Oracle Cloud Infrastructure Artifacts service.

Get container repository.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testContainerRepository = Oci.Artifacts.GetContainerRepository.Invoke(new()
    {
        RepositoryId = oci_artifacts_repository.Test_repository.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_artifacts_repository.Test_repository.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_artifacts_repository.test_repository().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_container_repository = oci.Artifacts.get_container_repository(repository_id=oci_artifacts_repository["test_repository"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerRepository = oci.Artifacts.getContainerRepository({
    repositoryId: oci_artifacts_repository.test_repository.id,
});
variables:
  testContainerRepository:
    fn::invoke:
      Function: oci:Artifacts:getContainerRepository
      Arguments:
        repositoryId: ${oci_artifacts_repository.test_repository.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 GetContainerRepository(ctx *Context, args *GetContainerRepositoryArgs, opts ...InvokeOption) (*GetContainerRepositoryResult, error)
func GetContainerRepositoryOutput(ctx *Context, args *GetContainerRepositoryOutputArgs, opts ...InvokeOption) GetContainerRepositoryResultOutput

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

The 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:

BillableSizeInGbs string

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.

DisplayName string

The container repository name.

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.

LayersSizeInBytes string

Total storage in bytes consumed by layers.

Readmes List<GetContainerRepositoryReadme>

Container repository readme.

RepositoryId string
State string

The current state of the container repository.

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.

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.

DisplayName string

The container repository name.

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.

LayersSizeInBytes string

Total storage in bytes consumed by layers.

Readmes []GetContainerRepositoryReadme

Container repository readme.

RepositoryId string
State string

The current state of the container repository.

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.

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.

displayName String

The container repository name.

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.

layersSizeInBytes String

Total storage in bytes consumed by layers.

readmes List<GetContainerRepositoryReadme>

Container repository readme.

repositoryId String
state String

The current state of the container repository.

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.

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.

displayName string

The container repository name.

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.

layersSizeInBytes string

Total storage in bytes consumed by layers.

readmes GetContainerRepositoryReadme[]

Container repository readme.

repositoryId string
state string

The current state of the container repository.

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.

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.

display_name str

The container repository name.

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_in_bytes str

Total storage in bytes consumed by layers.

readmes GetContainerRepositoryReadme]

Container repository readme.

repository_id str
state str

The current state of the container repository.

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.

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.

displayName String

The container repository name.

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.

layersSizeInBytes String

Total storage in bytes consumed by layers.

readmes List<Property Map>

Container repository readme.

repositoryId String
state String

The current state of the container repository.

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.

Supporting Types

GetContainerRepositoryReadme

Content string

Readme content. Avoid entering confidential information.

Format string

Readme format. Supported formats are text/plain and text/markdown.

Content string

Readme content. Avoid entering confidential information.

Format string

Readme format. Supported formats are text/plain and text/markdown.

content String

Readme content. Avoid entering confidential information.

format String

Readme format. Supported formats are text/plain and text/markdown.

content string

Readme content. Avoid entering confidential information.

format string

Readme format. Supported formats are text/plain and text/markdown.

content str

Readme content. Avoid entering confidential information.

format str

Readme format. Supported formats are text/plain and text/markdown.

content String

Readme content. Avoid entering confidential information.

format String

Readme format. Supported formats are text/plain and text/markdown.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.