vCloud API Programming Guide
108
VMware, Inc.
A
Task
that
tracks
the
creation
of
the
catalog
An
IsPublished
element
whose
content
is
the
string
false
.
Example 6-19.
Create a Catalog
Request:
POST http://vcloud.example.com/api/v1.0/admin/org/26/catalogs
Content-Type: application/vnd.vmware.admin.xml
<Catalog name="Custom Catalog" xmlns="http://www.vmware.com/vcloud/v1">
<Description>Custom Catalog</Description>
</Catalog>
Response:
201 Created
Content-Type: application/vnd.vmware.admin.xml
...
<Catalog href="http://vcloud.example.com/api/v1.0/catalog/32" name="Custom Catalog" ...>
<Description>Custom Catalog</Description>
<Tasks>
<Task ...>
...
<Task>
<Tasks>
<Link rel="up" type="application/vnd.vmware.admin.organxml"
href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="alternate" href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="add" type="application/vnd.vmware.vcloud.cataxml"
href="http://vcloud.example.com/api/v1.0/catalog/32/catalogItems"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.xml"
href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/catalog/32"/>
<Link rel="publish" href="http://vcloud.example.com/api/v1.0/catalog/32/action/publish"/>
<CatalogItems/>
<IsPublished>false</IsPublished>
</Catalog>
Get an Administrative View of a Catalog
An
administrative
view
of
a
catalog
is
nearly
identical
to
a
user
view
but
contains
additional
action
links
that
support
administrative
operations
such
as
edit
and
remove.
To
see
an
administrative
view
of
a
catalog,
an
administrator
can
make
a
GET
request
to
its
admin
URL,
as
shown
in
Example 6
‐
20
.
For
a
user
view
of
the
same
catalog,
see
Example 3
‐
2
on
page 35
.
Example 6-20.
Get an Administrative View of a Catalog
Request:
GET http://vcloud.example.com/api/v1.0/admin/catalog/32
Response:
200 OK
Content-Type: application/vnd.vmware.admin.xml
...
<Catalog .... >
...
<Link rel="edit" href="http://vcloud.example.com/api/v1.0/admin/catalog/32"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/catalog/32"/>
Summary of Contents for VCLOUD API 1.0 - TECHNICAL NOTE
Page 10: ...vCloud API Programming Guide 10 VMware Inc...
Page 20: ...vCloud API Programming Guide 20 VMware Inc...
Page 32: ...vCloud API Programming Guide 32 VMware Inc...
Page 90: ...vCloud API Programming Guide 90 VMware Inc...
Page 150: ...vCloud API Programming Guide 150 VMware Inc...
Page 170: ...vCloud API Programming Guide 170 VMware Inc...