1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Artifacts
  5. getContainerRepository
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Artifacts.getContainerRepository

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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 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.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The container repository name.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the 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.
    Namespace string
    The tenancy namespace used in the container repository path.
    Readmes List<GetContainerRepositoryReadme>
    Container repository readme.
    RepositoryId string
    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.
    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.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    The container repository name.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the 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.
    Namespace string
    The tenancy namespace used in the container repository path.
    Readmes []GetContainerRepositoryReadme
    Container repository readme.
    RepositoryId string
    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.
    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.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The container repository name.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the 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.
    namespace String
    The tenancy namespace used in the container repository path.
    readmes List<GetContainerRepositoryReadme>
    Container repository readme.
    repositoryId String
    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.
    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.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    The container repository name.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the 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.
    namespace string
    The tenancy namespace used in the container repository path.
    readmes GetContainerRepositoryReadme[]
    Container repository readme.
    repositoryId string
    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.
    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.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    The container repository name.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the 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.
    namespace str
    The tenancy namespace used in the container repository path.
    readmes Sequence[artifacts.GetContainerRepositoryReadme]
    Container repository readme.
    repository_id str
    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.
    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.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    The container repository name.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the 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.
    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.
    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.

    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi