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

FlexibleServersExtensions.ExecuteCheckVirtualNetworkSubnetUsageAsync 方法

定义

获取给定 vNet 资源 ID 的虚拟网络子网使用情况。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkVirtualNetworkSubnetUsage
  • 操作IdCheckVirtualNetworkSubnetUsage_Execute
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVirtualNetworkSubnetUsageResult>> ExecuteCheckVirtualNetworkSubnetUsageAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVirtualNetworkSubnetUsageParameter mySqlFlexibleServerVirtualNetworkSubnetUsageParameter, System.Threading.CancellationToken cancellationToken = default);
static member ExecuteCheckVirtualNetworkSubnetUsageAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVirtualNetworkSubnetUsageParameter * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVirtualNetworkSubnetUsageResult>>
<Extension()>
Public Function ExecuteCheckVirtualNetworkSubnetUsageAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, mySqlFlexibleServerVirtualNetworkSubnetUsageParameter As MySqlFlexibleServerVirtualNetworkSubnetUsageParameter, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MySqlFlexibleServerVirtualNetworkSubnetUsageResult))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

locationName
AzureLocation

位置的名称。

mySqlFlexibleServerVirtualNetworkSubnetUsageParameter
MySqlFlexibleServerVirtualNetworkSubnetUsageParameter

创建或更新服务器所需的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

mySqlFlexibleServerVirtualNetworkSubnetUsageParameter 为 null。

适用于