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

  // Creates a new client.
  const client = new SecurityCenterClient();
  // organizationId is numeric organization identifier.
  /*
   * TODO(developer): Uncomment the following lines
   */
  // const organizationId = "1234567777";
  async function createSource() {
    const [source] = await client.createSource({
      source: {
        displayName: 'Customized Display Name',
        description: 'A new custom source that does X',
      },
      parent: client.organizationPath(organizationId),
    });
    console.log('New Source: %j', source);
  }
  createSource();
  // [END securitycenter_create_source]
}
createSource demonstrates how to create a new security finding source.