text: /*
   * 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.
   */
  
  // Copyright (c) Microsoft Corporation.
  // Licensed under the MIT License.
  const { PostgreSQLManagementClient } = require("@azure/arm-postgresql");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Gets information about a server firewall rule.
   *
   * @summary Gets information about a server firewall rule.
   * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/examples/FirewallRuleGet.json
   */
  async function firewallRuleGet() {
    const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
    const resourceGroupName = "TestGroup";
    const serverName = "testserver";
    const firewallRuleName = "rule1";
    const credential = new DefaultAzureCredential();
    const client = new PostgreSQLManagementClient(credential, subscriptionId);
    const result = await client.firewallRules.get(resourceGroupName, serverName, firewallRuleName);
    console.log(result);
  }
  
  firewallRuleGet().catch(console.error);
  