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

MongoClusterResource.GetCosmosDBFirewallRule 方法

定义

获取有关 mongo 群集防火墙规则的信息。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/firewallRules/{firewallRuleName}
  • 操作IdMongoClusters_GetFirewallRule
public virtual Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource> GetCosmosDBFirewallRule (string firewallRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCosmosDBFirewallRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource>
override this.GetCosmosDBFirewallRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBFirewallRuleResource>
Public Overridable Function GetCosmosDBFirewallRule (firewallRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CosmosDBFirewallRuleResource)

参数

firewallRuleName
String

mongo 群集防火墙规则的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

firewallRuleName 是一个空字符串,预期为非空。

firewallRuleName 为 null。

适用于