SecurityConnectorResource.GetSecurityConnectorGovernanceRuleAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is obsolete and will be removed in a future release.
Provides a compatibility shim for the GetSecurityConnectorGovernanceRuleAsync operation preserved from the previous public API surface.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>> GetSecurityConnectorGovernanceRuleAsync(string ruleId, System.Threading.CancellationToken cancellationToken = default);
[System.Obsolete("This class is obsolete and will be removed in a future release.", false)]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>> GetSecurityConnectorGovernanceRuleAsync(string ruleId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityConnectorGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>>
override this.GetSecurityConnectorGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>>
[<System.Obsolete("This class is obsolete and will be removed in a future release.", false)>]
abstract member GetSecurityConnectorGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>>
override this.GetSecurityConnectorGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityConnectorGovernanceRuleResource>>
Public Overridable Function GetSecurityConnectorGovernanceRuleAsync (ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityConnectorGovernanceRuleResource))
Parameters
- ruleId
- String
The value preserved for API compatibility.
- cancellationToken
- CancellationToken
The value preserved for API compatibility.
Returns
The compatibility result.
- Attributes
Exceptions
ruleId is an empty string, and was expected to be non-empty.
ruleId is null.