Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IContainerInstanceDefinition<ParentT> 接口

定义

容器组的卷定义阶段的分组。

public interface IContainerInstanceDefinition<ParentT> : Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IContainerInstanceDefinitionBlank<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithContainerInstanceAttach<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCpuCoreCount<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithEnvironmentVariables<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithGpuResource<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithImage<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithMemorySize<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithOrWithoutPorts<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithoutPorts<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithPorts<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithPortsOrContainerInstanceAttach<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithStartingCommandLine<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithStartingCommandLineBeta<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithVolumeMountSetting<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource.Definition.IInDefinition<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type IContainerInstanceDefinition<'ParentT> = interface
    interface IContainerInstanceDefinitionBlank<'ParentT>
    interface IWithImage<'ParentT>
    interface IWithOrWithoutPorts<'ParentT>
    interface IWithPorts<'ParentT>
    interface IBeta
    interface IWithoutPorts<'ParentT>
    interface IWithPortsOrContainerInstanceAttach<'ParentT>
    interface IWithContainerInstanceAttach<'ParentT>
    interface IWithCpuCoreCount<'ParentT>
    interface IWithGpuResource<'ParentT>
    interface IWithMemorySize<'ParentT>
    interface IWithStartingCommandLine<'ParentT>
    interface IWithStartingCommandLineBeta<'ParentT>
    interface IWithEnvironmentVariables<'ParentT>
    interface IWithVolumeMountSetting<'ParentT>
    interface IInDefinition<'ParentT>
Public Interface IContainerInstanceDefinition(Of ParentT)
Implements IBeta, IContainerInstanceDefinitionBlank(Of ParentT), IInDefinition(Of ParentT), IWithContainerInstanceAttach(Of ParentT), IWithCpuCoreCount(Of ParentT), IWithEnvironmentVariables(Of ParentT), IWithGpuResource(Of ParentT), IWithImage(Of ParentT), IWithMemorySize(Of ParentT), IWithOrWithoutPorts(Of ParentT), IWithoutPorts(Of ParentT), IWithPorts(Of ParentT), IWithPortsOrContainerInstanceAttach(Of ParentT), IWithStartingCommandLine(Of ParentT), IWithStartingCommandLineBeta(Of ParentT), IWithVolumeMountSetting(Of ParentT)

类型参数

ParentT
实现

方法

Attach()

容器组的卷定义阶段的分组。

(继承自 IInDefinition<ParentT>)
WithCpuCoreCount(Double)

指定分配给此容器实例的 CPU 核心数。

(继承自 IWithCpuCoreCount<ParentT>)
WithEnvironmentVariable(String, String)

指定环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariables(IDictionary<String,String>)

指定环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariablesWithSecuredValue(IDictionary<String,String>)

指定环境变量的名称和安全值对的集合。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariableWithSecuredValue(String, String)

指定具有安全值的环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithExternalTcpPort(Int32)

指定可用于外部客户端的容器的 TCP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalTcpPorts(Int32[])

指定可用于外部客户端的容器的 TCP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalUdpPort(Int32)

指定可用于外部客户端的容器的 UDP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalUdpPorts(Int32[])

指定可用于外部客户端的容器的 UDP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithGpuResource(Int32, GpuSku)

容器组的卷定义阶段的分组。

(继承自 IWithGpuResource<ParentT>)
WithImage(String)

指定要使用的容器映像。

(继承自 IWithImage<ParentT>)
WithInternalTcpPort(Int32)

指定容器的 TCP 端口仅可供内部客户端 (容器组) 中的其他容器实例使用。 组内的容器可以通过它们已公开的端口上的 localhost 相互访问,即使这些端口并未在组的 IP 地址上对外公开。

(继承自 IWithPorts<ParentT>)
WithInternalTcpPorts(Int32[])

指定容器的 TCP 端口仅可供内部客户端 (容器组) 中的其他容器实例使用。 组内的容器可以通过它们已公开的端口上的 localhost 相互访问,即使这些端口并未在组的 IP 地址上对外公开。

(继承自 IWithPorts<ParentT>)
WithInternalUdpPort(Int32)

指定容器的 UDP 端口仅可供内部客户端 (容器组) 中的其他容器实例使用。 组内的容器可以通过它们已公开的端口上的 localhost 相互访问,即使这些端口并未在组的 IP 地址上对外公开。

(继承自 IWithPorts<ParentT>)
WithInternalUdpPorts(Int32[])

指定容器的 Udp 端口可供内部客户端仅 (容器组) 中的其他容器实例使用。 组内的容器可以通过它们已公开的端口上的 localhost 相互访问,即使这些端口并未在组的 IP 地址上对外公开。

(继承自 IWithPorts<ParentT>)
WithMemorySizeInGB(Double)

指定分配给此容器实例的内存大小(以 GB 为单位)。

(继承自 IWithMemorySize<ParentT>)
WithoutPorts()

指定不会为此容器实例在内部或外部打开端口。

(继承自 IWithoutPorts<ParentT>)
WithReadOnlyVolumeMountSetting(IDictionary<String,String>)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithReadOnlyVolumeMountSetting(String, String)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithStartingCommandLine(String)

指定起始命令行。

(继承自 IWithStartingCommandLine<ParentT>)
WithStartingCommandLine(String, String[])

指定起始命令行。

(继承自 IWithStartingCommandLineBeta<ParentT>)
WithVolumeMountSetting(IDictionary<String,String>)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithVolumeMountSetting(String, String)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)

适用于