// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.sql.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.sql.models.VulnerabilityAssessmentName;

/** Samples for ManagedDatabaseVulnerabilityAssessmentScans Get. */
public final class ManagedDatabaseVulnerabilityAssessmentScansGetSamples {
    /*
     * x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/ManagedDatabaseVulnerabilityAssessmentScanRecordsGet.json
     */
    /**
     * Sample code: Gets a database vulnerability assessment scan record by scan ID.
     *
     * @param azure The entry point for accessing resource management APIs in Azure.
     */
    public static void getsADatabaseVulnerabilityAssessmentScanRecordByScanID(
        com.azure.resourcemanager.AzureResourceManager azure) {
        azure
            .sqlServers()
            .manager()
            .serviceClient()
            .getManagedDatabaseVulnerabilityAssessmentScans()
            .getWithResponse(
                "vulnerabilityassessmenttest-4711",
                "vulnerabilityassessmenttest-6411",
                "testdb",
                VulnerabilityAssessmentName.DEFAULT,
                "scan001",
                Context.NONE);
    }
}
