UNPKG

@azure/arm-security

Version:
32 lines 1.68 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 Deletes a rule from the Baseline of a given database. * * @summary Deletes a rule from the Baseline of a given database. * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2020-07-01-preview/examples/sqlVulnerabilityAssessmentsBaselineRuleOperations/ArcMachineBaselineRules_Delete.json */ function deleteTheBaseline() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const ruleId = "VA1234"; 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.delete(ruleId, workspaceId, resourceId); console.log(result); }); } deleteTheBaseline().catch(console.error); //# sourceMappingURL=sqlVulnerabilityAssessmentBaselineRulesDeleteSample.js.map