1.0

Table Of Contents
VMware, Inc. 33
3
AvCloudAPIclientcanuseHTTPGETrequeststobrowsecontainerssuchasorganizations,catalogs,and
vDCs.Responsestotheserequestsincludemetadataaboutthecontaineritselfandreferencestotheobjectsit
contains.ThesereferencesareprovidedinLinkelements,whichhavehrefattributeswhosevaluestheclient
can
useinrequeststogetmoreinformationabouttheobjectsthemselves.Thishierarchicalstructureof
containerslendsitselftographicalrepresentationasafolderhierarchyortreeviewofvCloudobjects,and
enablesclientstousethesamesetofobjectsandoperationstoimplementabreadthfirstordepth
first
approachtobrowsing.
Thischapterincludesthefollowingtopics:
“SummaryofBrowsingRequests”onpage 33
“DiscoveringtheContentsofanOrganization,Catalog,orvDC”onpage 34
“GettingMoreInformationAboutanObject”onpage 38
Summary of Browsing Requests
Table 31summarizesbrowsingrequestssupportedinthisrelease.Thetableusesthefollowingconventions:
APIURLisaURLoftheformhttp://vcloud.example.com/api/v1.0
idisaninteger
Browsing
3
Table 3-1. Summary of Browsing Requests
Operation Request Request Body Response
ShowLoginURLandListSupported
APIVersions
GEThttp://hostname/api/versions None SupportedVersions
Login POSTAPIURL/login None OrgList
Logout POSTAPIURL/logout None 200OK
ListtheOrganizationsinavCloud GETAPIURL/org None OrgList
ListtheContentsofanOrganization GETAPIURL/org/id None Org
GetInformationAboutaNetwork GETAPIURL/network/id None OrgNetwork
Listthe
ContentsofaCatalog GETAPIURL/catalog/id None Catalog
GetInformationAboutaCatalogItem GETAPIURL/catalogItem/id None CatalogItem
ListtheContentsofavDC GETAPIURL/vdc/id None Vdc
GetInformationAboutaMediaImage GETAPIURL/media/id None Media
GetInformationAbouta
vAppTemplate
GETAPIURL/vAppTemplate/vappTemplateid None VAppTemplate
GetInformationAbouta
vAppor
VirtualMachine
GETAPIURL/vApp/vappid None VApp