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
-
Container
Constructor
Container(*, name: str, image: str, resources: azure.mgmt.containerinstance.models._models_py3.ResourceRequirements, command: Optional[List[str]] = None, ports: Optional[List[azure.mgmt.containerinstance.models._models_py3.ContainerPort]] = None, environment_variables: Optional[List[azure.mgmt.containerinstance.models._models_py3.EnvironmentVariable]] = None, volume_mounts: Optional[List[azure.mgmt.containerinstance.models._models_py3.VolumeMount]] = None, liveness_probe: Optional[azure.mgmt.containerinstance.models._models_py3.ContainerProbe] = None, readiness_probe: Optional[azure.mgmt.containerinstance.models._models_py3.ContainerProbe] = None, **kwargs)
Variables
- name
- str
Required. The user-provided name of the container instance.
- image
- str
Required. The name of the image used to create the container instance.
- ports
- list[ContainerPort]
The exposed ports on the container instance.
- environment_variables
- list[EnvironmentVariable]
The environment variables to set in the container instance.
- instance_view
- ContainerPropertiesInstanceView
The instance view of the container instance. Only valid in response.
- resources
- ResourceRequirements
Required. The resource requirements of the container instance.
- volume_mounts
- list[VolumeMount]
The volume mounts available to the container instance.
- liveness_probe
- ContainerProbe
The liveness probe.
- readiness_probe
- ContainerProbe
The readiness probe.
Feedback
Submit and view feedback for