Container Class

A container instance.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerinstance._serialization.Model
Container

Constructor

Container(*, name: str, image: str, resources: _models.ResourceRequirements, command: List[str] | None = None, ports: List[_models.ContainerPort] | None = None, environment_variables: List[_models.EnvironmentVariable] | None = None, volume_mounts: List[_models.VolumeMount] | None = None, liveness_probe: _models.ContainerProbe | None = None, readiness_probe: _models.ContainerProbe | None = None, security_context: _models.SecurityContextDefinition | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The user-provided name of the container instance. Required.

image
str

The name of the image used to create the container instance. Required.

command

The commands to execute within the container instance in exec form.

ports

The exposed ports on the container instance.

environment_variables

The environment variables to set in the container instance.

resources

The resource requirements of the container instance. Required.

volume_mounts

The volume mounts available to the container instance.

liveness_probe

The liveness probe.

readiness_probe

The readiness probe.

security_context

The container security properties.

Variables

Name Description
name
str

The user-provided name of the container instance. Required.

image
str

The name of the image used to create the container instance. Required.

command

The commands to execute within the container instance in exec form.

ports

The exposed ports on the container instance.

environment_variables

The environment variables to set in the container instance.

instance_view

The instance view of the container instance. Only valid in response.

resources

The resource requirements of the container instance. Required.

volume_mounts

The volume mounts available to the container instance.

liveness_probe

The liveness probe.

readiness_probe

The readiness probe.

security_context

The container security properties.