Service - Site

Class
VMware.Hv.Site
See also
MapEntry, SiteBase, SiteId, SiteInfo
Since
Horizon View 6.0


Service Description

The interface representing a site in a PodFederation. A site is basically a grouping of pods that utilize shared resources: networking, storage, etc. Usually a site comprises of pods in the same datacenter.

Methods

Methods defined in this Service
Site_Create, Site_Delete, Site_Get, Site_List, Site_Update

Site_Create

Create a new Site. After creation, this site will have no Pod in it. To move a pod to a site, use Pod.upate()

Privileges

Privilege Description
FEDERATED_LDAP_MANAGE Global LDAP management is required to create a site.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Site used to make the method call.
baseSiteBase

SiteBase data containing site name and description

Return Value

Type Description
SiteIdUnique identifier for the created site.

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidStateThrown if the PodFederation is not initialized.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
VLSI_SITE_CREATE_SUCCESS If the site was successfully created.
VLSI_SITE_CREATE_FAILURE If the site could not be created.

Show WSDL type definition



Site_Delete

Delete a site. This can only be done when the site has no pods in it.

Privileges

Privilege Description
FEDERATED_LDAP_MANAGE Global LDAP management is required to delete a site.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Site used to make the method call.
idSiteId

Id of the site to be deleted.

Return Value

Type Description
None

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidStateThrown if PodFederation has not been initialized or if the site has pods in it.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
VLSI_SITE_DELETE_SUCCESS If the site was successfully deleted.
VLSI_SITE_DELETE_FAILURE If the site could not be deleted.

Show WSDL type definition



Site_Get

Retrieve the information about a Site.

Privileges

Privilege Description
FEDERATED_LDAP_VIEW Global LDAP read is required to read a site.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Site used to make the method call.
idSiteId

Id of a site

Return Value

Type Description
SiteInfoSiteInfo

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidStateThrown if PodFederation has not been initialized.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition



Site_List

List all the sites in the PodFederation.

Privileges

Privilege Description
FEDERATED_LDAP_VIEW Global LDAP read is required to list sites.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Site used to make the method call.

Return Value

Type Description
SiteInfo[]SiteInfo

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidStateThrown if the PodFederation has not been initialized.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition



Site_Update

Update displayName or description of a site.
To change site for a pod, use MapEntry[]).

Privileges

Privilege Description
FEDERATED_LDAP_MANAGE Global LDAP management is required to update a site.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Site used to make the method call.
idSiteId

Id of a site
updatesMapEntry[]

name value pairs for update.
  • This parameter is an update map based on SiteInfo.

Return Value

Type Description
None

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidRequestThrown if map contains invalid fields.
InvalidStateThrown if PodFederation has not been initialized.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
VLSI_SITE_UPDATE_SUCCESS If the site was successfully updated.
VLSI_SITE_UPDATE_FAILURE If the site could not be updated.

Show WSDL type definition