EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
110 VMware, Inc.
<CatalogItems>
<CatalogItem name="Ubuntu Template with vsftpd"
type="application/vnd.vmware.vcloud.catalogItem+xml"
href="http://vcloud.example.com/api/v1.0/catalogItem/221">
<Description>Approved template for public FTP sites</Description>
<Entity href="http://vcloud.example.com/api/v1.0/vAppTemplate/vappTemplate-111"/>
<Property key="Owner">Tech Ops</Property>
</CatalogItem>
</CatalogItems>
</Catalog>
Remove a Catalog
AnadministratorcanremoveacatalogbymakingaDELETErequesttothecatalog’srel="remove"URL.
Example 623removesthecatalogcreatedinExample 619.
Example 6-23. Remove a Catalog
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/catalog/32
Response:
204 No Content
User Administration
UserscanbecreatedinanorganizationorimportedintotheorganizationfromanLDAPdirectoryservice.
Create or Import a User
Everyuserexistswithinthecontextofanorganization.Anadministratorcanaddausertoanorganizationby
POSTingaUserbodytotheorganization’saddURLforusers,asshowninExample 624,whichaddstheuser
totheorganizationcreatedinExample 63.Theresponseisa
Userelement,mostofwhichisnotshowninthe
example.Theelementincludesalinkthatanadministratorcanusetoedittheuser,andadditionalelements,
suchasIsDefaultCachedandStoredVmQuota,inheritedfromorganizationdefaults.
Example 6-24. Create a User
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/users
Content-Type: application/vnd.vmware.admin.user+xml
<User name="ExampleUser" xmlns="http://www.vmware.com/vcloud/v1">
<FullName>Example User Full Name</FullName>
<EmailAddress>user@example.com</EmailAddress>
<IsEnabled>true</IsEnabled>
<Role type="application/vnd.vmware.admin.role+xml"
href="http://vcloud.example.com/api/v1.0/admin/role/105"/>
<Password>Pa55w0rd</Password>
</User>
NOTEModifyingcatalogmetadatadoesnotaffectCatalogItemelements.Youcannotcreateacatalogthat
hasCatalogItemelementsinit.Theymustbeaddedinaseparateoperation.Forinformationaboutadding
andremovingtheseelements,see“CatalogingvAppTemplatesandMediaImages”onpage 54.

Table of Contents

Related product manuals