To get the source code move your mouse pointer into the source code section and press on the upper right side the copy button. This copies the source code to the clipboard and now it can be pasted and saved into your target.
 * Example that returns the URLs of all registered vCenter server
 * instances as array of strings.
 * Assembler > Infrastructure > Cloud Assembly > Connections > Cloud Accounts
 * Checked with vRA 8.5.1 and 8.12.0

var vcenters = VcPlugin.allRegisteredInstances;

vcenters.forEach( function(vcenter) {

This site is part of