UNPKG

@azure/arm-security

Version:
32 lines 1.67 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 Use this method to dismiss an aggregated IoT Security Solution Alert. * * @summary Use this method to dismiss an aggregated IoT Security Solution Alert. * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/examples/IoTSecuritySolutionsAnalytics/PostIoTSecuritySolutionsSecurityAggregatedAlertDismiss.json */ function dismissAnAggregatedIoTSecuritySolutionAlert() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "20ff7fc3-e762-44dd-bd96-b71116dcdc23"; const resourceGroupName = "IoTEdgeResources"; const solutionName = "default"; const aggregatedAlertName = "IoT_Bruteforce_Fail/2019-02-02/dismiss"; const credential = new DefaultAzureCredential(); const client = new SecurityCenter(credential, subscriptionId); const result = yield client.iotSecuritySolutionsAnalyticsAggregatedAlert.dismiss(resourceGroupName, solutionName, aggregatedAlertName); console.log(result); }); } dismissAnAggregatedIoTSecuritySolutionAlert().catch(console.error); //# sourceMappingURL=iotSecuritySolutionsAnalyticsAggregatedAlertDismissSample.js.map