SecurityCenterExtensions.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.
Provides a compatibility shim for the GetSubscriptionGovernanceRuleAsync operation preserved from the previous public API surface.
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>> GetSubscriptionGovernanceRuleAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string ruleId, System.Threading.CancellationToken cancellationToken = default);
[System.Obsolete("This method is obsolete and will be removed in a future release.", false)]
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>> GetSubscriptionGovernanceRuleAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string ruleId, System.Threading.CancellationToken cancellationToken = default);
static member GetSubscriptionGovernanceRuleAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>>
[<System.Obsolete("This method is obsolete and will be removed in a future release.", false)>]
static member GetSubscriptionGovernanceRuleAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionGovernanceRuleResource>>
<Extension()>
Public Function GetSubscriptionGovernanceRuleAsync (subscriptionResource As SubscriptionResource, ruleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionGovernanceRuleResource))
Parameters
- subscriptionResource
- SubscriptionResource
The value preserved for API compatibility.
- 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.