vCloud API Programming Guide
96
VMware, Inc.
<Link rel="add" type="application/vnd.vmware.admin.vdc+xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/vdcs"/>
<Link rel="add" type="application/vnd.vmware.admin.xml"
href="http://vcloud.example.com/api/v1.0/admin/org/26/networks"/>
<Link rel="edit" type="application/vnd.vmware.admin.organxml"
href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="remove" href="http://vcloud.example.com/api/v1.0/admin/org/26"/>
<Link rel="disable" href="http://vcloud.example.com/api/v1.0/admin/org/26/action/disable"/>
<Link rel="alternate" type="application/vnd.vmware.vcloud.org+xml"
href="http://vcloud.example.com/api/v1.0/org/26"/>
<Description>Example Corporation’s Finance Organization</Description>
<FullName>Finance</FullName>
<Settings>
<IsEnabled>false</IsEnabled>
<CanPublishCatalogs>true</CanPublishCatalogs>
<DeployedVMQuota>0</DeployedVMQuota>
<StoredVmQuota>0</StoredVmQuota>
<OrgLeaseSettings>
<DeleteOnStorageLeaseExpiration>false</DeleteOnStorageLeaseExpiration>
<DeploymentLeaseSeconds>604800</DeploymentLeaseSeconds>
<StorageLeaseSeconds>2592000</StorageLeaseSeconds>
</OrgLeaseSettings>
<OrgLdapMode>SYSTEM</OrgLdapMode>
<OrgEmailSettings>
<IsDefaultSmtpServer>true</IsDefaultSmtpServer>
<IsDefaultOrgEmail>true</IsDefaultOrgEmail>
<FromEmailAddress>[email protected]</FromEmailAddress>
<DefaultSubjectPrefix>Attention</DefaultSubjectPrefix>
<IsAlertEmailToAllAdmins>true</IsAlertEmailToAllAdmins>
<SmtpServerSettings>
<IsUseAuthentication>true</IsUseAuthentication>
<Host>smtp.example.com</Host>
<Username>[email protected]</Username>
</SmtpServerSettings>
</OrgEmailSettings>
</Settings>
</AdminOrg>
Get an Administrative View of an Organization
To
see
an
administrative
view
of
an
organization,
an
administrator
can
make
a
GET
request
to
the
organization’s
admin
URL
(the
href
element
of
the
AdminOrg
body),
as
shown
in
Example 6
‐
4
.
With
the
exception
of
the
HTTP
response
code
(200
OK
instead
of
201
Created),
the
response
to
this
request
is
identical
to
the
one
returned
in
Example 6
‐
3
,
so
we
omit
most
of
it
from
the
example.
Example 6-4.
Get an Administrative View of an Organization
Request:
GET http://vcloud.example.com/api/v1.0/admin/org/26
Response:
200 OK
Content-Type:application/vnd.vmware.admin.organxml
...
<AdminOrg xmlns="http://www.vmware.com/vcloud/v1"
href="http://vcloud.example.com/api/v1.0/admin/org/26" name="ExampleFinance"
type="application/vnd.vmware.admin.organxml">
<Link rel="down" type="application/vnd.vmware.vcloud.taxml"
href="http://vcloud.example.com/api/v1.0/tasksList/26"/>
<Description>Example Corporation’s Finance Organization</Description>
Содержание 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...