POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/default/scans/{scanId}/initiateScan?api-version=2021-11-01
URI パラメーター
名前
/
必須
型
説明
databaseName
path
True
string
データベースの名前。
resourceGroupName
path
True
string
リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4711/providers/Microsoft.Sql/servers/vulnerabilityassessmenttest-6411/databases/testdb/vulnerabilityAssessments/default/scans/scan01/initiateScan?api-version=2021-11-01
import com.azure.resourcemanager.sql.models.VulnerabilityAssessmentName;
/**
* Samples for DatabaseVulnerabilityAssessmentScans InitiateScan.
*/
public final class Main {
/*
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/
* DatabaseVulnerabilityAssessmentScansExecute.json
*/
/**
* Sample code: Executes a database's vulnerability assessment scan.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void
executesADatabaseSVulnerabilityAssessmentScan(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getDatabaseVulnerabilityAssessmentScans().initiateScan(
"vulnerabilityassessmenttest-4711", "vulnerabilityassessmenttest-6411", "testdb",
VulnerabilityAssessmentName.DEFAULT, "scan01", com.azure.core.util.Context.NONE);
}
}