function main(organizationId, muteConfigId) {
  // [START securitycenter_create_mute_config_v2]
  // Imports the Google Cloud client library.
  const {SecurityCenterClient} = require('@google-cloud/security-center').v2;

  // Create a Security Center client
  const client = new SecurityCenterClient();

  /**
   *  Required. Name of the mute config to retrieve. The following list shows
   *  some examples of the format:
   *  `organizations/{organization}/muteConfigs/{config_id}`
   *  `organizations/{organization}/locations/{location}/muteConfigs/{config_id}`
   *  `folders/{folder}/muteConfigs/{config_id}`
   *  `folders/{folder}/locations/{location}/muteConfigs/{config_id}`
   *  `projects/{project}/muteConfigs/{config_id}`
   *  `projects/{project}/locations/{location}/muteConfigs/{config_id}`
   */

  /**
   * TODO(developer): Update the following references for your own environment before running the sample.
   */
  // const organizationId = 'YOUR_ORGANIZATION_ID';
  // const muteConfigId = 'MUTE_CONFIG_ID';

  const name = `organizations/${organizationId}/muteConfigs/${muteConfigId}`;

  // Build the request.
  const getMuteRuleRequest = {
    name,
  };

  async function createMuteRuleConfig() {
    // Call the API.
    const [muteConfig] = await client.getMuteConfig(getMuteRuleRequest);
    console.log('Get mute rule config: %j', muteConfig);
  }

  createMuteRuleConfig();
  // [END securitycenter_create_mute_config_v2]
}
Retrieves a mute configuration given its resource name.