UNPKG

@azure/arm-security

Version:
31 lines 1.63 kB
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { __awaiter } from "tslib"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { SecurityCenter } from "@azure/arm-security"; import { DefaultAzureCredential } from "@azure/identity"; /** * This sample demonstrates how to Gets the results for all rules in the Baseline. * * @summary Gets the results for all rules in the Baseline. * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_List.json */ function listBaselineForAllRules() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const workspaceId = "55555555-6666-7777-8888-999999999999"; const resourceId = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Rg/providers/Microsoft.HybridCompute/machines/MyMachine/sqlServers/server1/databases/master"; const credential = new DefaultAzureCredential(); const client = new SecurityCenter(credential, subscriptionId); const result = yield client.sqlVulnerabilityAssessmentBaselineRules.list(workspaceId, resourceId); console.log(result); }); } listBaselineForAllRules().catch(console.error); //# sourceMappingURL=sqlVulnerabilityAssessmentBaselineRulesListSample.js.map