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

  // Creates a new client.
  const client = new SecurityCenterClient();
  /**
   *  Required. The parent, which owns the collection of BigQuery exports. Its
   *  format is "organizations/[organization_id]/locations/[location_id]",
   *  "folders/[folder_id]/locations/[location_id]", or
   *  "projects/[project_id]/locations/[location_id]".
   */

  /**
   * TODO(developer): Update the following references for your own environment before running the sample.
   */
  // const organizationId = 'YOUR_ORGANIZATION_ID';
  // const location = 'LOCATION_ID';
  const parent = client.organizationLocationPath(organizationId, location);

  // Build the request.
  const listBigQueryExportsRequest = {
    parent,
  };

  async function listBigQueryExports() {
    // Call the API.
    const iterable = client.listBigQueryExportsAsync(
      listBigQueryExportsRequest
    );
    let count = 0;
    console.log('Sources:');
    for await (const response of iterable) {
      console.log(`${++count} ${response.name} ${response.description}`);
    }
  }

  listBigQueryExports();
  // [END securitycenter_list_bigquery_export_v2]
}
List BigQuery exports in the given parent.