次の方法で共有


NetworkSecurityGroupResource.GetDefaultSecurityRuleAsync メソッド

定義

指定した既定のネットワーク セキュリティ規則を取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • 操作IdDefaultSecurityRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DefaultSecurityRuleResource>> GetDefaultSecurityRuleAsync (string defaultSecurityRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDefaultSecurityRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DefaultSecurityRuleResource>>
override this.GetDefaultSecurityRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.DefaultSecurityRuleResource>>
Public Overridable Function GetDefaultSecurityRuleAsync (defaultSecurityRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DefaultSecurityRuleResource))

パラメーター

defaultSecurityRuleName
String

既定のセキュリティ規則の名前。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

defaultSecurityRuleName は空の文字列であり、空でないと予想されていました。

defaultSecurityRuleName が null です。

適用対象