你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SynapseSqlPoolVulnerabilityAssessmentResource.GetSynapseSqlPoolVulnerabilityAssessmentRuleBaselineAsync 方法

定义

获取 SqlPool 的漏洞评估规则基线。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}
  • 操作IdSqlPoolVulnerabilityAssessmentRuleBaselines_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Synapse.SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource>> GetSynapseSqlPoolVulnerabilityAssessmentRuleBaselineAsync (string ruleId, Azure.ResourceManager.Synapse.Models.SynapseVulnerabilityAssessmentPolicyBaselineName baselineName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSynapseSqlPoolVulnerabilityAssessmentRuleBaselineAsync : string * Azure.ResourceManager.Synapse.Models.SynapseVulnerabilityAssessmentPolicyBaselineName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Synapse.SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource>>
override this.GetSynapseSqlPoolVulnerabilityAssessmentRuleBaselineAsync : string * Azure.ResourceManager.Synapse.Models.SynapseVulnerabilityAssessmentPolicyBaselineName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Synapse.SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource>>
Public Overridable Function GetSynapseSqlPoolVulnerabilityAssessmentRuleBaselineAsync (ruleId As String, baselineName As SynapseVulnerabilityAssessmentPolicyBaselineName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SynapseSqlPoolVulnerabilityAssessmentRuleBaselineResource))

参数

ruleId
String

漏洞评估规则 ID。

baselineName
SynapseVulnerabilityAssessmentPolicyBaselineName

默认 (漏洞评估规则基线的名称表示 Sql 池级别规则上的基线和服务器级规则) 的主数据库。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

ruleId 是一个空字符串,预期为非空。

ruleId 为 null。

适用于