VMware, Inc.
97
Chapter 6 Administrative Operations
<FullName>Finance</FullName>
...
<Settings>
...
</Settings>
</AdminOrg>
List All Tasks Owned by an Organization
An
administrative
view
of
an
organization
includes
a
Link
with
a
rel="down"
attribute
that
the
administrator
can
use
to
retrieve
a
list
of
all
tasks
owned
by
a
user
or
object
in
an
organization.
The
request
in
Example 6
‐
5
uses
the
tasksList
URL
returned
in
Example 6
‐
4
to
return
a
TasksList
element
that
contains
several
Task
elements.
Example 6-5.
List All Tasks Owned by an Organization
Request:
GET http://vcloud.example.com/api/v1.0/tasksList/26
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.taxml
...
<TasksList name="Tasks Lists" type="application/vnd.vmware.vcloud.taxml"
href="http://vcloud.example.com/api/v1.0/tasksList/18" ...>
<Task... status="success" ... operation="Deleted Virtual Application Template (21)" ... >
...
</Task>
<Task... status="error" ... operation="Powered On Virtual Machine WIn2K8 (15)" ... >
<Error stackTrace="com.vmware.ssdc.library.exceptions.VimInvalidStateException
The operation could not be performed because the object is in an invalid
state. Current state of the the VM is VMOn.
at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.throwVimInvalidStateE
xception(VC20VirtualServer.java:292)
at ...">
...
</Task>
<Task... status="running" ... operation="Deleting Virtual Application (44)" ... >
...
</Task>
...
</TasksList>
Modify an Organization
As
shown
in
Example 6
‐
3
,
an
AdminOrg
body
includes
rel="add"
links
for
networks,
vDCs,
users,
groups,
and
catalogs.
An
organization
administrator
can
use
these
links
to
add
objects
of
those
types
to
the
organization.
To
modify
other
attributes
or
elements
of
an
AdminOrg
,
an
organization
administrator
can
make
a
PUT
request
to
its
rel="edit"
link
and
supply
a
modified
version
of
the
AdminOrg
body.
The
request
in
Example 6
‐
6
modifies
the
default
lease
settings
of
the
organization
created
in
Example 6
‐
3
.
N
OTE
If
you
modify
an
organization’s
catalog
publishing
policy
or
LDAP
options
or
modify
a
role,
the
changes
do
not
take
effect
for
logged
‐
in
users
until
the
cache
for
the
current
session
expires
or
the
user
logs
out
and
logs
in
again.
Содержание 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...