Sdílet prostřednictvím


FlexibleServersExtensions.ExecuteVirtualNetworkSubnetUsage Method

Definition

Get virtual network subnet usage for a given vNet resource id.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage
  • Operation Id: VirtualNetworkSubnetUsage_Execute
  • Default Api Version: 2024-08-01
public static Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult> ExecuteVirtualNetworkSubnetUsage (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter, System.Threading.CancellationToken cancellationToken = default);
static member ExecuteVirtualNetworkSubnetUsage : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult>
<Extension()>
Public Function ExecuteVirtualNetworkSubnetUsage (subscriptionResource As SubscriptionResource, locationName As AzureLocation, postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter As PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PostgreSqlFlexibleServerVirtualNetworkSubnetUsageResult)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

locationName
AzureLocation

The name of the location.

postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter
PostgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter

The required parameters for creating or updating a server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or postgreSqlFlexibleServerVirtualNetworkSubnetUsageParameter is null.

Applies to