Partager via


MySqlServerResource.GetMySqlVirtualNetworkRule Méthode

Définition

Obtient une règle de réseau virtuel.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}
  • IdVirtualNetworkRules_Get d’opération
public virtual Azure.Response<Azure.ResourceManager.MySql.MySqlVirtualNetworkRuleResource> GetMySqlVirtualNetworkRule (string virtualNetworkRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMySqlVirtualNetworkRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.MySql.MySqlVirtualNetworkRuleResource>
override this.GetMySqlVirtualNetworkRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.MySql.MySqlVirtualNetworkRuleResource>
Public Overridable Function GetMySqlVirtualNetworkRule (virtualNetworkRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MySqlVirtualNetworkRuleResource)

Paramètres

virtualNetworkRuleName
String

Nom de la règle de réseau virtuel.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

virtualNetworkRuleName a la valeur null.

virtualNetworkRuleName est une chaîne vide et devait être non vide.

S’applique à