Compartilhar via


ArmContainerInstanceModelFactory.InitContainerDefinitionContent Método

Definição

Inicializa uma nova instância de InitContainerDefinitionContent.

public static Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent InitContainerDefinitionContent (string name = default, string image = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> environmentVariables = default, Azure.ResourceManager.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView instanceView = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> volumeMounts = default, Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition securityContext = default);
static member InitContainerDefinitionContent : string * string * seq<string> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> * Azure.ResourceManager.ContainerInstance.Models.InitContainerPropertiesDefinitionInstanceView * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> * Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition -> Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent
Public Shared Function InitContainerDefinitionContent (Optional name As String = Nothing, Optional image As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional environmentVariables As IEnumerable(Of ContainerEnvironmentVariable) = Nothing, Optional instanceView As InitContainerPropertiesDefinitionInstanceView = Nothing, Optional volumeMounts As IEnumerable(Of ContainerVolumeMount) = Nothing, Optional securityContext As ContainerSecurityContextDefinition = Nothing) As InitContainerDefinitionContent

Parâmetros

name
String

O nome do contêiner de inicialização.

image
String

A imagem do contêiner de inicialização.

command
IEnumerable<String>

O comando a ser executado no contêiner de inicialização no formato executável.

environmentVariables
IEnumerable<ContainerEnvironmentVariable>

As variáveis de ambiente a serem definidas no contêiner de inicialização.

instanceView
InitContainerPropertiesDefinitionInstanceView

A exibição de instância do contêiner de inicialização. Válido apenas em resposta.

volumeMounts
IEnumerable<ContainerVolumeMount>

As montagens de volume disponíveis ao contêiner de inicialização.

securityContext
ContainerSecurityContextDefinition

As propriedades de segurança do contêiner.

Retornos

Uma nova InitContainerDefinitionContent instância para zombar.

Aplica-se a