VMware Cloud Community
maxel
Enthusiast
Enthusiast

vCD Org Default URL in orchestrator?

Hi!

Is ist possible to get the Default (Admin) URL of an vCD Org with Orchestrator? I can't find the attribute..

Thxorg_url.PNG

5 Replies
firestartah
Virtuoso
Virtuoso

You can obtain it by using plug-ins into the api. Have a look at the link below on how to obtain this information

VMware vCloud Director Documentation Center

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful". Gregg http://thesaffageek.co.uk
0 Kudos
stevenbright1
Enthusiast
Enthusiast

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.

0 Kudos
maxel
Enthusiast
Enthusiast

Hi!

Yes, thx, that's the way we do at at the moment. But i thought there is an variable for that...

0 Kudos
cdecanini_
VMware Employee
VMware Employee

I do not think there is a property. You can use the href property and truncate it at /api and add the org name there.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
cdecanini_
VMware Employee
VMware Employee

Oh I did not see the previous reply. Funny the code above is something I wrote for William Smiley Happy

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter