Class CreateContainerInstanceDetails
Information to create a container instance.
Inherited Members
Namespace: Oci.ContainerinstancesService.Models
Assembly: OCI.DotNetSDK.Containerinstances.dll
Syntax
public class CreateContainerInstanceDetails
Properties
AvailabilityDomain
Declaration
[Required(ErrorMessage = "AvailabilityDomain is required.")]
[JsonProperty(PropertyName = "availabilityDomain")]
public string AvailabilityDomain { get; set; }
Property Value
Type | Description |
---|---|
string | The availability domain where the container instance runs. |
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The compartment OCID. |
Remarks
Required
ContainerRestartPolicy
Declaration
[JsonProperty(PropertyName = "containerRestartPolicy")]
[JsonConverter(typeof(StringEnumConverter))]
public ContainerInstance.ContainerRestartPolicyEnum? ContainerRestartPolicy { get; set; }
Property Value
Type | Description |
---|---|
ContainerInstance.ContainerRestartPolicyEnum? | Container restart policy |
Containers
Declaration
[Required(ErrorMessage = "Containers is required.")]
[JsonProperty(PropertyName = "containers")]
public List<CreateContainerDetails> Containers { get; set; }
Property Value
Type | Description |
---|---|
List<CreateContainerDetails> | The containers to create on this container instance. |
Remarks
Required
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. |
DnsConfig
Declaration
[JsonProperty(PropertyName = "dnsConfig")]
public CreateContainerDnsConfigDetails DnsConfig { get; set; }
Property Value
Type | Description |
---|---|
CreateContainerDnsConfigDetails |
FaultDomain
Declaration
[JsonProperty(PropertyName = "faultDomain")]
public string FaultDomain { get; set; }
Property Value
Type | Description |
---|---|
string | The fault domain where the container instance runs. |
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"} |
GracefulShutdownTimeoutInSeconds
Declaration
[JsonProperty(PropertyName = "gracefulShutdownTimeoutInSeconds")]
public long? GracefulShutdownTimeoutInSeconds { get; set; }
Property Value
Type | Description |
---|---|
long? | The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted. |
ImagePullSecrets
Declaration
[JsonProperty(PropertyName = "imagePullSecrets")]
public List<CreateImagePullSecretDetails> ImagePullSecrets { get; set; }
Property Value
Type | Description |
---|---|
List<CreateImagePullSecretDetails> | The image pulls secrets so you can access private registry to pull container images. |
Shape
Declaration
[Required(ErrorMessage = "Shape is required.")]
[JsonProperty(PropertyName = "shape")]
public string Shape { get; set; }
Property Value
Type | Description |
---|---|
string | The shape of the container instance. The shape determines the resources available to the container instance. |
Remarks
Required
ShapeConfig
Declaration
[Required(ErrorMessage = "ShapeConfig is required.")]
[JsonProperty(PropertyName = "shapeConfig")]
public CreateContainerInstanceShapeConfigDetails ShapeConfig { get; set; }
Property Value
Type | Description |
---|---|
CreateContainerInstanceShapeConfigDetails |
Remarks
Required
Vnics
Declaration
[Required(ErrorMessage = "Vnics is required.")]
[JsonProperty(PropertyName = "vnics")]
public List<CreateContainerVnicDetails> Vnics { get; set; }
Property Value
Type | Description |
---|---|
List<CreateContainerVnicDetails> | The networks available to containers on this container instance. |
Remarks
Required
Volumes
Declaration
[JsonProperty(PropertyName = "volumes")]
public List<CreateContainerVolumeDetails> Volumes { get; set; }
Property Value
Type | Description |
---|---|
List<CreateContainerVolumeDetails> | A volume is a directory with data that is accessible across multiple containers in a
container instance.
|