Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 236824

Re: vCD Org Default URL in orchestrator?

$
0
0

Maxel,

 

Based on the following URL http://www.virtuallyghetto.com/2011/12/leveraging-vcd-vco-wavemaker-part-1.html you can obtain the URL of the Organization by using the knowledge that we know of how the URLs are formated (e.g. they always are https://vcloud_directory_url/cloud/org/some_org_name).

 

var org = some_org;
var vcdHost = org.parent;
var vcdUrlWithoutPort = vcdHost.url.split(":443")[0];
orgUrls = vcdUrlWithoutPort + "/cloud/org/" + org.name + "/";

 

In this code we take an organization object and pull the host object of the organization, we then get the URL for the host, add on the "/cloud/org/" and then append the organization's name to the text.

 

Unfortunately, I don't have an environment up and running at the moment to test/verify this method.


Viewing all articles
Browse latest Browse all 236824

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>