UNPKG

@azure/arm-security

Version:
31 lines 1.44 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 Retrieves information about the model of a security automation. * * @summary Retrieves information about the model of a security automation. * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/Automations/GetAutomationResourceGroup_example.json */ function retrieveASecurityAutomation() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "a5caac9c-5c04-49af-b3d0-e204f40345d5"; const resourceGroupName = "exampleResourceGroup"; const automationName = "exampleAutomation"; const credential = new DefaultAzureCredential(); const client = new SecurityCenter(credential, subscriptionId); const result = yield client.automations.get(resourceGroupName, automationName); console.log(result); }); } retrieveASecurityAutomation().catch(console.error); //# sourceMappingURL=automationsGetSample.js.map