Partilhar via


CosmosDBFirewallRuleCollection.GetIfExists(String, CancellationToken) Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/firewallRules/{firewallRuleName}
  • Operação IdMongoClusters_GetFirewallRule
public virtual Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource> GetIfExists (string firewallRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource>
Public Overridable Function GetIfExists (firewallRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of CosmosDBFirewallRuleResource)

Parâmetros

firewallRuleName
String

O nome da regra de firewall do cluster mongo.

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