UNPKG

@azure/arm-security

Version:
32 lines 1.75 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 Supported regulatory compliance details and state for selected assessment * * @summary Supported regulatory compliance details and state for selected assessment * x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/RegulatoryCompliance/getRegulatoryComplianceAssessment_example.json */ function getSelectedRegulatoryComplianceAssessmentDetailsAndState() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "20ff7fc3-e762-44dd-bd96-b71116dcdc23"; const regulatoryComplianceStandardName = "PCI-DSS-3.2"; const regulatoryComplianceControlName = "1.1"; const regulatoryComplianceAssessmentName = "968548cb-02b3-8cd2-11f8-0cf64ab1a347"; const credential = new DefaultAzureCredential(); const client = new SecurityCenter(credential, subscriptionId); const result = yield client.regulatoryComplianceAssessments.get(regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName); console.log(result); }); } getSelectedRegulatoryComplianceAssessmentDetailsAndState().catch(console.error); //# sourceMappingURL=regulatoryComplianceAssessmentsGetSample.js.map