UNPKG

@azure/arm-dns

Version:
31 lines 1.32 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 { DnsManagementClient } from "@azure/arm-dns"; import { DefaultAzureCredential } from "@azure/identity"; /** * This sample demonstrates how to Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone. * * @summary Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone. * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/GetZone.json */ function getZone() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "subid"; const resourceGroupName = "rg1"; const zoneName = "zone1"; const credential = new DefaultAzureCredential(); const client = new DnsManagementClient(credential, subscriptionId); const result = yield client.zones.get(resourceGroupName, zoneName); console.log(result); }); } getZone().catch(console.error); //# sourceMappingURL=zonesGetSample.js.map