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.ModelContainer
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
|
The user-provided name of the container instance. Required. |
image
|
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
|
The user-provided name of the container instance. Required. |
image
|
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. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for