Share via


IInitContainerDefinition Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter))]
public interface IInitContainerDefinition : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinitionTypeConverter))>]
type IInitContainerDefinition = interface
    interface IJsonSerializable
Public Interface IInitContainerDefinition
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

CapabilityAdd

The capabilities to add to the container.

CapabilityDrop

The capabilities to drop from the container.

Command

The command to execute within the init container in exec form.

CurrentState

The state of the container instance.

CurrentStateDetailStatus

The human-readable status of the container instance state.

CurrentStateExitCode

The container instance exit codes correspond to those from the docker run command.

CurrentStateFinishTime

The date-time when the container instance state finished.

CurrentStateStartTime

The date-time when the container instance state started.

EnvironmentVariable

The environment variables to set in the init container.

Image

The image of the init container.

InstanceViewEvent

The events of the init container.

InstanceViewRestartCount

The number of times that the init container has been restarted.

Name

The name for the init container.

PreviousState

The state of the container instance.

PreviousStateDetailStatus

The human-readable status of the container instance state.

PreviousStateExitCode

The container instance exit codes correspond to those from the docker run command.

PreviousStateFinishTime

The date-time when the container instance state finished.

PreviousStateStartTime

The date-time when the container instance state started.

SecurityContextAllowPrivilegeEscalation

A boolean value indicating whether the init process can elevate its privileges

SecurityContextPrivileged

The flag to determine if the container permissions is elevated to Privileged.

SecurityContextRunAsGroup

Sets the User GID for the container.

SecurityContextRunAsUser

Sets the User UID for the container.

SecurityContextSeccompProfile

a base64 encoded string containing the contents of the JSON in the seccomp profile

VolumeMount

The volume mounts available to the init container.

Methods

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to