NetworkSecurityGroupResource.GetDefaultSecurityRuleAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した既定のネットワーク セキュリティ規則を取得します。
- 要求パス/サブスクリプション/{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 です。