oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.Artifacts.getContainerConfiguration

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

Get container configuration.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testContainerConfiguration = Oci.Artifacts.GetContainerConfiguration.Invoke(new()
    {
        CompartmentId = @var.Compartment_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.GetContainerConfiguration(ctx, &artifacts.GetContainerConfigurationArgs{
			CompartmentId: _var.Compartment_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.GetContainerConfigurationArgs;
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 testContainerConfiguration = ArtifactsFunctions.getContainerConfiguration(GetContainerConfigurationArgs.builder()
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_container_configuration = oci.Artifacts.get_container_configuration(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerConfiguration = oci.Artifacts.getContainerConfiguration({
    compartmentId: _var.compartment_id,
});
variables:
  testContainerConfiguration:
    fn::invoke:
      Function: oci:Artifacts:getContainerConfiguration
      Arguments:
        compartmentId: ${var.compartment_id}

Using getContainerConfiguration

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 getContainerConfiguration(args: GetContainerConfigurationArgs, opts?: InvokeOptions): Promise<GetContainerConfigurationResult>
function getContainerConfigurationOutput(args: GetContainerConfigurationOutputArgs, opts?: InvokeOptions): Output<GetContainerConfigurationResult>
def get_container_configuration(compartment_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetContainerConfigurationResult
def get_container_configuration_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetContainerConfigurationResult]
func GetContainerConfiguration(ctx *Context, args *GetContainerConfigurationArgs, opts ...InvokeOption) (*GetContainerConfigurationResult, error)
func GetContainerConfigurationOutput(ctx *Context, args *GetContainerConfigurationOutputArgs, opts ...InvokeOption) GetContainerConfigurationResultOutput

> Note: This function is named GetContainerConfiguration in the Go SDK.

public static class GetContainerConfiguration 
{
    public static Task<GetContainerConfigurationResult> InvokeAsync(GetContainerConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerConfigurationResult> Invoke(GetContainerConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerConfigurationResult> getContainerConfiguration(GetContainerConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Artifacts/getContainerConfiguration:getContainerConfiguration
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

CompartmentId string

The OCID of the compartment.

compartmentId String

The OCID of the compartment.

compartmentId string

The OCID of the compartment.

compartment_id str

The OCID of the compartment.

compartmentId String

The OCID of the compartment.

getContainerConfiguration Result

The following output properties are available:

CompartmentId string
Id string
IsRepositoryCreatedOnFirstPush bool

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

Namespace string

The tenancy namespace used in the container repository path.

CompartmentId string
Id string
IsRepositoryCreatedOnFirstPush bool

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

Namespace string

The tenancy namespace used in the container repository path.

compartmentId String
id String
isRepositoryCreatedOnFirstPush Boolean

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

namespace String

The tenancy namespace used in the container repository path.

compartmentId string
id string
isRepositoryCreatedOnFirstPush boolean

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

namespace string

The tenancy namespace used in the container repository path.

compartment_id str
id str
is_repository_created_on_first_push bool

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

namespace str

The tenancy namespace used in the container repository path.

compartmentId String
id String
isRepositoryCreatedOnFirstPush Boolean

Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

namespace String

The tenancy namespace used in the container repository path.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.