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

FlexibleServersExtensions.ExecuteVirtualNetworkSubnetUsageAsync 方法

定义

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

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

参数

subscriptionResource
SubscriptionResource

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

locationName
AzureLocation

位置的名称。

postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter
PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter 为 null。

适用于