MockableSecurityCenterSubscriptionResource.GetSubscriptionGovernanceRuleAsync 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 method is obsolete and will be removed in a future release.
Gets a subscription governance rule for this subscription.
[System.Obsolete("This method is obsolete and will be removed in a future release.", false)]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>> GetSubscriptionGovernanceRuleAsync(string ruleId, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This method is obsolete and will be removed in a future release.", false)>]
abstract member GetSubscriptionGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>>
override this.GetSubscriptionGovernanceRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>>
Public Overridable Function GetSubscriptionGovernanceRuleAsync (ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionGovernanceRuleResource))
Parameters
- ruleId
- String
The security GovernanceRule key - unique key for the standard GovernanceRule.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
- Attributes
Exceptions
ruleId is an empty string, and was expected to be non-empty.
ruleId is null.