5.1

Table Of Contents
To upload the certificate, make a PUT request to the uploadLocation URL and supply the certificate in the
request body.
Request:
PUT https://vcloud.example.com/transfer/53bc1/ldapCertificate
Content-length: 2048
...serialized contents of certificate...
EOF
Response:
200 OK
Retrieve the vSphere URL of an Object
If you know the VimObjectType and MoRef of an object represented in the vCloud API, you can use that
information to retrieve a URL that you can use to access the object with the vSphere Web Client.
Using the vSphere Web Client to examine an object vCloud Director uses can help a system administrator
diagnose problems with resource consumption and allocation. To retrieve the vSphere URL of an object, you
must construct a request URL in the following format.
API-URL
/admin/extension/vimServer/
id
/
vimObjType
/
vimObjMoref
/vSphereWebClientUrl
n
API-URL is a URL of the form https://vcloud.example.com/api.
n
id is a unique identifier in the form of a UUID, as defined by RFC 4122. The vimServer object that has this
id must be the one that hosts the object that vimObjType and vimObjMoref identify.
n
vimObjType is the vSphere object type, expressed as one of the following strings:
n
CLUSTER_COMPUTE_RESOURCE
n
DATASTORE
n
DATASTORE_CLUSTER
n
DV_PORTGROUP
n
DV_SWITCH
n
FOLDER
n
HOST
n
NETWORK
n
RESOURCE_POOL
n
STORAGE_PROFILE (available from vCenter 5.1 and later)
n
VIRTUAL_MACHINE
n
vimObjMoref is the vSphere managed object reference of the object, as returned by the vCloud API.
For an example request URL, see the request portion of “Example: Retrieve the vSphere URL of a Resource
Pool,” on page 237. All of the information you need to construct the URL is available when you retrieve the
XML representation of any of the supported object types. See “Example: Retrieve a Resource Pool Set,” on
page 213, “Example: Retrieve a List of Available Portgroups and Switches from a vCenter Server,” on
page 203, and “Example: Retrieve a List of Storage Profiles from a vCenter Server,” on page 208.
NOTE See “Mapping a vCloud Director Object to a vSphere Object,” on page 237 for a list of
vCloud Director objects and corresponding vSphere objects.
vCloud API Programming Guide
236 VMware, Inc.