SecurityCenterExtensions.GetSqlVulnerabilityAssessmentBaselineRuleAsync Method

Definition

Overloads

Name Description
GetSqlVulnerabilityAssessmentBaselineRuleAsync(ArmClient, ResourceIdentifier, String, Guid, CancellationToken)

Provides a compatibility shim for the GetSqlVulnerabilityAssessmentBaselineRuleAsync operation preserved from the previous public API surface.

GetSqlVulnerabilityAssessmentBaselineRuleAsync(ArmClient, ResourceIdentifier, String, String, CancellationToken)

Gets the results for a given rule in the Baseline. <item> Mocking. To mock this method, please mock GetSqlVulnerabilityAssessmentBaselineRuleAsync(ResourceIdentifier, String, String, CancellationToken) instead. </item>

GetSqlVulnerabilityAssessmentBaselineRuleAsync(ArmClient, ResourceIdentifier, String, Guid, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Provides a compatibility shim for the GetSqlVulnerabilityAssessmentBaselineRuleAsync operation preserved from the previous public API surface.

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>> GetSqlVulnerabilityAssessmentBaselineRuleAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string ruleId, Guid workspaceId, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlVulnerabilityAssessmentBaselineRuleAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>>
<Extension()>
Public Function GetSqlVulnerabilityAssessmentBaselineRuleAsync (client As ArmClient, scope As ResourceIdentifier, ruleId As String, workspaceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlVulnerabilityAssessmentBaselineRuleResource))

Parameters

client
ArmClient

The value preserved for API compatibility.

scope
ResourceIdentifier

The value preserved for API compatibility.

ruleId
String

The value preserved for API compatibility.

workspaceId
Guid

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

client or ruleId is null.

ruleId is an empty string, and was expected to be non-empty.

Applies to

GetSqlVulnerabilityAssessmentBaselineRuleAsync(ArmClient, ResourceIdentifier, String, String, CancellationToken)

Source:
SecurityCenterExtensions.cs

Gets the results for a given rule in the Baseline. <item> Mocking. To mock this method, please mock GetSqlVulnerabilityAssessmentBaselineRuleAsync(ResourceIdentifier, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>> GetSqlVulnerabilityAssessmentBaselineRuleAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string ruleId, string databaseName = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSqlVulnerabilityAssessmentBaselineRuleAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SqlVulnerabilityAssessmentBaselineRuleResource>>
<Extension()>
Public Function GetSqlVulnerabilityAssessmentBaselineRuleAsync (client As ArmClient, scope As ResourceIdentifier, ruleId As String, Optional databaseName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SqlVulnerabilityAssessmentBaselineRuleResource))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

ruleId
String

The rule Id.

databaseName
String

The name of the database to assess. Required when the API is called on the parent resource (e.g., server level) rather than on a specific database resource, since the database name is not part of the resource URI. This is the only way to assess system databases (e.g., master), which cannot be referenced directly in the resource URI.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to