oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.ContainerInstances.getContainerInstance

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

Gets a ContainerInstance by identifier

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testContainerInstance = Oci.ContainerInstances.GetContainerInstance.Invoke(new()
    {
        ContainerInstanceId = oci_container_instances_container_instance.Test_container_instance.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerInstances"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ContainerInstances.GetContainerInstance(ctx, &containerinstances.GetContainerInstanceArgs{
			ContainerInstanceId: oci_container_instances_container_instance.Test_container_instance.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.ContainerInstances.ContainerInstancesFunctions;
import com.pulumi.oci.ContainerInstances.inputs.GetContainerInstanceArgs;
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 testContainerInstance = ContainerInstancesFunctions.getContainerInstance(GetContainerInstanceArgs.builder()
            .containerInstanceId(oci_container_instances_container_instance.test_container_instance().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_container_instance = oci.ContainerInstances.get_container_instance(container_instance_id=oci_container_instances_container_instance["test_container_instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerInstance = oci.ContainerInstances.getContainerInstance({
    containerInstanceId: oci_container_instances_container_instance.test_container_instance.id,
});
variables:
  testContainerInstance:
    fn::invoke:
      Function: oci:ContainerInstances:getContainerInstance
      Arguments:
        containerInstanceId: ${oci_container_instances_container_instance.test_container_instance.id}

Using getContainerInstance

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 getContainerInstance(args: GetContainerInstanceArgs, opts?: InvokeOptions): Promise<GetContainerInstanceResult>
function getContainerInstanceOutput(args: GetContainerInstanceOutputArgs, opts?: InvokeOptions): Output<GetContainerInstanceResult>
def get_container_instance(container_instance_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetContainerInstanceResult
def get_container_instance_output(container_instance_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetContainerInstanceResult]
func GetContainerInstance(ctx *Context, args *GetContainerInstanceArgs, opts ...InvokeOption) (*GetContainerInstanceResult, error)
func GetContainerInstanceOutput(ctx *Context, args *GetContainerInstanceOutputArgs, opts ...InvokeOption) GetContainerInstanceResultOutput

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

public static class GetContainerInstance 
{
    public static Task<GetContainerInstanceResult> InvokeAsync(GetContainerInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerInstanceResult> Invoke(GetContainerInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerInstanceResult> getContainerInstance(GetContainerInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:ContainerInstances/getContainerInstance:getContainerInstance
  arguments:
    # arguments dictionary

The following arguments are supported:

ContainerInstanceId string

The system-generated unique identifier for the ContainerInstance.

ContainerInstanceId string

The system-generated unique identifier for the ContainerInstance.

containerInstanceId String

The system-generated unique identifier for the ContainerInstance.

containerInstanceId string

The system-generated unique identifier for the ContainerInstance.

container_instance_id str

The system-generated unique identifier for the ContainerInstance.

containerInstanceId String

The system-generated unique identifier for the ContainerInstance.

getContainerInstance Result

The following output properties are available:

AvailabilityDomain string

Availability Domain where the ContainerInstance is running.

CompartmentId string

Compartment Identifier

ContainerCount int

The number of containers on this Instance

ContainerInstanceId string
ContainerRestartPolicy string

The container restart policy is applied for all containers in container instance.

Containers List<GetContainerInstanceContainer>

The Containers on this Instance

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

DnsConfigs List<GetContainerInstanceDnsConfig>

DNS settings for containers.

FaultDomain string

Fault Domain where the ContainerInstance is running.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

GracefulShutdownTimeoutInSeconds string

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

Id string

Unique identifier that is immutable on creation

ImagePullSecrets List<GetContainerInstanceImagePullSecret>

The image pull secrets for accessing private registry to pull images for containers

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

Shape string

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

ShapeConfigs List<GetContainerInstanceShapeConfig>

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

State string

The current state of the ContainerInstance.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

TimeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

Vnics List<GetContainerInstanceVnic>

The virtual networks available to containers running on this Container Instance.

VolumeCount int

The number of volumes that attached to this Instance

Volumes List<GetContainerInstanceVolume>

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

AvailabilityDomain string

Availability Domain where the ContainerInstance is running.

CompartmentId string

Compartment Identifier

ContainerCount int

The number of containers on this Instance

ContainerInstanceId string
ContainerRestartPolicy string

The container restart policy is applied for all containers in container instance.

Containers []GetContainerInstanceContainer

The Containers on this Instance

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

DnsConfigs []GetContainerInstanceDnsConfig

DNS settings for containers.

FaultDomain string

Fault Domain where the ContainerInstance is running.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

GracefulShutdownTimeoutInSeconds string

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

Id string

Unique identifier that is immutable on creation

ImagePullSecrets []GetContainerInstanceImagePullSecret

The image pull secrets for accessing private registry to pull images for containers

LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

Shape string

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

ShapeConfigs []GetContainerInstanceShapeConfig

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

State string

The current state of the ContainerInstance.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

TimeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

Vnics []GetContainerInstanceVnic

The virtual networks available to containers running on this Container Instance.

VolumeCount int

The number of volumes that attached to this Instance

Volumes []GetContainerInstanceVolume

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

availabilityDomain String

Availability Domain where the ContainerInstance is running.

compartmentId String

Compartment Identifier

containerCount Integer

The number of containers on this Instance

containerInstanceId String
containerRestartPolicy String

The container restart policy is applied for all containers in container instance.

containers List<GetContainerInstanceContainer>

The Containers on this Instance

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

dnsConfigs List<GetContainerInstanceDnsConfig>

DNS settings for containers.

faultDomain String

Fault Domain where the ContainerInstance is running.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

gracefulShutdownTimeoutInSeconds String

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

id String

Unique identifier that is immutable on creation

imagePullSecrets List<GetContainerInstanceImagePullSecret>

The image pull secrets for accessing private registry to pull images for containers

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

shape String

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

shapeConfigs List<GetContainerInstanceShapeConfig>

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

state String

The current state of the ContainerInstance.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeUpdated String

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

vnics List<GetContainerInstanceVnic>

The virtual networks available to containers running on this Container Instance.

volumeCount Integer

The number of volumes that attached to this Instance

volumes List<GetContainerInstanceVolume>

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

availabilityDomain string

Availability Domain where the ContainerInstance is running.

compartmentId string

Compartment Identifier

containerCount number

The number of containers on this Instance

containerInstanceId string
containerRestartPolicy string

The container restart policy is applied for all containers in container instance.

containers GetContainerInstanceContainer[]

The Containers on this Instance

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

Display name for the ContainerInstance. Can be renamed.

dnsConfigs GetContainerInstanceDnsConfig[]

DNS settings for containers.

faultDomain string

Fault Domain where the ContainerInstance is running.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

gracefulShutdownTimeoutInSeconds string

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

id string

Unique identifier that is immutable on creation

imagePullSecrets GetContainerInstanceImagePullSecret[]

The image pull secrets for accessing private registry to pull images for containers

lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

shape string

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

shapeConfigs GetContainerInstanceShapeConfig[]

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

state string

The current state of the ContainerInstance.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

vnics GetContainerInstanceVnic[]

The virtual networks available to containers running on this Container Instance.

volumeCount number

The number of volumes that attached to this Instance

volumes GetContainerInstanceVolume[]

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

availability_domain str

Availability Domain where the ContainerInstance is running.

compartment_id str

Compartment Identifier

container_count int

The number of containers on this Instance

container_instance_id str
container_restart_policy str

The container restart policy is applied for all containers in container instance.

containers GetContainerInstanceContainer]

The Containers on this Instance

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

Display name for the ContainerInstance. Can be renamed.

dns_configs GetContainerInstanceDnsConfig]

DNS settings for containers.

fault_domain str

Fault Domain where the ContainerInstance is running.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

graceful_shutdown_timeout_in_seconds str

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

id str

Unique identifier that is immutable on creation

image_pull_secrets GetContainerInstanceImagePullSecret]

The image pull secrets for accessing private registry to pull images for containers

lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

shape str

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

shape_configs GetContainerInstanceShapeConfig]

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

state str

The current state of the ContainerInstance.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

time_updated str

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

vnics GetContainerInstanceVnic]

The virtual networks available to containers running on this Container Instance.

volume_count int

The number of volumes that attached to this Instance

volumes GetContainerInstanceVolume]

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

availabilityDomain String

Availability Domain where the ContainerInstance is running.

compartmentId String

Compartment Identifier

containerCount Number

The number of containers on this Instance

containerInstanceId String
containerRestartPolicy String

The container restart policy is applied for all containers in container instance.

containers List<Property Map>

The Containers on this Instance

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

dnsConfigs List<Property Map>

DNS settings for containers.

faultDomain String

Fault Domain where the ContainerInstance is running.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

gracefulShutdownTimeoutInSeconds String

Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.

id String

Unique identifier that is immutable on creation

imagePullSecrets List<Property Map>

The image pull secrets for accessing private registry to pull images for containers

lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

shape String

The shape of the Container Instance. The shape determines the resources available to the Container Instance.

shapeConfigs List<Property Map>

The shape configuration for a Container Instance. The shape configuration determines the resources allocated to the Instance and it's containers.

state String

The current state of the ContainerInstance.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeUpdated String

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

vnics List<Property Map>

The virtual networks available to containers running on this Container Instance.

volumeCount Number

The number of volumes that attached to this Instance

volumes List<Property Map>

A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance.

Supporting Types

GetContainerInstanceContainer

AdditionalCapabilities List<string>
Arguments List<string>
AvailabilityDomain string

Availability Domain where the ContainerInstance is running.

Commands List<string>
CompartmentId string

Compartment Identifier

ContainerId string

The ID of the Container on this Instance.

ContainerInstanceId string

The system-generated unique identifier for the ContainerInstance.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

EnvironmentVariables Dictionary<string, object>
ExitCode int
FaultDomain string

Fault Domain where the ContainerInstance is running.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

HealthChecks List<GetContainerInstanceContainerHealthCheck>
ImageUrl string
IsResourcePrincipalDisabled bool
LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

ResourceConfigs List<GetContainerInstanceContainerResourceConfig>
State string

The current state of the ContainerInstance.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

TimeTerminated string
TimeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

VolumeMounts List<GetContainerInstanceContainerVolumeMount>
WorkingDirectory string
AdditionalCapabilities []string
Arguments []string
AvailabilityDomain string

Availability Domain where the ContainerInstance is running.

Commands []string
CompartmentId string

Compartment Identifier

ContainerId string

The ID of the Container on this Instance.

ContainerInstanceId string

The system-generated unique identifier for the ContainerInstance.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

EnvironmentVariables map[string]interface{}
ExitCode int
FaultDomain string

Fault Domain where the ContainerInstance is running.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

HealthChecks []GetContainerInstanceContainerHealthCheck
ImageUrl string
IsResourcePrincipalDisabled bool
LifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

ResourceConfigs []GetContainerInstanceContainerResourceConfig
State string

The current state of the ContainerInstance.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

TimeTerminated string
TimeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

VolumeMounts []GetContainerInstanceContainerVolumeMount
WorkingDirectory string
additionalCapabilities List<String>
arguments List<String>
availabilityDomain String

Availability Domain where the ContainerInstance is running.

commands List<String>
compartmentId String

Compartment Identifier

containerId String

The ID of the Container on this Instance.

containerInstanceId String

The system-generated unique identifier for the ContainerInstance.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

environmentVariables Map<String,Object>
exitCode Integer
faultDomain String

Fault Domain where the ContainerInstance is running.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

healthChecks List<GetContainerInstanceContainerHealthCheck>
imageUrl String
isResourcePrincipalDisabled Boolean
lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

resourceConfigs List<GetContainerInstanceContainerResourceConfig>
state String

The current state of the ContainerInstance.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeTerminated String
timeUpdated String

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

volumeMounts List<GetContainerInstanceContainerVolumeMount>
workingDirectory String
additionalCapabilities string[]
arguments string[]
availabilityDomain string

Availability Domain where the ContainerInstance is running.

commands string[]
compartmentId string

Compartment Identifier

containerId string

The ID of the Container on this Instance.

containerInstanceId string

The system-generated unique identifier for the ContainerInstance.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

Display name for the ContainerInstance. Can be renamed.

environmentVariables {[key: string]: any}
exitCode number
faultDomain string

Fault Domain where the ContainerInstance is running.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

healthChecks GetContainerInstanceContainerHealthCheck[]
imageUrl string
isResourcePrincipalDisabled boolean
lifecycleDetails string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

resourceConfigs GetContainerInstanceContainerResourceConfig[]
state string

The current state of the ContainerInstance.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeTerminated string
timeUpdated string

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

volumeMounts GetContainerInstanceContainerVolumeMount[]
workingDirectory string
additional_capabilities Sequence[str]
arguments Sequence[str]
availability_domain str

Availability Domain where the ContainerInstance is running.

commands Sequence[str]
compartment_id str

Compartment Identifier

container_id str

The ID of the Container on this Instance.

container_instance_id str

The system-generated unique identifier for the ContainerInstance.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

Display name for the ContainerInstance. Can be renamed.

environment_variables Mapping[str, Any]
exit_code int
fault_domain str

Fault Domain where the ContainerInstance is running.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

health_checks GetContainerInstanceContainerHealthCheck]
image_url str
is_resource_principal_disabled bool
lifecycle_details str

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

resource_configs GetContainerInstanceContainerResourceConfig]
state str

The current state of the ContainerInstance.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

time_terminated str
time_updated str

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

volume_mounts GetContainerInstanceContainerVolumeMount]
working_directory str
additionalCapabilities List<String>
arguments List<String>
availabilityDomain String

Availability Domain where the ContainerInstance is running.

commands List<String>
compartmentId String

Compartment Identifier

containerId String

The ID of the Container on this Instance.

containerInstanceId String

The system-generated unique identifier for the ContainerInstance.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

environmentVariables Map<Any>
exitCode Number
faultDomain String

Fault Domain where the ContainerInstance is running.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

healthChecks List<Property Map>
imageUrl String
isResourcePrincipalDisabled Boolean
lifecycleDetails String

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

resourceConfigs List<Property Map>
state String

The current state of the ContainerInstance.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The time the the ContainerInstance was created. An RFC3339 formatted datetime string

timeTerminated String
timeUpdated String

The time the ContainerInstance was updated. An RFC3339 formatted datetime string

volumeMounts List<Property Map>
workingDirectory String

GetContainerInstanceContainerHealthCheck

Commands List<string>
FailureAction string
FailureThreshold int
Headers List<GetContainerInstanceContainerHealthCheckHeader>
HealthCheckType string
InitialDelayInSeconds int
IntervalInSeconds int
Name string

The name of the volume. This has be unique cross single ContainerInstance.

Path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

Port int
Status string
StatusDetails string
SuccessThreshold int
TimeoutInSeconds int
Commands []string
FailureAction string
FailureThreshold int
Headers []GetContainerInstanceContainerHealthCheckHeader
HealthCheckType string
InitialDelayInSeconds int
IntervalInSeconds int
Name string

The name of the volume. This has be unique cross single ContainerInstance.

Path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

Port int
Status string
StatusDetails string
SuccessThreshold int
TimeoutInSeconds int
commands List<String>
failureAction String
failureThreshold Integer
headers List<GetContainerInstanceContainerHealthCheckHeader>
healthCheckType String
initialDelayInSeconds Integer
intervalInSeconds Integer
name String

The name of the volume. This has be unique cross single ContainerInstance.

path String

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

port Integer
status String
statusDetails String
successThreshold Integer
timeoutInSeconds Integer
commands string[]
failureAction string
failureThreshold number
headers GetContainerInstanceContainerHealthCheckHeader[]
healthCheckType string
initialDelayInSeconds number
intervalInSeconds number
name string

The name of the volume. This has be unique cross single ContainerInstance.

path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

port number
status string
statusDetails string
successThreshold number
timeoutInSeconds number
commands Sequence[str]
failure_action str
failure_threshold int
headers GetContainerInstanceContainerHealthCheckHeader]
health_check_type str
initial_delay_in_seconds int
interval_in_seconds int
name str

The name of the volume. This has be unique cross single ContainerInstance.

path str

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

port int
status str
status_details str
success_threshold int
timeout_in_seconds int
commands List<String>
failureAction String
failureThreshold Number
headers List<Property Map>
healthCheckType String
initialDelayInSeconds Number
intervalInSeconds Number
name String

The name of the volume. This has be unique cross single ContainerInstance.

path String

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

port Number
status String
statusDetails String
successThreshold Number
timeoutInSeconds Number

GetContainerInstanceContainerHealthCheckHeader

Name string

The name of the volume. This has be unique cross single ContainerInstance.

Value string
Name string

The name of the volume. This has be unique cross single ContainerInstance.

Value string
name String

The name of the volume. This has be unique cross single ContainerInstance.

value String
name string

The name of the volume. This has be unique cross single ContainerInstance.

value string
name str

The name of the volume. This has be unique cross single ContainerInstance.

value str
name String

The name of the volume. This has be unique cross single ContainerInstance.

value String

GetContainerInstanceContainerResourceConfig

GetContainerInstanceContainerVolumeMount

IsReadOnly bool
MountPath string
Partition int
SubPath string
VolumeName string
IsReadOnly bool
MountPath string
Partition int
SubPath string
VolumeName string
isReadOnly Boolean
mountPath String
partition Integer
subPath String
volumeName String
isReadOnly boolean
mountPath string
partition number
subPath string
volumeName string
isReadOnly Boolean
mountPath String
partition Number
subPath String
volumeName String

GetContainerInstanceDnsConfig

Nameservers List<string>

Name server IP address

Options List<string>

Options allows certain internal resolver variables to be modified.

Searches List<string>

Search list for host-name lookup.

Nameservers []string

Name server IP address

Options []string

Options allows certain internal resolver variables to be modified.

Searches []string

Search list for host-name lookup.

nameservers List<String>

Name server IP address

options List<String>

Options allows certain internal resolver variables to be modified.

searches List<String>

Search list for host-name lookup.

nameservers string[]

Name server IP address

options string[]

Options allows certain internal resolver variables to be modified.

searches string[]

Search list for host-name lookup.

nameservers Sequence[str]

Name server IP address

options Sequence[str]

Options allows certain internal resolver variables to be modified.

searches Sequence[str]

Search list for host-name lookup.

nameservers List<String>

Name server IP address

options List<String>

Options allows certain internal resolver variables to be modified.

searches List<String>

Search list for host-name lookup.

GetContainerInstanceImagePullSecret

Password string
RegistryEndpoint string

The registry endpoint of the container image.

SecretId string

The OCID of the secret for registry credentials.

SecretType string

The type of ImagePullSecret.

Username string
Password string
RegistryEndpoint string

The registry endpoint of the container image.

SecretId string

The OCID of the secret for registry credentials.

SecretType string

The type of ImagePullSecret.

Username string
password String
registryEndpoint String

The registry endpoint of the container image.

secretId String

The OCID of the secret for registry credentials.

secretType String

The type of ImagePullSecret.

username String
password string
registryEndpoint string

The registry endpoint of the container image.

secretId string

The OCID of the secret for registry credentials.

secretType string

The type of ImagePullSecret.

username string
password str
registry_endpoint str

The registry endpoint of the container image.

secret_id str

The OCID of the secret for registry credentials.

secret_type str

The type of ImagePullSecret.

username str
password String
registryEndpoint String

The registry endpoint of the container image.

secretId String

The OCID of the secret for registry credentials.

secretType String

The type of ImagePullSecret.

username String

GetContainerInstanceShapeConfig

MemoryInGbs double

The total amount of memory available to the instance, in gigabytes.

NetworkingBandwidthInGbps double

The networking bandwidth available to the instance, in gigabits per second.

Ocpus double

The total number of OCPUs available to the instance.

ProcessorDescription string

A short description of the instance's processor (CPU).

MemoryInGbs float64

The total amount of memory available to the instance, in gigabytes.

NetworkingBandwidthInGbps float64

The networking bandwidth available to the instance, in gigabits per second.

Ocpus float64

The total number of OCPUs available to the instance.

ProcessorDescription string

A short description of the instance's processor (CPU).

memoryInGbs Double

The total amount of memory available to the instance, in gigabytes.

networkingBandwidthInGbps Double

The networking bandwidth available to the instance, in gigabits per second.

ocpus Double

The total number of OCPUs available to the instance.

processorDescription String

A short description of the instance's processor (CPU).

memoryInGbs number

The total amount of memory available to the instance, in gigabytes.

networkingBandwidthInGbps number

The networking bandwidth available to the instance, in gigabits per second.

ocpus number

The total number of OCPUs available to the instance.

processorDescription string

A short description of the instance's processor (CPU).

memory_in_gbs float

The total amount of memory available to the instance, in gigabytes.

networking_bandwidth_in_gbps float

The networking bandwidth available to the instance, in gigabits per second.

ocpus float

The total number of OCPUs available to the instance.

processor_description str

A short description of the instance's processor (CPU).

memoryInGbs Number

The total amount of memory available to the instance, in gigabytes.

networkingBandwidthInGbps Number

The networking bandwidth available to the instance, in gigabits per second.

ocpus Number

The total number of OCPUs available to the instance.

processorDescription String

A short description of the instance's processor (CPU).

GetContainerInstanceVnic

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

HostnameLabel string
IsPublicIpAssigned bool
NsgIds List<string>
PrivateIp string
SkipSourceDestCheck bool
SubnetId string
VnicId string

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

Display name for the ContainerInstance. Can be renamed.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

HostnameLabel string
IsPublicIpAssigned bool
NsgIds []string
PrivateIp string
SkipSourceDestCheck bool
SubnetId string
VnicId string

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

hostnameLabel String
isPublicIpAssigned Boolean
nsgIds List<String>
privateIp String
skipSourceDestCheck Boolean
subnetId String
vnicId String

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

Display name for the ContainerInstance. Can be renamed.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

hostnameLabel string
isPublicIpAssigned boolean
nsgIds string[]
privateIp string
skipSourceDestCheck boolean
subnetId string
vnicId string

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

Display name for the ContainerInstance. Can be renamed.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

hostname_label str
is_public_ip_assigned bool
nsg_ids Sequence[str]
private_ip str
skip_source_dest_check bool
subnet_id str
vnic_id str

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

Display name for the ContainerInstance. Can be renamed.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

hostnameLabel String
isPublicIpAssigned Boolean
nsgIds List<String>
privateIp String
skipSourceDestCheck Boolean
subnetId String
vnicId String

The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.

GetContainerInstanceVolume

BackingStore string

Volume type that we are using for empty dir where it could be either File Storage or Memory

Configs List<GetContainerInstanceVolumeConfig>

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

Name string

The name of the volume. This has be unique cross single ContainerInstance.

VolumeType string

The type of volume.

BackingStore string

Volume type that we are using for empty dir where it could be either File Storage or Memory

Configs []GetContainerInstanceVolumeConfig

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

Name string

The name of the volume. This has be unique cross single ContainerInstance.

VolumeType string

The type of volume.

backingStore String

Volume type that we are using for empty dir where it could be either File Storage or Memory

configs List<GetContainerInstanceVolumeConfig>

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

name String

The name of the volume. This has be unique cross single ContainerInstance.

volumeType String

The type of volume.

backingStore string

Volume type that we are using for empty dir where it could be either File Storage or Memory

configs GetContainerInstanceVolumeConfig[]

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

name string

The name of the volume. This has be unique cross single ContainerInstance.

volumeType string

The type of volume.

backing_store str

Volume type that we are using for empty dir where it could be either File Storage or Memory

configs GetContainerInstanceVolumeConfig]

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

name str

The name of the volume. This has be unique cross single ContainerInstance.

volume_type str

The type of volume.

backingStore String

Volume type that we are using for empty dir where it could be either File Storage or Memory

configs List<Property Map>

Contains string key value pairs which can be mounted as individual files inside the container. The value needs to be base64 encoded. It is decoded to plain text before the mount.

name String

The name of the volume. This has be unique cross single ContainerInstance.

volumeType String

The type of volume.

GetContainerInstanceVolumeConfig

Data string

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

FileName string

The name of the file. The fileName should be unique across the volume.

Path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

Data string

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

FileName string

The name of the file. The fileName should be unique across the volume.

Path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

data String

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

fileName String

The name of the file. The fileName should be unique across the volume.

path String

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

data string

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

fileName string

The name of the file. The fileName should be unique across the volume.

path string

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

data str

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

file_name str

The name of the file. The fileName should be unique across the volume.

path str

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

data String

The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.

fileName String

The name of the file. The fileName should be unique across the volume.

path String

(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.