1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. ContainerInstance
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

oci.ContainerEngine.ContainerInstance

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

    This resource provides the Container Instance resource in Oracle Cloud Infrastructure Container Instances service.

    Creates a container instance and deploys the containers on it.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testContainerInstance = new Oci.ContainerEngine.ContainerInstance("testContainerInstance", new()
        {
            AvailabilityDomain = @var.Container_instance_availability_domain,
            CompartmentId = @var.Compartment_id,
            Containers = new[]
            {
                new Oci.ContainerEngine.Inputs.ContainerInstanceContainerArgs
                {
                    ImageUrl = @var.Container_instance_containers_image_url,
                    Arguments = @var.Container_instance_containers_arguments,
                    Commands = @var.Container_instance_containers_command,
                    DefinedTags = @var.Container_instance_containers_defined_tags,
                    DisplayName = @var.Container_instance_containers_display_name,
                    EnvironmentVariables = @var.Container_instance_containers_environment_variables,
                    FreeformTags = @var.Container_instance_containers_freeform_tags,
                    HealthChecks = new[]
                    {
                        new Oci.ContainerEngine.Inputs.ContainerInstanceContainerHealthCheckArgs
                        {
                            HealthCheckType = @var.Container_instance_containers_health_checks_health_check_type,
                            Commands = @var.Container_instance_containers_health_checks_command,
                            FailureAction = @var.Container_instance_containers_health_checks_failure_action,
                            FailureThreshold = @var.Container_instance_containers_health_checks_failure_threshold,
                            Headers = new[]
                            {
                                new Oci.ContainerEngine.Inputs.ContainerInstanceContainerHealthCheckHeaderArgs
                                {
                                    Name = @var.Container_instance_containers_health_checks_headers_name,
                                    Value = @var.Container_instance_containers_health_checks_headers_value,
                                },
                            },
                            InitialDelayInSeconds = @var.Container_instance_containers_health_checks_initial_delay_in_seconds,
                            IntervalInSeconds = @var.Container_instance_containers_health_checks_interval_in_seconds,
                            Name = @var.Container_instance_containers_health_checks_name,
                            Path = @var.Container_instance_containers_health_checks_path,
                            Port = @var.Container_instance_containers_health_checks_port,
                            SuccessThreshold = @var.Container_instance_containers_health_checks_success_threshold,
                            TimeoutInSeconds = @var.Container_instance_containers_health_checks_timeout_in_seconds,
                        },
                    },
                    IsResourcePrincipalDisabled = @var.Container_instance_containers_is_resource_principal_disabled,
                    ResourceConfig = new Oci.ContainerEngine.Inputs.ContainerInstanceContainerResourceConfigArgs
                    {
                        MemoryLimitInGbs = @var.Container_instance_containers_resource_config_memory_limit_in_gbs,
                        VcpusLimit = @var.Container_instance_containers_resource_config_vcpus_limit,
                    },
                    SecurityContext = new Oci.ContainerEngine.Inputs.ContainerInstanceContainerSecurityContextArgs
                    {
                        IsNonRootUserCheckEnabled = @var.Container_instance_containers_security_context_is_non_root_user_check_enabled,
                        IsRootFileSystemReadonly = @var.Container_instance_containers_security_context_is_root_file_system_readonly,
                        RunAsGroup = @var.Container_instance_containers_security_context_run_as_group,
                        RunAsUser = @var.Container_instance_containers_security_context_run_as_user,
                        SecurityContextType = @var.Container_instance_containers_security_context_security_context_type,
                    },
                    VolumeMounts = new[]
                    {
                        new Oci.ContainerEngine.Inputs.ContainerInstanceContainerVolumeMountArgs
                        {
                            MountPath = @var.Container_instance_containers_volume_mounts_mount_path,
                            VolumeName = @var.Container_instance_containers_volume_mounts_volume_name,
                            IsReadOnly = @var.Container_instance_containers_volume_mounts_is_read_only,
                            Partition = @var.Container_instance_containers_volume_mounts_partition,
                            SubPath = @var.Container_instance_containers_volume_mounts_sub_path,
                        },
                    },
                    WorkingDirectory = @var.Container_instance_containers_working_directory,
                },
            },
            Shape = @var.Container_instance_shape,
            ShapeConfig = new Oci.ContainerEngine.Inputs.ContainerInstanceShapeConfigArgs
            {
                Ocpus = @var.Container_instance_shape_config_ocpus,
                MemoryInGbs = @var.Container_instance_shape_config_memory_in_gbs,
            },
            Vnics = new[]
            {
                new Oci.ContainerEngine.Inputs.ContainerInstanceVnicArgs
                {
                    SubnetId = oci_core_subnet.Test_subnet.Id,
                    DefinedTags = @var.Container_instance_vnics_defined_tags,
                    DisplayName = @var.Container_instance_vnics_display_name,
                    FreeformTags = @var.Container_instance_vnics_freeform_tags,
                    HostnameLabel = @var.Container_instance_vnics_hostname_label,
                    IsPublicIpAssigned = @var.Container_instance_vnics_is_public_ip_assigned,
                    NsgIds = @var.Container_instance_vnics_nsg_ids,
                    PrivateIp = @var.Container_instance_vnics_private_ip,
                    SkipSourceDestCheck = @var.Container_instance_vnics_skip_source_dest_check,
                },
            },
            ContainerRestartPolicy = @var.Container_instance_container_restart_policy,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            DisplayName = @var.Container_instance_display_name,
            DnsConfig = new Oci.ContainerEngine.Inputs.ContainerInstanceDnsConfigArgs
            {
                Nameservers = @var.Container_instance_dns_config_nameservers,
                Options = @var.Container_instance_dns_config_options,
                Searches = @var.Container_instance_dns_config_searches,
            },
            FaultDomain = @var.Container_instance_fault_domain,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            GracefulShutdownTimeoutInSeconds = @var.Container_instance_graceful_shutdown_timeout_in_seconds,
            ImagePullSecrets = new[]
            {
                new Oci.ContainerEngine.Inputs.ContainerInstanceImagePullSecretArgs
                {
                    RegistryEndpoint = @var.Container_instance_image_pull_secrets_registry_endpoint,
                    SecretType = @var.Container_instance_image_pull_secrets_secret_type,
                    Password = @var.Container_instance_image_pull_secrets_password,
                    SecretId = oci_vault_secret.Test_secret.Id,
                    Username = @var.Container_instance_image_pull_secrets_username,
                },
            },
            Volumes = new[]
            {
                new Oci.ContainerEngine.Inputs.ContainerInstanceVolumeArgs
                {
                    Name = @var.Container_instance_volumes_name,
                    VolumeType = @var.Container_instance_volumes_volume_type,
                    BackingStore = @var.Container_instance_volumes_backing_store,
                    Configs = new[]
                    {
                        new Oci.ContainerEngine.Inputs.ContainerInstanceVolumeConfigArgs
                        {
                            Data = @var.Container_instance_volumes_configs_data,
                            FileName = @var.Container_instance_volumes_configs_file_name,
                            Path = @var.Container_instance_volumes_configs_path,
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerEngine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ContainerEngine.NewContainerInstance(ctx, "testContainerInstance", &ContainerEngine.ContainerInstanceArgs{
    			AvailabilityDomain: pulumi.Any(_var.Container_instance_availability_domain),
    			CompartmentId:      pulumi.Any(_var.Compartment_id),
    			Containers: containerengine.ContainerInstanceContainerArray{
    				&containerengine.ContainerInstanceContainerArgs{
    					ImageUrl:             pulumi.Any(_var.Container_instance_containers_image_url),
    					Arguments:            pulumi.Any(_var.Container_instance_containers_arguments),
    					Commands:             pulumi.Any(_var.Container_instance_containers_command),
    					DefinedTags:          pulumi.Any(_var.Container_instance_containers_defined_tags),
    					DisplayName:          pulumi.Any(_var.Container_instance_containers_display_name),
    					EnvironmentVariables: pulumi.Any(_var.Container_instance_containers_environment_variables),
    					FreeformTags:         pulumi.Any(_var.Container_instance_containers_freeform_tags),
    					HealthChecks: containerengine.ContainerInstanceContainerHealthCheckArray{
    						&containerengine.ContainerInstanceContainerHealthCheckArgs{
    							HealthCheckType:  pulumi.Any(_var.Container_instance_containers_health_checks_health_check_type),
    							Commands:         pulumi.Any(_var.Container_instance_containers_health_checks_command),
    							FailureAction:    pulumi.Any(_var.Container_instance_containers_health_checks_failure_action),
    							FailureThreshold: pulumi.Any(_var.Container_instance_containers_health_checks_failure_threshold),
    							Headers: containerengine.ContainerInstanceContainerHealthCheckHeaderArray{
    								&containerengine.ContainerInstanceContainerHealthCheckHeaderArgs{
    									Name:  pulumi.Any(_var.Container_instance_containers_health_checks_headers_name),
    									Value: pulumi.Any(_var.Container_instance_containers_health_checks_headers_value),
    								},
    							},
    							InitialDelayInSeconds: pulumi.Any(_var.Container_instance_containers_health_checks_initial_delay_in_seconds),
    							IntervalInSeconds:     pulumi.Any(_var.Container_instance_containers_health_checks_interval_in_seconds),
    							Name:                  pulumi.Any(_var.Container_instance_containers_health_checks_name),
    							Path:                  pulumi.Any(_var.Container_instance_containers_health_checks_path),
    							Port:                  pulumi.Any(_var.Container_instance_containers_health_checks_port),
    							SuccessThreshold:      pulumi.Any(_var.Container_instance_containers_health_checks_success_threshold),
    							TimeoutInSeconds:      pulumi.Any(_var.Container_instance_containers_health_checks_timeout_in_seconds),
    						},
    					},
    					IsResourcePrincipalDisabled: pulumi.Any(_var.Container_instance_containers_is_resource_principal_disabled),
    					ResourceConfig: &containerengine.ContainerInstanceContainerResourceConfigArgs{
    						MemoryLimitInGbs: pulumi.Any(_var.Container_instance_containers_resource_config_memory_limit_in_gbs),
    						VcpusLimit:       pulumi.Any(_var.Container_instance_containers_resource_config_vcpus_limit),
    					},
    					SecurityContext: &containerengine.ContainerInstanceContainerSecurityContextArgs{
    						IsNonRootUserCheckEnabled: pulumi.Any(_var.Container_instance_containers_security_context_is_non_root_user_check_enabled),
    						IsRootFileSystemReadonly:  pulumi.Any(_var.Container_instance_containers_security_context_is_root_file_system_readonly),
    						RunAsGroup:                pulumi.Any(_var.Container_instance_containers_security_context_run_as_group),
    						RunAsUser:                 pulumi.Any(_var.Container_instance_containers_security_context_run_as_user),
    						SecurityContextType:       pulumi.Any(_var.Container_instance_containers_security_context_security_context_type),
    					},
    					VolumeMounts: containerengine.ContainerInstanceContainerVolumeMountArray{
    						&containerengine.ContainerInstanceContainerVolumeMountArgs{
    							MountPath:  pulumi.Any(_var.Container_instance_containers_volume_mounts_mount_path),
    							VolumeName: pulumi.Any(_var.Container_instance_containers_volume_mounts_volume_name),
    							IsReadOnly: pulumi.Any(_var.Container_instance_containers_volume_mounts_is_read_only),
    							Partition:  pulumi.Any(_var.Container_instance_containers_volume_mounts_partition),
    							SubPath:    pulumi.Any(_var.Container_instance_containers_volume_mounts_sub_path),
    						},
    					},
    					WorkingDirectory: pulumi.Any(_var.Container_instance_containers_working_directory),
    				},
    			},
    			Shape: pulumi.Any(_var.Container_instance_shape),
    			ShapeConfig: &containerengine.ContainerInstanceShapeConfigArgs{
    				Ocpus:       pulumi.Any(_var.Container_instance_shape_config_ocpus),
    				MemoryInGbs: pulumi.Any(_var.Container_instance_shape_config_memory_in_gbs),
    			},
    			Vnics: containerengine.ContainerInstanceVnicArray{
    				&containerengine.ContainerInstanceVnicArgs{
    					SubnetId:            pulumi.Any(oci_core_subnet.Test_subnet.Id),
    					DefinedTags:         pulumi.Any(_var.Container_instance_vnics_defined_tags),
    					DisplayName:         pulumi.Any(_var.Container_instance_vnics_display_name),
    					FreeformTags:        pulumi.Any(_var.Container_instance_vnics_freeform_tags),
    					HostnameLabel:       pulumi.Any(_var.Container_instance_vnics_hostname_label),
    					IsPublicIpAssigned:  pulumi.Any(_var.Container_instance_vnics_is_public_ip_assigned),
    					NsgIds:              pulumi.Any(_var.Container_instance_vnics_nsg_ids),
    					PrivateIp:           pulumi.Any(_var.Container_instance_vnics_private_ip),
    					SkipSourceDestCheck: pulumi.Any(_var.Container_instance_vnics_skip_source_dest_check),
    				},
    			},
    			ContainerRestartPolicy: pulumi.Any(_var.Container_instance_container_restart_policy),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			DisplayName: pulumi.Any(_var.Container_instance_display_name),
    			DnsConfig: &containerengine.ContainerInstanceDnsConfigArgs{
    				Nameservers: pulumi.Any(_var.Container_instance_dns_config_nameservers),
    				Options:     pulumi.Any(_var.Container_instance_dns_config_options),
    				Searches:    pulumi.Any(_var.Container_instance_dns_config_searches),
    			},
    			FaultDomain: pulumi.Any(_var.Container_instance_fault_domain),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			GracefulShutdownTimeoutInSeconds: pulumi.Any(_var.Container_instance_graceful_shutdown_timeout_in_seconds),
    			ImagePullSecrets: containerengine.ContainerInstanceImagePullSecretArray{
    				&containerengine.ContainerInstanceImagePullSecretArgs{
    					RegistryEndpoint: pulumi.Any(_var.Container_instance_image_pull_secrets_registry_endpoint),
    					SecretType:       pulumi.Any(_var.Container_instance_image_pull_secrets_secret_type),
    					Password:         pulumi.Any(_var.Container_instance_image_pull_secrets_password),
    					SecretId:         pulumi.Any(oci_vault_secret.Test_secret.Id),
    					Username:         pulumi.Any(_var.Container_instance_image_pull_secrets_username),
    				},
    			},
    			Volumes: containerengine.ContainerInstanceVolumeArray{
    				&containerengine.ContainerInstanceVolumeArgs{
    					Name:         pulumi.Any(_var.Container_instance_volumes_name),
    					VolumeType:   pulumi.Any(_var.Container_instance_volumes_volume_type),
    					BackingStore: pulumi.Any(_var.Container_instance_volumes_backing_store),
    					Configs: containerengine.ContainerInstanceVolumeConfigArray{
    						&containerengine.ContainerInstanceVolumeConfigArgs{
    							Data:     pulumi.Any(_var.Container_instance_volumes_configs_data),
    							FileName: pulumi.Any(_var.Container_instance_volumes_configs_file_name),
    							Path:     pulumi.Any(_var.Container_instance_volumes_configs_path),
    						},
    					},
    				},
    			},
    		})
    		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.ContainerEngine.ContainerInstance;
    import com.pulumi.oci.ContainerEngine.ContainerInstanceArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceContainerArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceContainerResourceConfigArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceContainerSecurityContextArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceShapeConfigArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceVnicArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceDnsConfigArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceImagePullSecretArgs;
    import com.pulumi.oci.ContainerEngine.inputs.ContainerInstanceVolumeArgs;
    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 testContainerInstance = new ContainerInstance("testContainerInstance", ContainerInstanceArgs.builder()        
                .availabilityDomain(var_.container_instance_availability_domain())
                .compartmentId(var_.compartment_id())
                .containers(ContainerInstanceContainerArgs.builder()
                    .imageUrl(var_.container_instance_containers_image_url())
                    .arguments(var_.container_instance_containers_arguments())
                    .commands(var_.container_instance_containers_command())
                    .definedTags(var_.container_instance_containers_defined_tags())
                    .displayName(var_.container_instance_containers_display_name())
                    .environmentVariables(var_.container_instance_containers_environment_variables())
                    .freeformTags(var_.container_instance_containers_freeform_tags())
                    .healthChecks(ContainerInstanceContainerHealthCheckArgs.builder()
                        .healthCheckType(var_.container_instance_containers_health_checks_health_check_type())
                        .commands(var_.container_instance_containers_health_checks_command())
                        .failureAction(var_.container_instance_containers_health_checks_failure_action())
                        .failureThreshold(var_.container_instance_containers_health_checks_failure_threshold())
                        .headers(ContainerInstanceContainerHealthCheckHeaderArgs.builder()
                            .name(var_.container_instance_containers_health_checks_headers_name())
                            .value(var_.container_instance_containers_health_checks_headers_value())
                            .build())
                        .initialDelayInSeconds(var_.container_instance_containers_health_checks_initial_delay_in_seconds())
                        .intervalInSeconds(var_.container_instance_containers_health_checks_interval_in_seconds())
                        .name(var_.container_instance_containers_health_checks_name())
                        .path(var_.container_instance_containers_health_checks_path())
                        .port(var_.container_instance_containers_health_checks_port())
                        .successThreshold(var_.container_instance_containers_health_checks_success_threshold())
                        .timeoutInSeconds(var_.container_instance_containers_health_checks_timeout_in_seconds())
                        .build())
                    .isResourcePrincipalDisabled(var_.container_instance_containers_is_resource_principal_disabled())
                    .resourceConfig(ContainerInstanceContainerResourceConfigArgs.builder()
                        .memoryLimitInGbs(var_.container_instance_containers_resource_config_memory_limit_in_gbs())
                        .vcpusLimit(var_.container_instance_containers_resource_config_vcpus_limit())
                        .build())
                    .securityContext(ContainerInstanceContainerSecurityContextArgs.builder()
                        .isNonRootUserCheckEnabled(var_.container_instance_containers_security_context_is_non_root_user_check_enabled())
                        .isRootFileSystemReadonly(var_.container_instance_containers_security_context_is_root_file_system_readonly())
                        .runAsGroup(var_.container_instance_containers_security_context_run_as_group())
                        .runAsUser(var_.container_instance_containers_security_context_run_as_user())
                        .securityContextType(var_.container_instance_containers_security_context_security_context_type())
                        .build())
                    .volumeMounts(ContainerInstanceContainerVolumeMountArgs.builder()
                        .mountPath(var_.container_instance_containers_volume_mounts_mount_path())
                        .volumeName(var_.container_instance_containers_volume_mounts_volume_name())
                        .isReadOnly(var_.container_instance_containers_volume_mounts_is_read_only())
                        .partition(var_.container_instance_containers_volume_mounts_partition())
                        .subPath(var_.container_instance_containers_volume_mounts_sub_path())
                        .build())
                    .workingDirectory(var_.container_instance_containers_working_directory())
                    .build())
                .shape(var_.container_instance_shape())
                .shapeConfig(ContainerInstanceShapeConfigArgs.builder()
                    .ocpus(var_.container_instance_shape_config_ocpus())
                    .memoryInGbs(var_.container_instance_shape_config_memory_in_gbs())
                    .build())
                .vnics(ContainerInstanceVnicArgs.builder()
                    .subnetId(oci_core_subnet.test_subnet().id())
                    .definedTags(var_.container_instance_vnics_defined_tags())
                    .displayName(var_.container_instance_vnics_display_name())
                    .freeformTags(var_.container_instance_vnics_freeform_tags())
                    .hostnameLabel(var_.container_instance_vnics_hostname_label())
                    .isPublicIpAssigned(var_.container_instance_vnics_is_public_ip_assigned())
                    .nsgIds(var_.container_instance_vnics_nsg_ids())
                    .privateIp(var_.container_instance_vnics_private_ip())
                    .skipSourceDestCheck(var_.container_instance_vnics_skip_source_dest_check())
                    .build())
                .containerRestartPolicy(var_.container_instance_container_restart_policy())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .displayName(var_.container_instance_display_name())
                .dnsConfig(ContainerInstanceDnsConfigArgs.builder()
                    .nameservers(var_.container_instance_dns_config_nameservers())
                    .options(var_.container_instance_dns_config_options())
                    .searches(var_.container_instance_dns_config_searches())
                    .build())
                .faultDomain(var_.container_instance_fault_domain())
                .freeformTags(Map.of("bar-key", "value"))
                .gracefulShutdownTimeoutInSeconds(var_.container_instance_graceful_shutdown_timeout_in_seconds())
                .imagePullSecrets(ContainerInstanceImagePullSecretArgs.builder()
                    .registryEndpoint(var_.container_instance_image_pull_secrets_registry_endpoint())
                    .secretType(var_.container_instance_image_pull_secrets_secret_type())
                    .password(var_.container_instance_image_pull_secrets_password())
                    .secretId(oci_vault_secret.test_secret().id())
                    .username(var_.container_instance_image_pull_secrets_username())
                    .build())
                .volumes(ContainerInstanceVolumeArgs.builder()
                    .name(var_.container_instance_volumes_name())
                    .volumeType(var_.container_instance_volumes_volume_type())
                    .backingStore(var_.container_instance_volumes_backing_store())
                    .configs(ContainerInstanceVolumeConfigArgs.builder()
                        .data(var_.container_instance_volumes_configs_data())
                        .fileName(var_.container_instance_volumes_configs_file_name())
                        .path(var_.container_instance_volumes_configs_path())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_container_instance = oci.container_engine.ContainerInstance("testContainerInstance",
        availability_domain=var["container_instance_availability_domain"],
        compartment_id=var["compartment_id"],
        containers=[oci.container_engine.ContainerInstanceContainerArgs(
            image_url=var["container_instance_containers_image_url"],
            arguments=var["container_instance_containers_arguments"],
            commands=var["container_instance_containers_command"],
            defined_tags=var["container_instance_containers_defined_tags"],
            display_name=var["container_instance_containers_display_name"],
            environment_variables=var["container_instance_containers_environment_variables"],
            freeform_tags=var["container_instance_containers_freeform_tags"],
            health_checks=[oci.container_engine.ContainerInstanceContainerHealthCheckArgs(
                health_check_type=var["container_instance_containers_health_checks_health_check_type"],
                commands=var["container_instance_containers_health_checks_command"],
                failure_action=var["container_instance_containers_health_checks_failure_action"],
                failure_threshold=var["container_instance_containers_health_checks_failure_threshold"],
                headers=[oci.container_engine.ContainerInstanceContainerHealthCheckHeaderArgs(
                    name=var["container_instance_containers_health_checks_headers_name"],
                    value=var["container_instance_containers_health_checks_headers_value"],
                )],
                initial_delay_in_seconds=var["container_instance_containers_health_checks_initial_delay_in_seconds"],
                interval_in_seconds=var["container_instance_containers_health_checks_interval_in_seconds"],
                name=var["container_instance_containers_health_checks_name"],
                path=var["container_instance_containers_health_checks_path"],
                port=var["container_instance_containers_health_checks_port"],
                success_threshold=var["container_instance_containers_health_checks_success_threshold"],
                timeout_in_seconds=var["container_instance_containers_health_checks_timeout_in_seconds"],
            )],
            is_resource_principal_disabled=var["container_instance_containers_is_resource_principal_disabled"],
            resource_config=oci.container_engine.ContainerInstanceContainerResourceConfigArgs(
                memory_limit_in_gbs=var["container_instance_containers_resource_config_memory_limit_in_gbs"],
                vcpus_limit=var["container_instance_containers_resource_config_vcpus_limit"],
            ),
            security_context=oci.container_engine.ContainerInstanceContainerSecurityContextArgs(
                is_non_root_user_check_enabled=var["container_instance_containers_security_context_is_non_root_user_check_enabled"],
                is_root_file_system_readonly=var["container_instance_containers_security_context_is_root_file_system_readonly"],
                run_as_group=var["container_instance_containers_security_context_run_as_group"],
                run_as_user=var["container_instance_containers_security_context_run_as_user"],
                security_context_type=var["container_instance_containers_security_context_security_context_type"],
            ),
            volume_mounts=[oci.container_engine.ContainerInstanceContainerVolumeMountArgs(
                mount_path=var["container_instance_containers_volume_mounts_mount_path"],
                volume_name=var["container_instance_containers_volume_mounts_volume_name"],
                is_read_only=var["container_instance_containers_volume_mounts_is_read_only"],
                partition=var["container_instance_containers_volume_mounts_partition"],
                sub_path=var["container_instance_containers_volume_mounts_sub_path"],
            )],
            working_directory=var["container_instance_containers_working_directory"],
        )],
        shape=var["container_instance_shape"],
        shape_config=oci.container_engine.ContainerInstanceShapeConfigArgs(
            ocpus=var["container_instance_shape_config_ocpus"],
            memory_in_gbs=var["container_instance_shape_config_memory_in_gbs"],
        ),
        vnics=[oci.container_engine.ContainerInstanceVnicArgs(
            subnet_id=oci_core_subnet["test_subnet"]["id"],
            defined_tags=var["container_instance_vnics_defined_tags"],
            display_name=var["container_instance_vnics_display_name"],
            freeform_tags=var["container_instance_vnics_freeform_tags"],
            hostname_label=var["container_instance_vnics_hostname_label"],
            is_public_ip_assigned=var["container_instance_vnics_is_public_ip_assigned"],
            nsg_ids=var["container_instance_vnics_nsg_ids"],
            private_ip=var["container_instance_vnics_private_ip"],
            skip_source_dest_check=var["container_instance_vnics_skip_source_dest_check"],
        )],
        container_restart_policy=var["container_instance_container_restart_policy"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        display_name=var["container_instance_display_name"],
        dns_config=oci.container_engine.ContainerInstanceDnsConfigArgs(
            nameservers=var["container_instance_dns_config_nameservers"],
            options=var["container_instance_dns_config_options"],
            searches=var["container_instance_dns_config_searches"],
        ),
        fault_domain=var["container_instance_fault_domain"],
        freeform_tags={
            "bar-key": "value",
        },
        graceful_shutdown_timeout_in_seconds=var["container_instance_graceful_shutdown_timeout_in_seconds"],
        image_pull_secrets=[oci.container_engine.ContainerInstanceImagePullSecretArgs(
            registry_endpoint=var["container_instance_image_pull_secrets_registry_endpoint"],
            secret_type=var["container_instance_image_pull_secrets_secret_type"],
            password=var["container_instance_image_pull_secrets_password"],
            secret_id=oci_vault_secret["test_secret"]["id"],
            username=var["container_instance_image_pull_secrets_username"],
        )],
        volumes=[oci.container_engine.ContainerInstanceVolumeArgs(
            name=var["container_instance_volumes_name"],
            volume_type=var["container_instance_volumes_volume_type"],
            backing_store=var["container_instance_volumes_backing_store"],
            configs=[oci.container_engine.ContainerInstanceVolumeConfigArgs(
                data=var["container_instance_volumes_configs_data"],
                file_name=var["container_instance_volumes_configs_file_name"],
                path=var["container_instance_volumes_configs_path"],
            )],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testContainerInstance = new oci.containerengine.ContainerInstance("testContainerInstance", {
        availabilityDomain: _var.container_instance_availability_domain,
        compartmentId: _var.compartment_id,
        containers: [{
            imageUrl: _var.container_instance_containers_image_url,
            arguments: _var.container_instance_containers_arguments,
            commands: _var.container_instance_containers_command,
            definedTags: _var.container_instance_containers_defined_tags,
            displayName: _var.container_instance_containers_display_name,
            environmentVariables: _var.container_instance_containers_environment_variables,
            freeformTags: _var.container_instance_containers_freeform_tags,
            healthChecks: [{
                healthCheckType: _var.container_instance_containers_health_checks_health_check_type,
                commands: _var.container_instance_containers_health_checks_command,
                failureAction: _var.container_instance_containers_health_checks_failure_action,
                failureThreshold: _var.container_instance_containers_health_checks_failure_threshold,
                headers: [{
                    name: _var.container_instance_containers_health_checks_headers_name,
                    value: _var.container_instance_containers_health_checks_headers_value,
                }],
                initialDelayInSeconds: _var.container_instance_containers_health_checks_initial_delay_in_seconds,
                intervalInSeconds: _var.container_instance_containers_health_checks_interval_in_seconds,
                name: _var.container_instance_containers_health_checks_name,
                path: _var.container_instance_containers_health_checks_path,
                port: _var.container_instance_containers_health_checks_port,
                successThreshold: _var.container_instance_containers_health_checks_success_threshold,
                timeoutInSeconds: _var.container_instance_containers_health_checks_timeout_in_seconds,
            }],
            isResourcePrincipalDisabled: _var.container_instance_containers_is_resource_principal_disabled,
            resourceConfig: {
                memoryLimitInGbs: _var.container_instance_containers_resource_config_memory_limit_in_gbs,
                vcpusLimit: _var.container_instance_containers_resource_config_vcpus_limit,
            },
            securityContext: {
                isNonRootUserCheckEnabled: _var.container_instance_containers_security_context_is_non_root_user_check_enabled,
                isRootFileSystemReadonly: _var.container_instance_containers_security_context_is_root_file_system_readonly,
                runAsGroup: _var.container_instance_containers_security_context_run_as_group,
                runAsUser: _var.container_instance_containers_security_context_run_as_user,
                securityContextType: _var.container_instance_containers_security_context_security_context_type,
            },
            volumeMounts: [{
                mountPath: _var.container_instance_containers_volume_mounts_mount_path,
                volumeName: _var.container_instance_containers_volume_mounts_volume_name,
                isReadOnly: _var.container_instance_containers_volume_mounts_is_read_only,
                partition: _var.container_instance_containers_volume_mounts_partition,
                subPath: _var.container_instance_containers_volume_mounts_sub_path,
            }],
            workingDirectory: _var.container_instance_containers_working_directory,
        }],
        shape: _var.container_instance_shape,
        shapeConfig: {
            ocpus: _var.container_instance_shape_config_ocpus,
            memoryInGbs: _var.container_instance_shape_config_memory_in_gbs,
        },
        vnics: [{
            subnetId: oci_core_subnet.test_subnet.id,
            definedTags: _var.container_instance_vnics_defined_tags,
            displayName: _var.container_instance_vnics_display_name,
            freeformTags: _var.container_instance_vnics_freeform_tags,
            hostnameLabel: _var.container_instance_vnics_hostname_label,
            isPublicIpAssigned: _var.container_instance_vnics_is_public_ip_assigned,
            nsgIds: _var.container_instance_vnics_nsg_ids,
            privateIp: _var.container_instance_vnics_private_ip,
            skipSourceDestCheck: _var.container_instance_vnics_skip_source_dest_check,
        }],
        containerRestartPolicy: _var.container_instance_container_restart_policy,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        displayName: _var.container_instance_display_name,
        dnsConfig: {
            nameservers: _var.container_instance_dns_config_nameservers,
            options: _var.container_instance_dns_config_options,
            searches: _var.container_instance_dns_config_searches,
        },
        faultDomain: _var.container_instance_fault_domain,
        freeformTags: {
            "bar-key": "value",
        },
        gracefulShutdownTimeoutInSeconds: _var.container_instance_graceful_shutdown_timeout_in_seconds,
        imagePullSecrets: [{
            registryEndpoint: _var.container_instance_image_pull_secrets_registry_endpoint,
            secretType: _var.container_instance_image_pull_secrets_secret_type,
            password: _var.container_instance_image_pull_secrets_password,
            secretId: oci_vault_secret.test_secret.id,
            username: _var.container_instance_image_pull_secrets_username,
        }],
        volumes: [{
            name: _var.container_instance_volumes_name,
            volumeType: _var.container_instance_volumes_volume_type,
            backingStore: _var.container_instance_volumes_backing_store,
            configs: [{
                data: _var.container_instance_volumes_configs_data,
                fileName: _var.container_instance_volumes_configs_file_name,
                path: _var.container_instance_volumes_configs_path,
            }],
        }],
    });
    
    resources:
      testContainerInstance:
        type: oci:ContainerEngine:ContainerInstance
        properties:
          #Required
          availabilityDomain: ${var.container_instance_availability_domain}
          compartmentId: ${var.compartment_id}
          containers:
            - imageUrl: ${var.container_instance_containers_image_url}
              arguments: ${var.container_instance_containers_arguments}
              commands: ${var.container_instance_containers_command}
              definedTags: ${var.container_instance_containers_defined_tags}
              displayName: ${var.container_instance_containers_display_name}
              environmentVariables: ${var.container_instance_containers_environment_variables}
              freeformTags: ${var.container_instance_containers_freeform_tags}
              healthChecks:
                - healthCheckType: ${var.container_instance_containers_health_checks_health_check_type}
                  commands: ${var.container_instance_containers_health_checks_command}
                  failureAction: ${var.container_instance_containers_health_checks_failure_action}
                  failureThreshold: ${var.container_instance_containers_health_checks_failure_threshold}
                  headers:
                    - name: ${var.container_instance_containers_health_checks_headers_name}
                      value: ${var.container_instance_containers_health_checks_headers_value}
                  initialDelayInSeconds: ${var.container_instance_containers_health_checks_initial_delay_in_seconds}
                  intervalInSeconds: ${var.container_instance_containers_health_checks_interval_in_seconds}
                  name: ${var.container_instance_containers_health_checks_name}
                  path: ${var.container_instance_containers_health_checks_path}
                  port: ${var.container_instance_containers_health_checks_port}
                  successThreshold: ${var.container_instance_containers_health_checks_success_threshold}
                  timeoutInSeconds: ${var.container_instance_containers_health_checks_timeout_in_seconds}
              isResourcePrincipalDisabled: ${var.container_instance_containers_is_resource_principal_disabled}
              resourceConfig:
                memoryLimitInGbs: ${var.container_instance_containers_resource_config_memory_limit_in_gbs}
                vcpusLimit: ${var.container_instance_containers_resource_config_vcpus_limit}
              securityContext:
                isNonRootUserCheckEnabled: ${var.container_instance_containers_security_context_is_non_root_user_check_enabled}
                isRootFileSystemReadonly: ${var.container_instance_containers_security_context_is_root_file_system_readonly}
                runAsGroup: ${var.container_instance_containers_security_context_run_as_group}
                runAsUser: ${var.container_instance_containers_security_context_run_as_user}
                securityContextType: ${var.container_instance_containers_security_context_security_context_type}
              volumeMounts:
                - mountPath: ${var.container_instance_containers_volume_mounts_mount_path}
                  volumeName: ${var.container_instance_containers_volume_mounts_volume_name}
                  isReadOnly: ${var.container_instance_containers_volume_mounts_is_read_only}
                  partition: ${var.container_instance_containers_volume_mounts_partition}
                  subPath: ${var.container_instance_containers_volume_mounts_sub_path}
              workingDirectory: ${var.container_instance_containers_working_directory}
          shape: ${var.container_instance_shape}
          shapeConfig:
            ocpus: ${var.container_instance_shape_config_ocpus}
            memoryInGbs: ${var.container_instance_shape_config_memory_in_gbs}
          vnics:
            - subnetId: ${oci_core_subnet.test_subnet.id}
              definedTags: ${var.container_instance_vnics_defined_tags}
              displayName: ${var.container_instance_vnics_display_name}
              freeformTags: ${var.container_instance_vnics_freeform_tags}
              hostnameLabel: ${var.container_instance_vnics_hostname_label}
              isPublicIpAssigned: ${var.container_instance_vnics_is_public_ip_assigned}
              nsgIds: ${var.container_instance_vnics_nsg_ids}
              privateIp: ${var.container_instance_vnics_private_ip}
              skipSourceDestCheck: ${var.container_instance_vnics_skip_source_dest_check}
          #Optional
          containerRestartPolicy: ${var.container_instance_container_restart_policy}
          definedTags:
            foo-namespace.bar-key: value
          displayName: ${var.container_instance_display_name}
          dnsConfig:
            nameservers: ${var.container_instance_dns_config_nameservers}
            options: ${var.container_instance_dns_config_options}
            searches: ${var.container_instance_dns_config_searches}
          faultDomain: ${var.container_instance_fault_domain}
          freeformTags:
            bar-key: value
          gracefulShutdownTimeoutInSeconds: ${var.container_instance_graceful_shutdown_timeout_in_seconds}
          imagePullSecrets:
            - registryEndpoint: ${var.container_instance_image_pull_secrets_registry_endpoint}
              secretType: ${var.container_instance_image_pull_secrets_secret_type}
              password: ${var.container_instance_image_pull_secrets_password}
              secretId: ${oci_vault_secret.test_secret.id}
              username: ${var.container_instance_image_pull_secrets_username}
          volumes:
            - name: ${var.container_instance_volumes_name}
              volumeType: ${var.container_instance_volumes_volume_type}
              backingStore: ${var.container_instance_volumes_backing_store}
              configs:
                - data: ${var.container_instance_volumes_configs_data}
                  fileName: ${var.container_instance_volumes_configs_file_name}
                  path: ${var.container_instance_volumes_configs_path}
    

    Create ContainerInstance Resource

    new ContainerInstance(name: string, args: ContainerInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerInstance(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          availability_domain: Optional[str] = None,
                          compartment_id: Optional[str] = None,
                          container_restart_policy: Optional[str] = None,
                          containers: Optional[Sequence[_containerengine.ContainerInstanceContainerArgs]] = None,
                          defined_tags: Optional[Mapping[str, Any]] = None,
                          display_name: Optional[str] = None,
                          dns_config: Optional[_containerengine.ContainerInstanceDnsConfigArgs] = None,
                          fault_domain: Optional[str] = None,
                          freeform_tags: Optional[Mapping[str, Any]] = None,
                          graceful_shutdown_timeout_in_seconds: Optional[str] = None,
                          image_pull_secrets: Optional[Sequence[_containerengine.ContainerInstanceImagePullSecretArgs]] = None,
                          shape: Optional[str] = None,
                          shape_config: Optional[_containerengine.ContainerInstanceShapeConfigArgs] = None,
                          state: Optional[str] = None,
                          vnics: Optional[Sequence[_containerengine.ContainerInstanceVnicArgs]] = None,
                          volumes: Optional[Sequence[_containerengine.ContainerInstanceVolumeArgs]] = None)
    @overload
    def ContainerInstance(resource_name: str,
                          args: ContainerInstanceArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewContainerInstance(ctx *Context, name string, args ContainerInstanceArgs, opts ...ResourceOption) (*ContainerInstance, error)
    public ContainerInstance(string name, ContainerInstanceArgs args, CustomResourceOptions? opts = null)
    public ContainerInstance(String name, ContainerInstanceArgs args)
    public ContainerInstance(String name, ContainerInstanceArgs args, CustomResourceOptions options)
    
    type: oci:ContainerEngine:ContainerInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ContainerInstanceArgs
    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 ContainerInstanceArgs
    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 ContainerInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ContainerInstance 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 ContainerInstance resource accepts the following input properties:

    AvailabilityDomain string

    The availability domain where the container instance runs.

    CompartmentId string

    (Updatable) The compartment OCID.

    Containers List<ContainerInstanceContainer>

    The containers to create on this container instance.

    Shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    ShapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    Vnics List<ContainerInstanceVnic>

    The networks available to containers on this container instance.

    ContainerRestartPolicy string

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    DnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    FaultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    ImagePullSecrets List<ContainerInstanceImagePullSecret>

    The image pulls secrets so you can access private registry to pull container images.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Volumes List<ContainerInstanceVolume>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    AvailabilityDomain string

    The availability domain where the container instance runs.

    CompartmentId string

    (Updatable) The compartment OCID.

    Containers []ContainerInstanceContainerArgs

    The containers to create on this container instance.

    Shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    ShapeConfig ContainerInstanceShapeConfigArgs

    The size and amount of resources available to the container instance.

    Vnics []ContainerInstanceVnicArgs

    The networks available to containers on this container instance.

    ContainerRestartPolicy string

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    DnsConfig ContainerInstanceDnsConfigArgs

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    FaultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    ImagePullSecrets []ContainerInstanceImagePullSecretArgs

    The image pulls secrets so you can access private registry to pull container images.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Volumes []ContainerInstanceVolumeArgs

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain String

    The availability domain where the container instance runs.

    compartmentId String

    (Updatable) The compartment OCID.

    containers List<ContainerInstanceContainer>

    The containers to create on this container instance.

    shape String

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    vnics List<ContainerInstanceVnic>

    The networks available to containers on this container instance.

    containerRestartPolicy String

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain String

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets List<ContainerInstanceImagePullSecret>

    The image pulls secrets so you can access private registry to pull container images.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    volumes List<ContainerInstanceVolume>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain string

    The availability domain where the container instance runs.

    compartmentId string

    (Updatable) The compartment OCID.

    containers ContainerInstanceContainer[]

    The containers to create on this container instance.

    shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    vnics ContainerInstanceVnic[]

    The networks available to containers on this container instance.

    containerRestartPolicy string

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets ContainerInstanceImagePullSecret[]

    The image pulls secrets so you can access private registry to pull container images.

    state string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    volumes ContainerInstanceVolume[]

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availability_domain str

    The availability domain where the container instance runs.

    compartment_id str

    (Updatable) The compartment OCID.

    containers ContainerInstanceContainerArgs]

    The containers to create on this container instance.

    shape str

    The shape of the container instance. The shape determines the resources available to the container instance.

    shape_config ContainerInstanceShapeConfigArgs

    The size and amount of resources available to the container instance.

    vnics ContainerInstanceVnicArgs]

    The networks available to containers on this container instance.

    container_restart_policy str

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dns_config ContainerInstanceDnsConfigArgs

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    fault_domain str

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    image_pull_secrets ContainerInstanceImagePullSecretArgs]

    The image pulls secrets so you can access private registry to pull container images.

    state str

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    volumes ContainerInstanceVolumeArgs]

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain String

    The availability domain where the container instance runs.

    compartmentId String

    (Updatable) The compartment OCID.

    containers List<Property Map>

    The containers to create on this container instance.

    shape String

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig Property Map

    The size and amount of resources available to the container instance.

    vnics List<Property Map>

    The networks available to containers on this container instance.

    containerRestartPolicy String

    Container restart policy

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig Property Map

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain String

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets List<Property Map>

    The image pulls secrets so you can access private registry to pull container images.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    volumes List<Property Map>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerInstance resource produces the following output properties:

    ContainerCount int

    The number of containers on the container instance.

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    VolumeCount int

    The number of volumes that are attached to the container instance.

    ContainerCount int

    The number of containers on the container instance.

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    VolumeCount int

    The number of volumes that are attached to the container instance.

    containerCount Integer

    The number of containers on the container instance.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeCount Integer

    The number of volumes that are attached to the container instance.

    containerCount number

    The number of containers on the container instance.

    id string

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeCount number

    The number of volumes that are attached to the container instance.

    container_count int

    The number of containers on the container instance.

    id str

    The provider-assigned unique ID for this managed resource.

    lifecycle_details str

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    time_updated str

    The time the container instance was updated, in the format defined by RFC 3339.

    volume_count int

    The number of volumes that are attached to the container instance.

    containerCount Number

    The number of containers on the container instance.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeCount Number

    The number of volumes that are attached to the container instance.

    Look up Existing ContainerInstance Resource

    Get an existing ContainerInstance 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?: ContainerInstanceState, opts?: CustomResourceOptions): ContainerInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            container_count: Optional[int] = None,
            container_restart_policy: Optional[str] = None,
            containers: Optional[Sequence[_containerengine.ContainerInstanceContainerArgs]] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            dns_config: Optional[_containerengine.ContainerInstanceDnsConfigArgs] = None,
            fault_domain: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            graceful_shutdown_timeout_in_seconds: Optional[str] = None,
            image_pull_secrets: Optional[Sequence[_containerengine.ContainerInstanceImagePullSecretArgs]] = None,
            lifecycle_details: Optional[str] = None,
            shape: Optional[str] = None,
            shape_config: Optional[_containerengine.ContainerInstanceShapeConfigArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            vnics: Optional[Sequence[_containerengine.ContainerInstanceVnicArgs]] = None,
            volume_count: Optional[int] = None,
            volumes: Optional[Sequence[_containerengine.ContainerInstanceVolumeArgs]] = None) -> ContainerInstance
    func GetContainerInstance(ctx *Context, name string, id IDInput, state *ContainerInstanceState, opts ...ResourceOption) (*ContainerInstance, error)
    public static ContainerInstance Get(string name, Input<string> id, ContainerInstanceState? state, CustomResourceOptions? opts = null)
    public static ContainerInstance get(String name, Output<String> id, ContainerInstanceState 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:
    AvailabilityDomain string

    The availability domain where the container instance runs.

    CompartmentId string

    (Updatable) The compartment OCID.

    ContainerCount int

    The number of containers on the container instance.

    ContainerRestartPolicy string

    Container restart policy

    Containers List<ContainerInstanceContainer>

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    DnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    FaultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    ImagePullSecrets List<ContainerInstanceImagePullSecret>

    The image pulls secrets so you can access private registry to pull container images.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    Shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    ShapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    Vnics List<ContainerInstanceVnic>

    The networks available to containers on this container instance.

    VolumeCount int

    The number of volumes that are attached to the container instance.

    Volumes List<ContainerInstanceVolume>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    AvailabilityDomain string

    The availability domain where the container instance runs.

    CompartmentId string

    (Updatable) The compartment OCID.

    ContainerCount int

    The number of containers on the container instance.

    ContainerRestartPolicy string

    Container restart policy

    Containers []ContainerInstanceContainerArgs

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    DnsConfig ContainerInstanceDnsConfigArgs

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    FaultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    ImagePullSecrets []ContainerInstanceImagePullSecretArgs

    The image pulls secrets so you can access private registry to pull container images.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    Shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    ShapeConfig ContainerInstanceShapeConfigArgs

    The size and amount of resources available to the container instance.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    Vnics []ContainerInstanceVnicArgs

    The networks available to containers on this container instance.

    VolumeCount int

    The number of volumes that are attached to the container instance.

    Volumes []ContainerInstanceVolumeArgs

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain String

    The availability domain where the container instance runs.

    compartmentId String

    (Updatable) The compartment OCID.

    containerCount Integer

    The number of containers on the container instance.

    containerRestartPolicy String

    Container restart policy

    containers List<ContainerInstanceContainer>

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain String

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets List<ContainerInstanceImagePullSecret>

    The image pulls secrets so you can access private registry to pull container images.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    shape String

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    vnics List<ContainerInstanceVnic>

    The networks available to containers on this container instance.

    volumeCount Integer

    The number of volumes that are attached to the container instance.

    volumes List<ContainerInstanceVolume>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain string

    The availability domain where the container instance runs.

    compartmentId string

    (Updatable) The compartment OCID.

    containerCount number

    The number of containers on the container instance.

    containerRestartPolicy string

    Container restart policy

    containers ContainerInstanceContainer[]

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig ContainerInstanceDnsConfig

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain string

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets ContainerInstanceImagePullSecret[]

    The image pulls secrets so you can access private registry to pull container images.

    lifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    shape string

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig ContainerInstanceShapeConfig

    The size and amount of resources available to the container instance.

    state string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    vnics ContainerInstanceVnic[]

    The networks available to containers on this container instance.

    volumeCount number

    The number of volumes that are attached to the container instance.

    volumes ContainerInstanceVolume[]

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availability_domain str

    The availability domain where the container instance runs.

    compartment_id str

    (Updatable) The compartment OCID.

    container_count int

    The number of containers on the container instance.

    container_restart_policy str

    Container restart policy

    containers ContainerInstanceContainerArgs]

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dns_config ContainerInstanceDnsConfigArgs

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    fault_domain str

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    image_pull_secrets ContainerInstanceImagePullSecretArgs]

    The image pulls secrets so you can access private registry to pull container images.

    lifecycle_details str

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    shape str

    The shape of the container instance. The shape determines the resources available to the container instance.

    shape_config ContainerInstanceShapeConfigArgs

    The size and amount of resources available to the container instance.

    state str

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    time_updated str

    The time the container instance was updated, in the format defined by RFC 3339.

    vnics ContainerInstanceVnicArgs]

    The networks available to containers on this container instance.

    volume_count int

    The number of volumes that are attached to the container instance.

    volumes ContainerInstanceVolumeArgs]

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    availabilityDomain String

    The availability domain where the container instance runs.

    compartmentId String

    (Updatable) The compartment OCID.

    containerCount Number

    The number of containers on the container instance.

    containerRestartPolicy String

    Container restart policy

    containers List<Property Map>

    The containers to create on this container 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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    dnsConfig Property Map

    Allow customers to define DNS settings for containers. If this is not provided, the containers use the default DNS settings of the subnet.

    faultDomain String

    The fault domain where the container instance runs.

    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

    The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.

    imagePullSecrets List<Property Map>

    The image pulls secrets so you can access private registry to pull container images.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    shape String

    The shape of the container instance. The shape determines the resources available to the container instance.

    shapeConfig Property Map

    The size and amount of resources available to the container instance.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    vnics List<Property Map>

    The networks available to containers on this container instance.

    volumeCount Number

    The number of volumes that are attached to the container instance.

    volumes List<Property Map>

    A volume is a directory with data that is accessible across multiple containers in a container instance.

    You can attach up to 32 volumes to single container instance.

    Supporting Types

    ContainerInstanceContainer, ContainerInstanceContainerArgs

    ImageUrl string

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    Arguments List<string>

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    AvailabilityDomain string

    The availability domain where the container instance runs.

    Commands List<string>

    The list of strings that will be simplified to a single command for checking the status of the container.

    CompartmentId string

    (Updatable) The compartment OCID.

    ContainerId string

    The OCID of the container.

    ContainerInstanceId string
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    EnvironmentVariables Dictionary<string, object>

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    ExitCode int
    FaultDomain string

    The fault domain where the container instance runs.

    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<ContainerInstanceContainerHealthCheck>

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    IsResourcePrincipalDisabled bool

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    ResourceConfig ContainerInstanceContainerResourceConfig

    The size and amount of resources available to the container.

    SecurityContext ContainerInstanceContainerSecurityContext

    Security context for container.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    TimeTerminated string
    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    VolumeMounts List<ContainerInstanceContainerVolumeMount>

    List of the volume mounts.

    WorkingDirectory string

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    ImageUrl string

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    Arguments []string

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    AvailabilityDomain string

    The availability domain where the container instance runs.

    Commands []string

    The list of strings that will be simplified to a single command for checking the status of the container.

    CompartmentId string

    (Updatable) The compartment OCID.

    ContainerId string

    The OCID of the container.

    ContainerInstanceId string
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    EnvironmentVariables map[string]interface{}

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    ExitCode int
    FaultDomain string

    The fault domain where the container instance runs.

    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 []ContainerInstanceContainerHealthCheck

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    IsResourcePrincipalDisabled bool

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    LifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    ResourceConfig ContainerInstanceContainerResourceConfig

    The size and amount of resources available to the container.

    SecurityContext ContainerInstanceContainerSecurityContext

    Security context for container.

    State string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    TimeTerminated string
    TimeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    VolumeMounts []ContainerInstanceContainerVolumeMount

    List of the volume mounts.

    WorkingDirectory string

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    imageUrl String

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    arguments List<String>

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    availabilityDomain String

    The availability domain where the container instance runs.

    commands List<String>

    The list of strings that will be simplified to a single command for checking the status of the container.

    compartmentId String

    (Updatable) The compartment OCID.

    containerId String

    The OCID of the container.

    containerInstanceId String
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    environmentVariables Map<String,Object>

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    exitCode Integer
    faultDomain String

    The fault domain where the container instance runs.

    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<ContainerInstanceContainerHealthCheck>

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    isResourcePrincipalDisabled Boolean

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    resourceConfig ContainerInstanceContainerResourceConfig

    The size and amount of resources available to the container.

    securityContext ContainerInstanceContainerSecurityContext

    Security context for container.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeTerminated String
    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeMounts List<ContainerInstanceContainerVolumeMount>

    List of the volume mounts.

    workingDirectory String

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    imageUrl string

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    arguments string[]

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    availabilityDomain string

    The availability domain where the container instance runs.

    commands string[]

    The list of strings that will be simplified to a single command for checking the status of the container.

    compartmentId string

    (Updatable) The compartment OCID.

    containerId string

    The OCID of the container.

    containerInstanceId string
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    environmentVariables {[key: string]: any}

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    exitCode number
    faultDomain string

    The fault domain where the container instance runs.

    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 ContainerInstanceContainerHealthCheck[]

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    isResourcePrincipalDisabled boolean

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    lifecycleDetails string

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    resourceConfig ContainerInstanceContainerResourceConfig

    The size and amount of resources available to the container.

    securityContext ContainerInstanceContainerSecurityContext

    Security context for container.

    state string

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeTerminated string
    timeUpdated string

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeMounts ContainerInstanceContainerVolumeMount[]

    List of the volume mounts.

    workingDirectory string

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    image_url str

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    arguments Sequence[str]

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    availability_domain str

    The availability domain where the container instance runs.

    commands Sequence[str]

    The list of strings that will be simplified to a single command for checking the status of the container.

    compartment_id str

    (Updatable) The compartment OCID.

    container_id str

    The OCID of the container.

    container_instance_id str
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    environment_variables Mapping[str, Any]

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    exit_code int
    fault_domain str

    The fault domain where the container instance runs.

    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 ContainerInstanceContainerHealthCheck]

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    is_resource_principal_disabled bool

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    lifecycle_details str

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    resource_config ContainerInstanceContainerResourceConfig

    The size and amount of resources available to the container.

    security_context ContainerInstanceContainerSecurityContext

    Security context for container.

    state str

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    time_terminated str
    time_updated str

    The time the container instance was updated, in the format defined by RFC 3339.

    volume_mounts ContainerInstanceContainerVolumeMount]

    List of the volume mounts.

    working_directory str

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    imageUrl String

    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.

    If no registry is provided, will default the registry to public docker hub docker.io/library.

    The registry used for container image must be reachable over the Container Instance's VNIC.

    arguments List<String>

    A list of string arguments for a container's ENTRYPOINT process.

    Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

    The total size of all arguments combined must be 64 KB or smaller.

    availabilityDomain String

    The availability domain where the container instance runs.

    commands List<String>

    The list of strings that will be simplified to a single command for checking the status of the container.

    compartmentId String

    (Updatable) The compartment OCID.

    containerId String

    The OCID of the container.

    containerInstanceId String
    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    environmentVariables Map<Any>

    A map of additional environment variables to set in the environment of the container's ENTRYPOINT process. These variables are in addition to any variables already defined in the container's image.

    The total size of all environment variables combined, name and values, must be 64 KB or smaller.

    exitCode Number
    faultDomain String

    The fault domain where the container instance runs.

    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>

    list of container health checks to check container status and take appropriate action if container status is failed. There are three types of health checks that we currently support HTTP, TCP, and Command.

    isResourcePrincipalDisabled Boolean

    Determines if the container will have access to the container instance resource principal.

    This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

    lifecycleDetails String

    A message that describes the current state of the container in more detail. Can be used to provide actionable information.

    resourceConfig Property Map

    The size and amount of resources available to the container.

    securityContext Property Map

    Security context for container.

    state String

    (Updatable) The target state for the Container Instance. Could be set to ACTIVE or INACTIVE.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 container instance was created, in the format defined by RFC 3339.

    timeTerminated String
    timeUpdated String

    The time the container instance was updated, in the format defined by RFC 3339.

    volumeMounts List<Property Map>

    List of the volume mounts.

    workingDirectory String

    The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used.

    ContainerInstanceContainerHealthCheck, ContainerInstanceContainerHealthCheckArgs

    HealthCheckType string

    Container health check type.

    Commands List<string>

    The list of strings that will be simplified to a single command for checking the status of the container.

    FailureAction string

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    FailureThreshold int

    Number of consecutive failures at which we consider the check failed.

    Headers List<ContainerInstanceContainerHealthCheckHeader>

    Container health check HTTP headers.

    InitialDelayInSeconds int

    The initial delay in seconds before start checking container health status.

    IntervalInSeconds int

    Number of seconds between two consecutive runs for checking container health.

    Name string

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    Status string
    StatusDetails string
    SuccessThreshold int

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    TimeoutInSeconds int

    Length of waiting time in seconds before marking health check failed.

    HealthCheckType string

    Container health check type.

    Commands []string

    The list of strings that will be simplified to a single command for checking the status of the container.

    FailureAction string

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    FailureThreshold int

    Number of consecutive failures at which we consider the check failed.

    Headers []ContainerInstanceContainerHealthCheckHeader

    Container health check HTTP headers.

    InitialDelayInSeconds int

    The initial delay in seconds before start checking container health status.

    IntervalInSeconds int

    Number of seconds between two consecutive runs for checking container health.

    Name string

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    Status string
    StatusDetails string
    SuccessThreshold int

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    TimeoutInSeconds int

    Length of waiting time in seconds before marking health check failed.

    healthCheckType String

    Container health check type.

    commands List<String>

    The list of strings that will be simplified to a single command for checking the status of the container.

    failureAction String

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    failureThreshold Integer

    Number of consecutive failures at which we consider the check failed.

    headers List<ContainerInstanceContainerHealthCheckHeader>

    Container health check HTTP headers.

    initialDelayInSeconds Integer

    The initial delay in seconds before start checking container health status.

    intervalInSeconds Integer

    Number of seconds between two consecutive runs for checking container health.

    name String

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    status String
    statusDetails String
    successThreshold Integer

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    timeoutInSeconds Integer

    Length of waiting time in seconds before marking health check failed.

    healthCheckType string

    Container health check type.

    commands string[]

    The list of strings that will be simplified to a single command for checking the status of the container.

    failureAction string

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    failureThreshold number

    Number of consecutive failures at which we consider the check failed.

    headers ContainerInstanceContainerHealthCheckHeader[]

    Container health check HTTP headers.

    initialDelayInSeconds number

    The initial delay in seconds before start checking container health status.

    intervalInSeconds number

    Number of seconds between two consecutive runs for checking container health.

    name string

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    status string
    statusDetails string
    successThreshold number

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    timeoutInSeconds number

    Length of waiting time in seconds before marking health check failed.

    health_check_type str

    Container health check type.

    commands Sequence[str]

    The list of strings that will be simplified to a single command for checking the status of the container.

    failure_action str

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    failure_threshold int

    Number of consecutive failures at which we consider the check failed.

    headers ContainerInstanceContainerHealthCheckHeader]

    Container health check HTTP headers.

    initial_delay_in_seconds int

    The initial delay in seconds before start checking container health status.

    interval_in_seconds int

    Number of seconds between two consecutive runs for checking container health.

    name str

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    status str
    status_details str
    success_threshold int

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    timeout_in_seconds int

    Length of waiting time in seconds before marking health check failed.

    healthCheckType String

    Container health check type.

    commands List<String>

    The list of strings that will be simplified to a single command for checking the status of the container.

    failureAction String

    The action will be triggered when the container health check fails. There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy.

    failureThreshold Number

    Number of consecutive failures at which we consider the check failed.

    headers List<Property Map>

    Container health check HTTP headers.

    initialDelayInSeconds Number

    The initial delay in seconds before start checking container health status.

    intervalInSeconds Number

    Number of seconds between two consecutive runs for checking container health.

    name String

    The name of the volume. This must be unique within a single container instance.

    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

    Container health check HTTP port.

    status String
    statusDetails String
    successThreshold Number

    Number of consecutive successes at which we consider the check succeeded again after it was in failure state.

    timeoutInSeconds Number

    Length of waiting time in seconds before marking health check failed.

    ContainerInstanceContainerHealthCheckHeader, ContainerInstanceContainerHealthCheckHeaderArgs

    Name string

    The name of the volume. This must be unique within a single container instance.

    Value string

    Container HTTP header value.

    Name string

    The name of the volume. This must be unique within a single container instance.

    Value string

    Container HTTP header value.

    name String

    The name of the volume. This must be unique within a single container instance.

    value String

    Container HTTP header value.

    name string

    The name of the volume. This must be unique within a single container instance.

    value string

    Container HTTP header value.

    name str

    The name of the volume. This must be unique within a single container instance.

    value str

    Container HTTP header value.

    name String

    The name of the volume. This must be unique within a single container instance.

    value String

    Container HTTP header value.

    ContainerInstanceContainerResourceConfig, ContainerInstanceContainerResourceConfigArgs

    MemoryLimitInGbs double

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    VcpusLimit double

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    MemoryLimitInGbs float64

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    VcpusLimit float64

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    memoryLimitInGbs Double

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    vcpusLimit Double

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    memoryLimitInGbs number

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    vcpusLimit number

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    memory_limit_in_gbs float

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    vcpus_limit float

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    memoryLimitInGbs Number

    The maximum amount of memory that can be consumed by the container's process.

    If you do not set a value, then the process may use all available memory on the instance.

    vcpusLimit Number

    The maximum amount of CPUs that can be consumed by the container's process.

    If you do not set a value, then the process can use all available CPU resources on the instance.

    CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

    A container with a 2.0 vcpusLimit could consume up to 100% of the CPU resources available on the container instance. Values can be fractional. A value of "1.5" means that the container can consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity.

    ContainerInstanceContainerSecurityContext, ContainerInstanceContainerSecurityContextArgs

    IsNonRootUserCheckEnabled bool

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    IsRootFileSystemReadonly bool

    Determines if the container will have a read-only root file system. Default value is false.

    RunAsGroup int

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    RunAsUser int

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    SecurityContextType string

    The type of security context

    IsNonRootUserCheckEnabled bool

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    IsRootFileSystemReadonly bool

    Determines if the container will have a read-only root file system. Default value is false.

    RunAsGroup int

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    RunAsUser int

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    SecurityContextType string

    The type of security context

    isNonRootUserCheckEnabled Boolean

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    isRootFileSystemReadonly Boolean

    Determines if the container will have a read-only root file system. Default value is false.

    runAsGroup Integer

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    runAsUser Integer

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    securityContextType String

    The type of security context

    isNonRootUserCheckEnabled boolean

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    isRootFileSystemReadonly boolean

    Determines if the container will have a read-only root file system. Default value is false.

    runAsGroup number

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    runAsUser number

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    securityContextType string

    The type of security context

    is_non_root_user_check_enabled bool

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    is_root_file_system_readonly bool

    Determines if the container will have a read-only root file system. Default value is false.

    run_as_group int

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    run_as_user int

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    security_context_type str

    The type of security context

    isNonRootUserCheckEnabled Boolean

    Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.

    isRootFileSystemReadonly Boolean

    Determines if the container will have a read-only root file system. Default value is false.

    runAsGroup Number

    The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.

    runAsUser Number

    The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.

    securityContextType String

    The type of security context

    ContainerInstanceContainerVolumeMount, ContainerInstanceContainerVolumeMountArgs

    MountPath string

    The volume access path.

    VolumeName string

    The name of the volume. Avoid entering confidential information.

    IsReadOnly bool

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    Partition int

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    SubPath string

    A subpath inside the referenced volume.

    MountPath string

    The volume access path.

    VolumeName string

    The name of the volume. Avoid entering confidential information.

    IsReadOnly bool

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    Partition int

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    SubPath string

    A subpath inside the referenced volume.

    mountPath String

    The volume access path.

    volumeName String

    The name of the volume. Avoid entering confidential information.

    isReadOnly Boolean

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    partition Integer

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    subPath String

    A subpath inside the referenced volume.

    mountPath string

    The volume access path.

    volumeName string

    The name of the volume. Avoid entering confidential information.

    isReadOnly boolean

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    partition number

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    subPath string

    A subpath inside the referenced volume.

    mount_path str

    The volume access path.

    volume_name str

    The name of the volume. Avoid entering confidential information.

    is_read_only bool

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    partition int

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    sub_path str

    A subpath inside the referenced volume.

    mountPath String

    The volume access path.

    volumeName String

    The name of the volume. Avoid entering confidential information.

    isReadOnly Boolean

    Whether the volume was mounted in read-only mode. By default, the volume is not read-only.

    partition Number

    If there is more than one partition in the volume, reference this number of partitions. Here is an example: Number Start End Size File system Name Flags 1 1049kB 106MB 105MB fat16 EFI System Partition boot, esp 2 106MB 1180MB 1074MB xfs 3 1180MB 50.0GB 48.8GB lvm

    subPath String

    A subpath inside the referenced volume.

    ContainerInstanceDnsConfig, ContainerInstanceDnsConfigArgs

    Nameservers List<string>

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    Options List<string>

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    Searches List<string>

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    Nameservers []string

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    Options []string

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    Searches []string

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    nameservers List<String>

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    options List<String>

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    searches List<String>

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    nameservers string[]

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    options string[]

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    searches string[]

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    nameservers Sequence[str]

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    options Sequence[str]

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    searches Sequence[str]

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    nameservers List<String>

    IP address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation. If null, uses nameservers from subnet dhcpDnsOptions.

    options List<String>

    Options allows certain internal resolver variables to be modified. Options are a list of objects in https://man7.org/linux/man-pages/man5/resolv.conf.5.html. Examples: ["ndots:n", "edns0"].

    searches List<String>

    Search list for host-name lookup. If null, we will use searches from subnet dhcpDnsOptios.

    ContainerInstanceImagePullSecret, ContainerInstanceImagePullSecretArgs

    RegistryEndpoint string

    The registry endpoint of the container image.

    SecretType string

    The type of ImagePullSecret.

    Password string

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    SecretId string

    The OCID of the secret for registry credentials.

    Username string

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    RegistryEndpoint string

    The registry endpoint of the container image.

    SecretType string

    The type of ImagePullSecret.

    Password string

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    SecretId string

    The OCID of the secret for registry credentials.

    Username string

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    registryEndpoint String

    The registry endpoint of the container image.

    secretType String

    The type of ImagePullSecret.

    password String

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    secretId String

    The OCID of the secret for registry credentials.

    username String

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    registryEndpoint string

    The registry endpoint of the container image.

    secretType string

    The type of ImagePullSecret.

    password string

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    secretId string

    The OCID of the secret for registry credentials.

    username string

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    registry_endpoint str

    The registry endpoint of the container image.

    secret_type str

    The type of ImagePullSecret.

    password str

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    secret_id str

    The OCID of the secret for registry credentials.

    username str

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    registryEndpoint String

    The registry endpoint of the container image.

    secretType String

    The type of ImagePullSecret.

    password String

    The password which should be used with the registry for authentication. The value is expected in base64 format.

    secretId String

    The OCID of the secret for registry credentials.

    username String

    The username which should be used with the registry for authentication. The value is expected in base64 format.

    ContainerInstanceShapeConfig, ContainerInstanceShapeConfigArgs

    Ocpus double

    The total number of OCPUs available to the container instance.

    MemoryInGbs double

    The total amount of memory available to the container instance (GB).

    NetworkingBandwidthInGbps double

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

    ProcessorDescription string

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

    Ocpus float64

    The total number of OCPUs available to the container instance.

    MemoryInGbs float64

    The total amount of memory available to the container instance (GB).

    NetworkingBandwidthInGbps float64

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

    ProcessorDescription string

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

    ocpus Double

    The total number of OCPUs available to the container instance.

    memoryInGbs Double

    The total amount of memory available to the container instance (GB).

    networkingBandwidthInGbps Double

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

    processorDescription String

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

    ocpus number

    The total number of OCPUs available to the container instance.

    memoryInGbs number

    The total amount of memory available to the container instance (GB).

    networkingBandwidthInGbps number

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

    processorDescription string

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

    ocpus float

    The total number of OCPUs available to the container instance.

    memory_in_gbs float

    The total amount of memory available to the container instance (GB).

    networking_bandwidth_in_gbps float

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

    processor_description str

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

    ocpus Number

    The total number of OCPUs available to the container instance.

    memoryInGbs Number

    The total amount of memory available to the container instance (GB).

    networkingBandwidthInGbps Number

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

    processorDescription String

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

    ContainerInstanceVnic, ContainerInstanceVnicArgs

    SubnetId string

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    IsPublicIpAssigned bool

    Whether the VNIC should be assigned a public IP address.

    NsgIds List<string>

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    PrivateIp string

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    SkipSourceDestCheck bool

    Whether the source/destination check is disabled on the VNIC.

    VnicId string

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    SubnetId string

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    IsPublicIpAssigned bool

    Whether the VNIC should be assigned a public IP address.

    NsgIds []string

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    PrivateIp string

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    SkipSourceDestCheck bool

    Whether the source/destination check is disabled on the VNIC.

    VnicId string

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    subnetId String

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    isPublicIpAssigned Boolean

    Whether the VNIC should be assigned a public IP address.

    nsgIds List<String>

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    privateIp String

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    skipSourceDestCheck Boolean

    Whether the source/destination check is disabled on the VNIC.

    vnicId String

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    subnetId string

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    isPublicIpAssigned boolean

    Whether the VNIC should be assigned a public IP address.

    nsgIds string[]

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    privateIp string

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    skipSourceDestCheck boolean

    Whether the source/destination check is disabled on the VNIC.

    vnicId string

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    subnet_id str

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    is_public_ip_assigned bool

    Whether the VNIC should be assigned a public IP address.

    nsg_ids Sequence[str]

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    private_ip str

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    skip_source_dest_check bool

    Whether the source/destination check is disabled on the VNIC.

    vnic_id str

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    subnetId String

    The OCID of the subnet to create the VNIC in.

    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

    A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

    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

    The hostname for the VNIC's primary private IP. Used for DNS.

    isPublicIpAssigned Boolean

    Whether the VNIC should be assigned a public IP address.

    nsgIds List<String>

    A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

    privateIp String

    A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR.

    skipSourceDestCheck Boolean

    Whether the source/destination check is disabled on the VNIC.

    vnicId String

    The identifier of the virtual network interface card (VNIC) over which the containers accessing this network can communicate with the larger virtual cloud network.

    ContainerInstanceVolume, ContainerInstanceVolumeArgs

    Name string

    The name of the volume. This must be unique within a single container instance.

    VolumeType string

    The type of volume.

    BackingStore string

    The volume type of the empty directory, can be either File Storage or Memory.

    Configs List<ContainerInstanceVolumeConfig>

    Contains 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 must be unique within a single container instance.

    VolumeType string

    The type of volume.

    BackingStore string

    The volume type of the empty directory, can be either File Storage or Memory.

    Configs []ContainerInstanceVolumeConfig

    Contains 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 must be unique within a single container instance.

    volumeType String

    The type of volume.

    backingStore String

    The volume type of the empty directory, can be either File Storage or Memory.

    configs List<ContainerInstanceVolumeConfig>

    Contains 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 must be unique within a single container instance.

    volumeType string

    The type of volume.

    backingStore string

    The volume type of the empty directory, can be either File Storage or Memory.

    configs ContainerInstanceVolumeConfig[]

    Contains 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 must be unique within a single container instance.

    volume_type str

    The type of volume.

    backing_store str

    The volume type of the empty directory, can be either File Storage or Memory.

    configs ContainerInstanceVolumeConfig]

    Contains 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 must be unique within a single container instance.

    volumeType String

    The type of volume.

    backingStore String

    The volume type of the empty directory, can be either File Storage or Memory.

    configs List<Property Map>

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

    ContainerInstanceVolumeConfig, ContainerInstanceVolumeConfigArgs

    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.

    Import

    ContainerInstances can be imported using the id, e.g.

     $ pulumi import oci:ContainerEngine/containerInstance:ContainerInstance test_container_instance "id"
    

    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 v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi