Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.ContainerEngine.ContainerInstance
Explore with Pulumi AI
This resource provides the Container Instance resource in Oracle Cloud Infrastructure Container Instances service.
Creates a new ContainerInstance.
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,
AdditionalCapabilities = @var.Container_instance_containers_additional_capabilities,
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,
},
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),
AdditionalCapabilities: pulumi.Any(_var.Container_instance_containers_additional_capabilities),
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),
},
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.AnyMap{
"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.AnyMap{
"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.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())
.additionalCapabilities(var_.container_instance_containers_additional_capabilities())
.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())
.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=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
additional_capabilities=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
arguments=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
commands=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
defined_tags=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
environment_variables=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
freeform_tags=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
health_checks=[oci.container_engine.ContainerInstanceContainerHealthCheckArgs(
health_check_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
commands=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
failure_action=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
failure_threshold=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
headers=[oci.container_engine.ContainerInstanceContainerHealthCheckHeaderArgs(
name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
value=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
initial_delay_in_seconds=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
interval_in_seconds=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
path=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
port=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
success_threshold=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
timeout_in_seconds=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
is_resource_principal_disabled=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
resource_config=oci.container_engine.ContainerInstanceContainerResourceConfigArgs(
memory_limit_in_gbs=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
vcpus_limit=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
volume_mounts=[oci.container_engine.ContainerInstanceContainerVolumeMountArgs(
mount_path=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
volume_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
is_read_only=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
partition=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
sub_path=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
working_directory=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
shape=var["container_instance_shape"],
shape_config=oci.container_engine.ContainerInstanceShapeConfigArgs(
ocpus=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
memory_in_gbs=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
vnics=[oci.container_engine.ContainerInstanceVnicArgs(
subnet_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
defined_tags=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
freeform_tags=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
hostname_label=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
is_public_ip_assigned=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
nsg_ids=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
private_ip=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
skip_source_dest_check=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
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=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
options=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
searches=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
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=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
secret_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
password=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
secret_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
username=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
volumes=[oci.container_engine.ContainerInstanceVolumeArgs(
name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
volume_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
backing_store=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
configs=[oci.container_engine.ContainerInstanceVolumeConfigArgs(
data=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
file_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
path=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
)],
)])
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,
additionalCapabilities: _var.container_instance_containers_additional_capabilities,
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,
},
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}
additionalCapabilities: ${var.container_instance_containers_additional_capabilities}
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}
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:
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Compartment
Id string (Updatable) Compartment Identifier
- Containers
List<Container
Instance Container Args> The Containers to create on this Instance.
- Shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- Shape
Config ContainerInstance Shape Config Args The size and amount of resources available to the Container Instance.
- Vnics
List<Container
Instance Vnic Args> The networks to make available to containers on this Instance.
- Container
Restart stringPolicy Container restart policy
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- Image
Pull List<ContainerSecrets Instance Image Pull Secret Args> The image pull secrets for accessing private registry to pull images for containers
- State string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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<Container
Instance Volume Args> A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Compartment
Id string (Updatable) Compartment Identifier
- Containers
[]Container
Instance Container Args The Containers to create on this Instance.
- Shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- Shape
Config ContainerInstance Shape Config Args The size and amount of resources available to the Container Instance.
- Vnics
[]Container
Instance Vnic Args The networks to make available to containers on this Instance.
- Container
Restart stringPolicy Container restart policy
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- Image
Pull []ContainerSecrets Instance Image Pull Secret Args The image pull secrets for accessing private registry to pull images for containers
- State string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
[]Container
Instance Volume Args A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- compartment
Id String (Updatable) Compartment Identifier
- containers
List<Container
Instance Container Args> The Containers to create on this Instance.
- shape String
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config ContainerInstance Shape Config Args The size and amount of resources available to the Container Instance.
- vnics
List<Container
Instance Vnic Args> The networks to make available to containers on this Instance.
- container
Restart StringPolicy Container restart policy
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- graceful
Shutdown StringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull List<ContainerSecrets Instance Image Pull Secret Args> The image pull secrets for accessing private registry to pull images for containers
- state String
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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<Container
Instance Volume Args> A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain string Availability Domain where the ContainerInstance should be created.
- compartment
Id string (Updatable) Compartment Identifier
- containers
Container
Instance Container Args[] The Containers to create on this Instance.
- shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config ContainerInstance Shape Config Args The size and amount of resources available to the Container Instance.
- vnics
Container
Instance Vnic Args[] The networks to make available to containers on this Instance.
- container
Restart stringPolicy Container restart policy
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain string Fault Domain where the ContainerInstance should run.
- {[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"}
- graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull ContainerSecrets Instance Image Pull Secret Args[] The image pull secrets for accessing private registry to pull images for containers
- state string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
Container
Instance Volume Args[] A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability_
domain str Availability Domain where the ContainerInstance should be created.
- compartment_
id str (Updatable) Compartment Identifier
- containers
Container
Instance Container Args] The Containers to create on this Instance.
- shape str
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape_
config ContainerInstance Shape Config Args The size and amount of resources available to the Container Instance.
- vnics
Container
Instance Vnic Args] The networks to make available to containers on this Instance.
- container_
restart_ strpolicy Container restart policy
- 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 ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault_
domain str Fault Domain where the ContainerInstance should run.
- 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_ strtimeout_ in_ seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image_
pull_ Containersecrets Instance Image Pull Secret Args] The image pull secrets for accessing private registry to pull images for containers
- state str
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
Container
Instance Volume Args] A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- compartment
Id String (Updatable) Compartment Identifier
- containers List<Property Map>
The Containers to create on this Instance.
- shape String
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config Property Map The size and amount of resources available to the Container Instance.
- vnics List<Property Map>
The networks to make available to containers on this Instance.
- container
Restart StringPolicy Container restart policy
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config Property Map Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- graceful
Shutdown StringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull List<Property Map>Secrets The image pull secrets for accessing private registry to pull images for containers
- state String
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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 represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerInstance resource produces the following output properties:
- Container
Count int The number of containers on this Instance
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Volume
Count int The number of volumes that attached to this Instance
- Container
Count int The number of containers on this Instance
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Volume
Count int The number of volumes that attached to this Instance
- container
Count Integer The number of containers on this Instance
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Count Integer The number of volumes that attached to this Instance
- container
Count number The number of containers on this Instance
- id string
The provider-assigned unique ID for this managed resource.
- lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Count number The number of volumes that attached to this Instance
- container_
count int The number of containers on this Instance
- id str
The provider-assigned unique ID for this managed resource.
- lifecycle_
details str A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time_
updated str The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume_
count int The number of volumes that attached to this Instance
- container
Count Number The number of containers on this Instance
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Count Number The number of volumes that attached to this 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.
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Compartment
Id string (Updatable) Compartment Identifier
- Container
Count int The number of containers on this Instance
- Container
Restart stringPolicy Container restart policy
- Containers
List<Container
Instance Container Args> The Containers to create on this Instance.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- Image
Pull List<ContainerSecrets Instance Image Pull Secret Args> The image pull secrets for accessing private registry to pull images for containers
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- Shape
Config ContainerInstance Shape Config Args 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
orINACTIVE
.** 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
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Vnics
List<Container
Instance Vnic Args> The networks to make available to containers on this Instance.
- Volume
Count int The number of volumes that attached to this Instance
- Volumes
List<Container
Instance Volume Args> A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Compartment
Id string (Updatable) Compartment Identifier
- Container
Count int The number of containers on this Instance
- Container
Restart stringPolicy Container restart policy
- Containers
[]Container
Instance Container Args The Containers to create on this Instance.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- Image
Pull []ContainerSecrets Instance Image Pull Secret Args The image pull secrets for accessing private registry to pull images for containers
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- Shape
Config ContainerInstance Shape Config Args 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
orINACTIVE
.** 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
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Vnics
[]Container
Instance Vnic Args The networks to make available to containers on this Instance.
- Volume
Count int The number of volumes that attached to this Instance
- Volumes
[]Container
Instance Volume Args A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- compartment
Id String (Updatable) Compartment Identifier
- container
Count Integer The number of containers on this Instance
- container
Restart StringPolicy Container restart policy
- containers
List<Container
Instance Container Args> The Containers to create on this Instance.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- graceful
Shutdown StringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull List<ContainerSecrets Instance Image Pull Secret Args> The image pull secrets for accessing private registry to pull images for containers
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config ContainerInstance Shape Config Args 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
orINACTIVE
.** 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
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- vnics
List<Container
Instance Vnic Args> The networks to make available to containers on this Instance.
- volume
Count Integer The number of volumes that attached to this Instance
- volumes
List<Container
Instance Volume Args> A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain string Availability Domain where the ContainerInstance should be created.
- compartment
Id string (Updatable) Compartment Identifier
- container
Count number The number of containers on this Instance
- container
Restart stringPolicy Container restart policy
- containers
Container
Instance Container Args[] The Containers to create on this Instance.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain string Fault Domain where the ContainerInstance should run.
- {[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"}
- graceful
Shutdown stringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull ContainerSecrets Instance Image Pull Secret Args[] The image pull secrets for accessing private registry to pull images for containers
- lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape string
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config ContainerInstance Shape Config Args 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
orINACTIVE
.** 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
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- vnics
Container
Instance Vnic Args[] The networks to make available to containers on this Instance.
- volume
Count number The number of volumes that attached to this Instance
- volumes
Container
Instance Volume Args[] A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability_
domain str Availability Domain where the ContainerInstance should be created.
- compartment_
id str (Updatable) Compartment Identifier
- container_
count int The number of containers on this Instance
- container_
restart_ strpolicy Container restart policy
- containers
Container
Instance Container Args] The Containers to create on this Instance.
- 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 ContainerInstance Dns Config Args Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault_
domain str Fault Domain where the ContainerInstance should run.
- 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_ strtimeout_ in_ seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image_
pull_ Containersecrets Instance Image Pull Secret Args] The image pull secrets for accessing private registry to pull images for containers
- lifecycle_
details str A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape str
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape_
config ContainerInstance Shape Config Args 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
orINACTIVE
.** 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
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time_
updated str The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- vnics
Container
Instance Vnic Args] The networks to make available to containers on this Instance.
- volume_
count int The number of volumes that attached to this Instance
- volumes
Container
Instance Volume Args] A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- compartment
Id String (Updatable) Compartment Identifier
- container
Count Number The number of containers on this Instance
- container
Restart StringPolicy Container restart policy
- containers List<Property Map>
The Containers to create on this Instance.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- dns
Config Property Map Allow customers to define DNS settings for containers. If this is not provided, the containers will use the default DNS settings of the subnet.
- fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- graceful
Shutdown StringTimeout In Seconds Duration in seconds processes within a Container have to gracefully terminate. This applies whenever a Container must be halted, such as when the Container Instance is deleted. Processes will first be sent a termination signal. After this timeout is reached, the processes will be sent a termination signal.
- image
Pull List<Property Map>Secrets The image pull secrets for accessing private registry to pull images for containers
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
The shape of the Container Instance. The shape determines the resources available to the Container Instance.
- shape
Config 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
orINACTIVE
.** 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
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- vnics List<Property Map>
The networks to make available to containers on this Instance.
- volume
Count Number The number of volumes that attached to this Instance
- volumes List<Property Map>
A Volume represents a directory with data that is accessible across multiple containers in a ContainerInstance. Up to 32 volumes can be attached to single container instance.
Supporting Types
ContainerInstanceContainer
- Image
Url string The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- Additional
Capabilities List<string> A list of additional capabilities for the container.
- Arguments List<string>
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Commands List<string>
The list of strings which will be concatenated to a single command for checking container's status.
- Compartment
Id string (Updatable) Compartment Identifier
- Container
Id string The ID of the Container on this Instance.
- Container
Instance stringId - Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Environment
Variables 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.
All environment variables together, name and values, must be 64KB or smaller.
- Exit
Code int - Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Health
Checks List<ContainerInstance Container Health Check> 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 boolPrincipal Disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Config ContainerInstance Container Resource Config The size and amount of resources available to the Container.
- State string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Terminated string - Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Volume
Mounts List<ContainerInstance Container Volume Mount> List of the volume mounts.
- Working
Directory string The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
- Image
Url string The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- Additional
Capabilities []string A list of additional capabilities for the container.
- Arguments []string
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- Availability
Domain string Availability Domain where the ContainerInstance should be created.
- Commands []string
The list of strings which will be concatenated to a single command for checking container's status.
- Compartment
Id string (Updatable) Compartment Identifier
- Container
Id string The ID of the Container on this Instance.
- Container
Instance stringId - map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- Environment
Variables 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.
All environment variables together, name and values, must be 64KB or smaller.
- Exit
Code int - Fault
Domain string Fault Domain where the ContainerInstance should run.
- 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"}
- Health
Checks []ContainerInstance Container Health Check 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 boolPrincipal Disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Config ContainerInstance Container Resource Config The size and amount of resources available to the Container.
- State string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- Time
Terminated string - Time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- Volume
Mounts []ContainerInstance Container Volume Mount List of the volume mounts.
- Working
Directory string The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
- image
Url String The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- additional
Capabilities List<String> A list of additional capabilities for the container.
- arguments List<String>
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- commands List<String>
The list of strings which will be concatenated to a single command for checking container's status.
- compartment
Id String (Updatable) Compartment Identifier
- container
Id String The ID of the Container on this Instance.
- container
Instance StringId - Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- environment
Variables 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.
All environment variables together, name and values, must be 64KB or smaller.
- exit
Code Integer - fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- health
Checks List<ContainerInstance Container Health Check> 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 BooleanPrincipal Disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Config ContainerInstance Container Resource Config The size and amount of resources available to the Container.
- state String
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Terminated String - time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Mounts List<ContainerInstance Container Volume Mount> List of the volume mounts.
- working
Directory String The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
- image
Url string The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- additional
Capabilities string[] A list of additional capabilities for the container.
- arguments string[]
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- availability
Domain string Availability Domain where the ContainerInstance should be created.
- commands string[]
The list of strings which will be concatenated to a single command for checking container's status.
- compartment
Id string (Updatable) Compartment Identifier
- container
Id string The ID of the Container on this Instance.
- container
Instance stringId - {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- environment
Variables {[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.
All environment variables together, name and values, must be 64KB or smaller.
- exit
Code number - fault
Domain string Fault Domain where the ContainerInstance should run.
- {[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"}
- health
Checks ContainerInstance Container Health Check[] 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 booleanPrincipal Disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Config ContainerInstance Container Resource Config The size and amount of resources available to the Container.
- state string
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Terminated string - time
Updated string The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Mounts ContainerInstance Container Volume Mount[] List of the volume mounts.
- working
Directory string The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
- image_
url str The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- additional_
capabilities Sequence[str] A list of additional capabilities for the container.
- arguments Sequence[str]
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- availability_
domain str Availability Domain where the ContainerInstance should be created.
- commands Sequence[str]
The list of strings which will be concatenated to a single command for checking container's status.
- compartment_
id str (Updatable) Compartment Identifier
- container_
id str The ID of the Container on this Instance.
- container_
instance_ strid - 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.
All environment variables together, name and values, must be 64KB or smaller.
- exit_
code int - fault_
domain str Fault Domain where the ContainerInstance should run.
- 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 ContainerInstance Container Health Check] 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_ boolprincipal_ disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- lifecycle_
details str A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource_
config ContainerInstance Container Resource Config The size and amount of resources available to the Container.
- state str
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time_
terminated str - time_
updated str The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume_
mounts ContainerInstance Container Volume Mount] List of the volume mounts.
- working_
directory str The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
- image
Url String The container image information. Currently only support public docker registry. Can be either image name, e.g
containerImage
, image name with version, e.gcontainerImage:v1
or complete docker image Url e.gdocker.io/library/containerImage:latest
. If no registry is provided, will default the registry to public docker hubdocker.io/library
. The registry used for container image must be reachable over the Container Instance's VNIC.- additional
Capabilities List<String> A list of additional capabilities for the container.
- arguments List<String>
A list of string arguments for a container's entrypoint process.
Many containers use an entrypoint process pointing to a shell, for example /bin/bash. For such containers, this argument list can also be used to specify the main command in the container process.
All arguments together must be 64KB or smaller.
- availability
Domain String Availability Domain where the ContainerInstance should be created.
- commands List<String>
The list of strings which will be concatenated to a single command for checking container's status.
- compartment
Id String (Updatable) Compartment Identifier
- container
Id String The ID of the Container on this Instance.
- container
Instance StringId - Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- environment
Variables 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.
All environment variables together, name and values, must be 64KB or smaller.
- exit
Code Number - fault
Domain String Fault Domain where the ContainerInstance should run.
- 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"}
- health
Checks 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.
- is
Resource BooleanPrincipal Disabled Determines if the Container will have access to the Container Instance Resource Principal. This method utilizes resource principal version 2.2. Please refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal for detailed explanation of how to leverage the exposed resource principal elements.
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Config Property Map The size and amount of resources available to the Container.
- state String
(Updatable) The target state for the Container Instance. Could be set to
ACTIVE
orINACTIVE
.** 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
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the the ContainerInstance was created. An RFC3339 formatted datetime string
- time
Terminated String - time
Updated String The time the ContainerInstance was updated. An RFC3339 formatted datetime string
- volume
Mounts List<Property Map> List of the volume mounts.
- working
Directory String The working directory within the Container's filesystem for the Container process. If none is set, the Container will run in the working directory set by the container image.
ContainerInstanceContainerHealthCheck
- Health
Check stringType Container health check type.
- Commands List<string>
The list of strings which will be concatenated to a single command for checking container's status.
- Failure
Action 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.
- Failure
Threshold int Number of consecutive failures at which we consider the check failed.
- Headers
List<Container
Instance Container Health Check Header> Container health check Http's headers.
- Initial
Delay intIn Seconds The initial delay in seconds before start checking container health status.
- Interval
In intSeconds Number of seconds between two consecutive runs for checking container health.
- Name string
The name of the volume. This has be unique cross single ContainerInstance.
- Path string
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- Port int
Container health check Http's port.
- Status string
- Status
Details string - Success
Threshold int Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
- Timeout
In intSeconds Length of waiting time in seconds before marking health check failed.
- Health
Check stringType Container health check type.
- Commands []string
The list of strings which will be concatenated to a single command for checking container's status.
- Failure
Action 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.
- Failure
Threshold int Number of consecutive failures at which we consider the check failed.
- Headers
[]Container
Instance Container Health Check Header Container health check Http's headers.
- Initial
Delay intIn Seconds The initial delay in seconds before start checking container health status.
- Interval
In intSeconds Number of seconds between two consecutive runs for checking container health.
- Name string
The name of the volume. This has be unique cross single ContainerInstance.
- Path string
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- Port int
Container health check Http's port.
- Status string
- Status
Details string - Success
Threshold int Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
- Timeout
In intSeconds Length of waiting time in seconds before marking health check failed.
- health
Check StringType Container health check type.
- commands List<String>
The list of strings which will be concatenated to a single command for checking container's status.
- failure
Action 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.
- failure
Threshold Integer Number of consecutive failures at which we consider the check failed.
- headers
List<Container
Instance Container Health Check Header> Container health check Http's headers.
- initial
Delay IntegerIn Seconds The initial delay in seconds before start checking container health status.
- interval
In IntegerSeconds Number of seconds between two consecutive runs for checking container health.
- name String
The name of the volume. This has be unique cross single ContainerInstance.
- path String
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- port Integer
Container health check Http's port.
- status String
- status
Details String - success
Threshold Integer Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
- timeout
In IntegerSeconds Length of waiting time in seconds before marking health check failed.
- health
Check stringType Container health check type.
- commands string[]
The list of strings which will be concatenated to a single command for checking container's status.
- failure
Action 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.
- failure
Threshold number Number of consecutive failures at which we consider the check failed.
- headers
Container
Instance Container Health Check Header[] Container health check Http's headers.
- initial
Delay numberIn Seconds The initial delay in seconds before start checking container health status.
- interval
In numberSeconds Number of seconds between two consecutive runs for checking container health.
- name string
The name of the volume. This has be unique cross single ContainerInstance.
- path string
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- port number
Container health check Http's port.
- status string
- status
Details string - success
Threshold number Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
- timeout
In numberSeconds Length of waiting time in seconds before marking health check failed.
- health_
check_ strtype Container health check type.
- commands Sequence[str]
The list of strings which will be concatenated to a single command for checking container's status.
- 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
Container
Instance Container Health Check Header] Container health check Http's headers.
- initial_
delay_ intin_ seconds The initial delay in seconds before start checking container health status.
- interval_
in_ intseconds Number of seconds between two consecutive runs for checking container health.
- name str
The name of the volume. This has be unique cross single ContainerInstance.
- path str
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- port int
Container health check Http's 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_ intseconds Length of waiting time in seconds before marking health check failed.
- health
Check StringType Container health check type.
- commands List<String>
The list of strings which will be concatenated to a single command for checking container's status.
- failure
Action 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.
- failure
Threshold Number Number of consecutive failures at which we consider the check failed.
- headers List<Property Map>
Container health check Http's headers.
- initial
Delay NumberIn Seconds The initial delay in seconds before start checking container health status.
- interval
In NumberSeconds Number of seconds between two consecutive runs for checking container health.
- name String
The name of the volume. This has be unique cross single ContainerInstance.
- path String
(Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
- port Number
Container health check Http's port.
- status String
- status
Details String - success
Threshold Number Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
- timeout
In NumberSeconds Length of waiting time in seconds before marking health check failed.
ContainerInstanceContainerHealthCheckHeader
ContainerInstanceContainerResourceConfig
- Memory
Limit doubleIn Gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- Vcpus
Limit double The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
- Memory
Limit float64In Gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- Vcpus
Limit float64 The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
- memory
Limit DoubleIn Gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- vcpus
Limit Double The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
- memory
Limit numberIn Gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- vcpus
Limit number The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
- memory_
limit_ floatin_ gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- vcpus_
limit float The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
- memory
Limit NumberIn Gbs The maximum amount of memory which may be consumed by the Container's process. If no value is provided, then the process may use all available memory on the Instance.
- vcpus
Limit Number The maximum amount of CPU utilization which may be consumed by the Container's process. If no value is provided, then the process may consume all 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 that vcpusLimit could consume up to 100% of the CPU resources available on the Instance. Values may be fractional. A value of "1.5" means that the Container may consume at most the equivalent of 1 and a half logical CPUs worth of CPU capacity
ContainerInstanceContainerVolumeMount
- Mount
Path string mountPath describes the volume access path.
- Volume
Name string The name of the volume.
- Is
Read boolOnly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- Partition int
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 string specifies a sub-path inside the referenced volume instead of its root
- Mount
Path string mountPath describes the volume access path.
- Volume
Name string The name of the volume.
- Is
Read boolOnly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- Partition int
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 string specifies a sub-path inside the referenced volume instead of its root
- mount
Path String mountPath describes the volume access path.
- volume
Name String The name of the volume.
- is
Read BooleanOnly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- partition Integer
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 String specifies a sub-path inside the referenced volume instead of its root
- mount
Path string mountPath describes the volume access path.
- volume
Name string The name of the volume.
- is
Read booleanOnly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- partition number
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 string specifies a sub-path inside the referenced volume instead of its root
- mount_
path str mountPath describes the volume access path.
- volume_
name str The name of the volume.
- is_
read_ boolonly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- partition int
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 specifies a sub-path inside the referenced volume instead of its root
- mount
Path String mountPath describes the volume access path.
- volume
Name String The name of the volume.
- is
Read BooleanOnly Whether the volume was mounted in read-only mode. Defaults to false if not specified.
- partition Number
If there is more than 1 partitions in the volume, this is the number of partition which be referenced. Here is a 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 String specifies a sub-path inside the referenced volume instead of its root
ContainerInstanceDnsConfig
- 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, we will use 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, we will use 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, we will use 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, we will use 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, we will use 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, we will use 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
- Registry
Endpoint string The registry endpoint of the container image.
- Secret
Type 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.
- Secret
Id 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 string The registry endpoint of the container image.
- Secret
Type 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.
- Secret
Id 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 String The registry endpoint of the container image.
- secret
Type 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.
- secret
Id 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 string The registry endpoint of the container image.
- secret
Type 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.
- secret
Id 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.
- registry
Endpoint String The registry endpoint of the container image.
- secret
Type 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.
- secret
Id 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
- Ocpus double
The total number of OCPUs available to the instance.
- Memory
In doubleGbs The total amount of memory available to the instance, in gigabytes.
- Networking
Bandwidth doubleIn Gbps The networking bandwidth available to the instance, in gigabits per second.
- Processor
Description string A short description of the instance's processor (CPU).
- Ocpus float64
The total number of OCPUs available to the instance.
- Memory
In float64Gbs The total amount of memory available to the instance, in gigabytes.
- Networking
Bandwidth float64In Gbps The networking bandwidth available to the instance, in gigabits per second.
- Processor
Description string A short description of the instance's processor (CPU).
- ocpus Double
The total number of OCPUs available to the instance.
- memory
In DoubleGbs The total amount of memory available to the instance, in gigabytes.
- networking
Bandwidth DoubleIn Gbps The networking bandwidth available to the instance, in gigabits per second.
- processor
Description String A short description of the instance's processor (CPU).
- ocpus number
The total number of OCPUs available to the instance.
- memory
In numberGbs The total amount of memory available to the instance, in gigabytes.
- networking
Bandwidth numberIn Gbps The networking bandwidth available to the instance, in gigabits per second.
- processor
Description string A short description of the instance's processor (CPU).
- ocpus float
The total number of OCPUs available to the instance.
- memory_
in_ floatgbs The total amount of memory available to the instance, in gigabytes.
- networking_
bandwidth_ floatin_ gbps The networking bandwidth available to the instance, in gigabits per second.
- processor_
description str A short description of the instance's processor (CPU).
- ocpus Number
The total number of OCPUs available to the instance.
- memory
In NumberGbs The total amount of memory available to the instance, in gigabytes.
- networking
Bandwidth NumberIn Gbps The networking bandwidth available to the instance, in gigabits per second.
- processor
Description String A short description of the instance's processor (CPU).
ContainerInstanceVnic
- Subnet
Id string The OCID of the subnet to create the VNIC in.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- 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"}
- Hostname
Label string The hostname for the VNIC's primary private IP.
- Is
Public boolIp Assigned Whether the VNIC should be assigned a public IP address.
- Nsg
Ids List<string> A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.
- Private
Ip string 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 boolDest Check Whether the source/destination check is disabled on the VNIC.
- Vnic
Id string The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
- Subnet
Id string The OCID of the subnet to create the VNIC in.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- 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"}
- Hostname
Label string The hostname for the VNIC's primary private IP.
- Is
Public boolIp Assigned Whether the VNIC should be assigned a public IP address.
- Nsg
Ids []string A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.
- Private
Ip string 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 boolDest Check Whether the source/destination check is disabled on the VNIC.
- Vnic
Id string The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
- subnet
Id String The OCID of the subnet to create the VNIC in.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- 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"}
- hostname
Label String The hostname for the VNIC's primary private IP.
- is
Public BooleanIp Assigned Whether the VNIC should be assigned a public IP address.
- nsg
Ids List<String> A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.
- private
Ip String 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 BooleanDest Check Whether the source/destination check is disabled on the VNIC.
- vnic
Id String The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
- subnet
Id string The OCID of the subnet to create the VNIC in.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- {[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"}
- hostname
Label string The hostname for the VNIC's primary private IP.
- is
Public booleanIp Assigned Whether the VNIC should be assigned a public IP address.
- nsg
Ids string[] A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.
- private
Ip string 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 booleanDest Check Whether the source/destination check is disabled on the VNIC.
- vnic
Id string The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
- subnet_
id str The OCID of the subnet to create the VNIC in.
- 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.
- 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.
- is_
public_ boolip_ assigned 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_ booldest_ check Whether the source/destination check is disabled on the VNIC.
- vnic_
id str The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
- subnet
Id String The OCID of the subnet to create the VNIC in.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.
- 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"}
- hostname
Label String The hostname for the VNIC's primary private IP.
- is
Public BooleanIp Assigned Whether the VNIC should be assigned a public IP address.
- nsg
Ids List<String> A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.
- private
Ip String 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 BooleanDest Check Whether the source/destination check is disabled on the VNIC.
- vnic
Id String The ID of the Virtual Network Interface Card (VNIC) over which Containers accessing this network can communicate with the larger Virtual Client Network.
ContainerInstanceVolume
- Name string
The name of the volume. This has be unique cross single ContainerInstance.
- Volume
Type string The type of volume.
- Backing
Store string Volume type that we are using for empty dir where it could be either File Storage or Memory
- Configs
List<Container
Instance Volume Config> 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 has be unique cross single ContainerInstance.
- Volume
Type string The type of volume.
- Backing
Store string Volume type that we are using for empty dir where it could be either File Storage or Memory
- Configs
[]Container
Instance Volume Config 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 has be unique cross single ContainerInstance.
- volume
Type String The type of volume.
- backing
Store String Volume type that we are using for empty dir where it could be either File Storage or Memory
- configs
List<Container
Instance Volume Config> 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 has be unique cross single ContainerInstance.
- volume
Type string The type of volume.
- backing
Store string Volume type that we are using for empty dir where it could be either File Storage or Memory
- configs
Container
Instance Volume Config[] 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 has be unique cross single ContainerInstance.
- volume_
type str The type of volume.
- backing_
store str Volume type that we are using for empty dir where it could be either File Storage or Memory
- configs
Container
Instance Volume Config] 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 has be unique cross single ContainerInstance.
- volume
Type String The type of volume.
- backing
Store String Volume type that we are using for empty dir where it could 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
- 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.
- File
Name 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.
- File
Name 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.
- file
Name 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.
- file
Name 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.
- file
Name 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.