Partilhar via


MySqlFlexibleServerFirewallRuleCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}
  • IdFirewallRules_Get de operação
public virtual Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerFirewallRuleResource> GetIfExists (string firewallRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerFirewallRuleResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerFirewallRuleResource>
Public Overridable Function GetIfExists (firewallRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of MySqlFlexibleServerFirewallRuleResource)

Parâmetros

firewallRuleName
String

O nome da regra de firewall do servidor.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

firewallRuleName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

firewallRuleName é nulo.

Aplica-se a