/// <summary> /// Executes a Vulnerability Assessment database scan. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='scanId'> /// The vulnerability assessment scan Id of the scan to retrieve. /// </param> public static void InitiateScan(this ISqlPoolVulnerabilityAssessmentScans operations, string resourceGroupName, string workspaceName, string sqlPoolName, string scanId) { operations.InitiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, scanId).GetAwaiter().GetResult(); }
/// <summary> /// Lists the vulnerability assessment scans of a SQL pool /// </summary> /// <remarks> /// Lists the vulnerability assessment scans of a SQL pool. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VulnerabilityAssessmentScanRecordListResult> ListAsync(this ISqlPoolVulnerabilityAssessmentScans operations, string resourceGroupName, string workspaceName, string sqlPoolName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Convert an existing scan result to a human readable format. If already /// exists nothing happens /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='scanId'> /// The vulnerability assessment scan Id of the scan to retrieve. /// </param> public static SqlPoolVulnerabilityAssessmentScansExport Export(this ISqlPoolVulnerabilityAssessmentScans operations, string resourceGroupName, string workspaceName, string sqlPoolName, string scanId) { return(operations.ExportAsync(resourceGroupName, workspaceName, sqlPoolName, scanId).GetAwaiter().GetResult()); }
/// <summary> /// Lists the vulnerability assessment scans of a SQL pool /// </summary> /// <remarks> /// Lists the vulnerability assessment scans of a SQL pool. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> public static VulnerabilityAssessmentScanRecordListResult List(this ISqlPoolVulnerabilityAssessmentScans operations, string resourceGroupName, string workspaceName, string sqlPoolName) { return(operations.ListAsync(resourceGroupName, workspaceName, sqlPoolName).GetAwaiter().GetResult()); }
/// <summary> /// Executes a Vulnerability Assessment database scan. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='sqlPoolName'> /// SQL pool name /// </param> /// <param name='scanId'> /// The vulnerability assessment scan Id of the scan to retrieve. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task InitiateScanAsync(this ISqlPoolVulnerabilityAssessmentScans operations, string resourceGroupName, string workspaceName, string sqlPoolName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.InitiateScanWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }