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

IWithCreate 接口

定义

虚拟网络定义的阶段,它包含要创建的资源所需的所有最低输入,但也允许指定除添加子网以外的任何其他可选设置。 只能在显式指定地址空间后立即添加子网。

public interface IWithCreate : Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithDdosProtectionPlan, Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithVmProtection, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Resource.Definition.IDefinitionWithTags<Microsoft.Azure.Management.Network.Fluent.Network.Definition.IWithCreate>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.INetwork>
type IWithCreate = interface
    interface ICreatable<INetwork>
    interface IIndexable
    interface IDefinitionWithTags<IWithCreate>
    interface IWithDdosProtectionPlan
    interface IWithVmProtection
Public Interface IWithCreate
Implements ICreatable(Of INetwork), IDefinitionWithTags(Of IWithCreate), IWithDdosProtectionPlan, IWithVmProtection
派生
实现

属性

Key

虚拟网络定义的阶段,它包含要创建的资源所需的所有最低输入,但也允许指定除添加子网以外的任何其他可选设置。 只能在显式指定地址空间后立即添加子网。

(继承自 IIndexable)
Name

获取可创建资源的名称。

(继承自 ICreatable<T>)

方法

Create()

执行创建请求。

(继承自 ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

将请求放入队列,并允许 HTTP 客户端在系统资源可用时执行该请求。

(继承自 ICreatable<T>)
WithAddressSpace(String)

将地址空间显式添加到虚拟网络。 如果未显式指定地址空间,则会将 CIDR 为“10.0.0.0/16”的默认地址空间分配给虚拟网络。 请注意,此方法的效果是累加的,即每次使用时,都会向网络添加新的地址空间。 此方法不会检查冲突或与其他地址空间重叠。 如果存在冲突,则在创建网络时可能会引发云异常。

WithDnsServer(String)

指定要与虚拟网络关联的现有 DNS 服务器的 IP 地址。 请注意,此方法的效果是累加的,即每次使用它时,都会向网络添加新的 dns 服务器。

WithExistingDdosProtectionPlan(String)

将现有 DDoS 防护计划与虚拟网络相关联。

(继承自 IWithDdosProtectionPlan)
WithNewDdosProtectionPlan()

在虚拟网络所在的同一区域和组中创建新的 DDoS 防护计划,并将其与资源相关联。 DDoS 保护计划的内部名称将派生自资源的名称。

(继承自 IWithDdosProtectionPlan)
WithTag(String, String)

将标记添加到资源。

(继承自 IDefinitionWithTags<T>)
WithTags(IDictionary<String,String>)

将资源的标记指定为 {@link Map}。

(继承自 IDefinitionWithTags<T>)
WithVmProtection()

为虚拟网络中的所有子网启用 VM 保护。

(继承自 IWithVmProtection)

适用于