@azure/arm-security
Version:
A generated SDK for SecurityCenter.
32 lines • 1.57 kB
JavaScript
/*
* 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 a specific external Security Solution.
*
* @summary Gets a specific external Security Solution.
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
*/
function getExternalSecuritySolution() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "20ff7fc3-e762-44dd-bd96-b71116dcdc23";
const resourceGroupName = "defaultresourcegroup-eus";
const ascLocation = "centralus";
const externalSecuritySolutionsName = "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus";
const credential = new DefaultAzureCredential();
const client = new SecurityCenter(credential, subscriptionId);
const result = yield client.externalSecuritySolutions.get(resourceGroupName, ascLocation, externalSecuritySolutionsName);
console.log(result);
});
}
getExternalSecuritySolution().catch(console.error);
//# sourceMappingURL=externalSecuritySolutionsGetSample.js.map