Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Artifacts.getContainerConfiguration
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Container Configuration resource in Oracle Cloud Infrastructure Artifacts service.
Get container configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerConfiguration = oci.Artifacts.getContainerConfiguration({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_container_configuration = oci.Artifacts.get_container_configuration(compartment_id=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: compartmentId,
}, 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 testContainerConfiguration = Oci.Artifacts.GetContainerConfiguration.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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(compartmentId)
.build());
}
}
variables:
testContainerConfiguration:
fn::invoke:
Function: oci:Artifacts:getContainerConfiguration
Arguments:
compartmentId: ${compartmentId}
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:
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id string - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
- compartment
Id string - The OCID of the compartment.
- compartment_
id str - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
getContainerConfiguration Result
The following output properties are available:
- Compartment
Id string - Id string
- Is
Repository boolCreated On First Push - 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 string - Id string
- Is
Repository boolCreated On First Push - 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 String - id String
- is
Repository BooleanCreated On First Push - 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 string - id string
- is
Repository booleanCreated On First Push - 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_ boolcreated_ on_ first_ push - 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.
- compartment
Id String - id String
- is
Repository BooleanCreated On First Push - 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi