ArmContainerInstanceModelFactory.ContainerInstanceContainer Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância de ContainerInstanceContainer.
public static Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer ContainerInstanceContainer (string name = default, string image = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerPort> ports = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> environmentVariables = default, Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView instanceView = default, Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequirements resources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> volumeMounts = default, Azure.ResourceManager.ContainerInstance.Models.ContainerProbe livenessProbe = default, Azure.ResourceManager.ContainerInstance.Models.ContainerProbe readinessProbe = default, Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition securityContext = default);
static member ContainerInstanceContainer : string * string * seq<string> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerPort> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> * Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView * Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequirements * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> * Azure.ResourceManager.ContainerInstance.Models.ContainerProbe * Azure.ResourceManager.ContainerInstance.Models.ContainerProbe * Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition -> Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer
Public Shared Function ContainerInstanceContainer (Optional name As String = Nothing, Optional image As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional ports As IEnumerable(Of ContainerPort) = Nothing, Optional environmentVariables As IEnumerable(Of ContainerEnvironmentVariable) = Nothing, Optional instanceView As ContainerInstanceView = Nothing, Optional resources As ContainerResourceRequirements = Nothing, Optional volumeMounts As IEnumerable(Of ContainerVolumeMount) = Nothing, Optional livenessProbe As ContainerProbe = Nothing, Optional readinessProbe As ContainerProbe = Nothing, Optional securityContext As ContainerSecurityContextDefinition = Nothing) As ContainerInstanceContainer
Parâmetros
- name
- String
O nome da instância de contêiner fornecido pelo usuário.
- image
- String
O nome da imagem usada para criar a instância de contêiner.
- command
- IEnumerable<String>
Os comandos a serem executados na instância de contêiner no formato de execução.
- ports
- IEnumerable<ContainerPort>
As portas expostas na instância de contêiner.
- environmentVariables
- IEnumerable<ContainerEnvironmentVariable>
As variáveis de ambiente a serem definidas na instância de contêiner.
- instanceView
- ContainerInstanceView
A exibição de instância da instância de contêiner. Válido apenas em resposta.
- resources
- ContainerResourceRequirements
Os requisitos de recurso da instância de contêiner.
- volumeMounts
- IEnumerable<ContainerVolumeMount>
As montagens de volume disponíveis para a instância de contêiner.
- livenessProbe
- ContainerProbe
A investigação de atividade.
- readinessProbe
- ContainerProbe
A investigação de preparação.
- securityContext
- ContainerSecurityContextDefinition
As propriedades de segurança do contêiner.
Retornos
Uma nova ContainerInstanceContainer instância para zombar.
Aplica-se a
Azure SDK for .NET