Class CreateContainerDetails
Information to create a new container within a container instance.
The container created by this call contains both the tags specified
in this object and any tags specified in the parent container instance.
The container is created in the same compartment, availability domain,
and fault domain as its container instance.
Inherited Members
Namespace: Oci.ContainerinstancesService.Models
Assembly: OCI.DotNetSDK.Containerinstances.dll
Syntax
public class CreateContainerDetails
Properties
Arguments
Declaration
[JsonProperty(PropertyName = "arguments")]
public List<string> Arguments { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | A list of string arguments for a container's ENTRYPOINT process.
|
Command
Declaration
[JsonProperty(PropertyName = "command")]
public List<string> Command { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | An optional command that overrides the ENTRYPOINT process. If you do not provide a value, the existing ENTRYPOINT process defined in the image is used. |
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}}. |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If you don't provide a name, a name is generated automatically. |
EnvironmentVariables
Declaration
[JsonProperty(PropertyName = "environmentVariables")]
public Dictionary<string, string> EnvironmentVariables { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | 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.
|
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
HealthChecks
Declaration
[JsonProperty(PropertyName = "healthChecks")]
public List<CreateContainerHealthCheckDetails> HealthChecks { get; set; }
Property Value
| Type | Description |
|---|---|
| List<CreateContainerHealthCheckDetails> | list of container health checks to check container status and take appropriate action if container status is failed. There are two types of health checks that we currently support HTTP and TCP. |
ImageUrl
Declaration
[Required(ErrorMessage = "ImageUrl is required.")]
[JsonProperty(PropertyName = "imageUrl")]
public string ImageUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest.
|
Remarks
Required
IsResourcePrincipalDisabled
Declaration
[JsonProperty(PropertyName = "isResourcePrincipalDisabled")]
public bool? IsResourcePrincipalDisabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Determines if the container will have access to the container instance resource principal.
|
ResourceConfig
Declaration
[JsonProperty(PropertyName = "resourceConfig")]
public CreateContainerResourceConfigDetails ResourceConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| CreateContainerResourceConfigDetails |
SecurityContext
Declaration
[JsonProperty(PropertyName = "securityContext")]
public CreateSecurityContextDetails SecurityContext { get; set; }
Property Value
| Type | Description |
|---|---|
| CreateSecurityContextDetails |
VolumeMounts
Declaration
[JsonProperty(PropertyName = "volumeMounts")]
public List<CreateVolumeMountDetails> VolumeMounts { get; set; }
Property Value
| Type | Description |
|---|---|
| List<CreateVolumeMountDetails> | List of the volume mounts. |
WorkingDirectory
Declaration
[JsonProperty(PropertyName = "workingDirectory")]
public string WorkingDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The working directory within the container's filesystem for the container process. If not specified, the default working directory from the image is used. |