vCloud API Programming Guide
110
VMware, Inc.
<CatalogItems>
<CatalogItem name="Ubuntu Template with vsftpd"
type="application/vnd.vmware.vcloud.cataxml"
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
An
administrator
can
remove
a
catalog
by
making
a
DELETE
request
to
the
catalog’s
rel="remove"
URL.
Example 6
‐
23
removes
the
catalog
created
in
Example 6
‐
19
.
Example 6-23.
Remove a Catalog
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/catalog/32
Response:
204 No Content
User Administration
Users
can
be
created
in
an
organization
or
imported
into
the
organization
from
an
LDAP
directory
service.
Create or Import a User
Every
user
exists
within
the
context
of
an
organization.
An
administrator
can
add
a
user
to
an
organization
by
POSTing
a
User
body
to
the
organization’s
add
URL
for
users,
as
shown
in
Example 6
‐
24
,
which
adds
the
user
to
the
organization
created
in
Example 6
‐
3
.
The
response
is
a
User
element,
most
of
which
is
not
shown
in
the
example.
The
element
includes
a
link
that
an
administrator
can
use
to
edit
the
user,
and
additional
elements,
such
as
IsDefaultCached
and
StoredVmQuota
,
inherited
from
organization
defaults.
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>[email protected]</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>
N
OTE
Modifying
catalog
metadata
does
not
affect
CatalogItem
elements.
You
cannot
create
a
catalog
that
has
CatalogItem
elements
in
it.
They
must
be
added
in
a
separate
operation.
For
information
about
adding
and
removing
these
elements,
see
“Cataloging
vApp
Templates
and
Media
Images”
on
page 54.
Содержание VCLOUD API 1.0 - TECHNICAL NOTE
Страница 10: ...vCloud API Programming Guide 10 VMware Inc...
Страница 20: ...vCloud API Programming Guide 20 VMware Inc...
Страница 32: ...vCloud API Programming Guide 32 VMware Inc...
Страница 90: ...vCloud API Programming Guide 90 VMware Inc...
Страница 150: ...vCloud API Programming Guide 150 VMware Inc...
Страница 170: ...vCloud API Programming Guide 170 VMware Inc...
Страница 202: ...vCloud API Programming Guide 202 VMware Inc...
Страница 212: ...vCloud API Programming Guide 212 VMware Inc...