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

oci.Artifacts.ContainerRepository

This resource provides the Container Repository resource in Oracle Cloud Infrastructure Artifacts service.

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

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testContainerRepository = new Oci.Artifacts.ContainerRepository("testContainerRepository", new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Container_repository_display_name,
        IsImmutable = @var.Container_repository_is_immutable,
        IsPublic = @var.Container_repository_is_public,
        Readme = new Oci.Artifacts.Inputs.ContainerRepositoryReadmeArgs
        {
            Content = @var.Container_repository_readme_content,
            Format = @var.Container_repository_readme_format,
        },
    });

});
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.NewContainerRepository(ctx, "testContainerRepository", &Artifacts.ContainerRepositoryArgs{
			CompartmentId: pulumi.Any(_var.Compartment_id),
			DisplayName:   pulumi.Any(_var.Container_repository_display_name),
			IsImmutable:   pulumi.Any(_var.Container_repository_is_immutable),
			IsPublic:      pulumi.Any(_var.Container_repository_is_public),
			Readme: &artifacts.ContainerRepositoryReadmeArgs{
				Content: pulumi.Any(_var.Container_repository_readme_content),
				Format:  pulumi.Any(_var.Container_repository_readme_format),
			},
		})
		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.ContainerRepository;
import com.pulumi.oci.Artifacts.ContainerRepositoryArgs;
import com.pulumi.oci.Artifacts.inputs.ContainerRepositoryReadmeArgs;
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) {
        var testContainerRepository = new ContainerRepository("testContainerRepository", ContainerRepositoryArgs.builder()        
            .compartmentId(var_.compartment_id())
            .displayName(var_.container_repository_display_name())
            .isImmutable(var_.container_repository_is_immutable())
            .isPublic(var_.container_repository_is_public())
            .readme(ContainerRepositoryReadmeArgs.builder()
                .content(var_.container_repository_readme_content())
                .format(var_.container_repository_readme_format())
                .build())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_container_repository = oci.artifacts.ContainerRepository("testContainerRepository",
    compartment_id=var["compartment_id"],
    display_name=var["container_repository_display_name"],
    is_immutable=var["container_repository_is_immutable"],
    is_public=var["container_repository_is_public"],
    readme=oci.artifacts.ContainerRepositoryReadmeArgs(
        content=var["container_repository_readme_content"],
        format=var["container_repository_readme_format"],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerRepository = new oci.artifacts.ContainerRepository("testContainerRepository", {
    compartmentId: _var.compartment_id,
    displayName: _var.container_repository_display_name,
    isImmutable: _var.container_repository_is_immutable,
    isPublic: _var.container_repository_is_public,
    readme: {
        content: _var.container_repository_readme_content,
        format: _var.container_repository_readme_format,
    },
});
resources:
  testContainerRepository:
    type: oci:Artifacts:ContainerRepository
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      displayName: ${var.container_repository_display_name}
      #Optional
      isImmutable: ${var.container_repository_is_immutable}
      isPublic: ${var.container_repository_is_public}
      readme:
        content: ${var.container_repository_readme_content}
        format: ${var.container_repository_readme_format}

Create ContainerRepository Resource

new ContainerRepository(name: string, args: ContainerRepositoryArgs, opts?: CustomResourceOptions);
@overload
def ContainerRepository(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compartment_id: Optional[str] = None,
                        display_name: Optional[str] = None,
                        is_immutable: Optional[bool] = None,
                        is_public: Optional[bool] = None,
                        readme: Optional[_artifacts.ContainerRepositoryReadmeArgs] = None)
@overload
def ContainerRepository(resource_name: str,
                        args: ContainerRepositoryArgs,
                        opts: Optional[ResourceOptions] = 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.

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.

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

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.

IsImmutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

IsPublic bool

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

Readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

CompartmentId string

(Updatable) The OCID of the compartment in which to create the resource.

DisplayName string

The container repository name.

IsImmutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

IsPublic bool

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

Readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

compartmentId String

(Updatable) The OCID of the compartment in which to create the resource.

displayName String

The container repository name.

isImmutable Boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic Boolean

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

compartmentId string

(Updatable) The OCID of the compartment in which to create the resource.

displayName string

The container repository name.

isImmutable boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic boolean

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

compartment_id str

(Updatable) The OCID of the compartment in which to create the resource.

display_name str

The container repository name.

is_immutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

is_public bool

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

compartmentId String

(Updatable) The OCID of the compartment in which to create the resource.

displayName String

The container repository name.

isImmutable Boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic Boolean

(Updatable) Whether the repository is public. A public repository allows unauthenticated access.

readme Property Map

(Updatable) Container repository readme.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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,
        display_name: Optional[str] = None,
        image_count: Optional[int] = None,
        is_immutable: Optional[bool] = None,
        is_public: Optional[bool] = None,
        layer_count: Optional[int] = None,
        layers_size_in_bytes: Optional[str] = None,
        readme: Optional[_artifacts.ContainerRepositoryReadmeArgs] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_last_pushed: 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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this 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.

DisplayName string

The container repository name.

ImageCount int

Total number of images.

IsImmutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

IsPublic bool

(Updatable) 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.

Readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

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

(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.

DisplayName string

The container repository name.

ImageCount int

Total number of images.

IsImmutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

IsPublic bool

(Updatable) 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.

Readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

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

(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.

displayName String

The container repository name.

imageCount Integer

Total number of images.

isImmutable Boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic Boolean

(Updatable) 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.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

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

(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.

displayName string

The container repository name.

imageCount number

Total number of images.

isImmutable boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic boolean

(Updatable) 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.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

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

(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.

display_name str

The container repository name.

image_count int

Total number of images.

is_immutable bool

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

is_public bool

(Updatable) 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.

readme ContainerRepositoryReadmeArgs

(Updatable) Container repository readme.

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

(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.

displayName String

The container repository name.

imageCount Number

Total number of images.

isImmutable Boolean

(Updatable) Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

isPublic Boolean

(Updatable) 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.

readme Property Map

(Updatable) Container repository readme.

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

ContainerRepositoryReadme

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 "container/repositories/{repositoryId}"

Package Details

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

This Pulumi package is based on the oci Terraform Provider.