# Data Object - SharesInfo(vim.SharesInfo)

Property of
  DvsHostInfrastructureTrafficResourceAllocation, DVSNetworkResourcePoolAllocationInfo, ResourceAllocationInfo, StorageIOAllocationInfo, VirtualDisk, VirtualEthernetCardResourceAllocation
Extends
  DynamicData
See also
  SharesLevel
Since
  2.0

## Data Object Description

Specification of shares.

Shares are used to determine relative allocation between resource consumers. In general, a consumer with more shares gets proportionally more of the resource, subject to certain other constraints.

Properties

Name | Type | Description
--- | --- | ---
level | SharesLevel | The allocation level. The level is a simplified view of shares. Levels map to a pre-determined set of numeric values for shares. If the shares value does not map to a predefined size, then the level is set as custom.
shares | xsd:int | The number of shares allocated. Used to determine resource allocation in case of resource contention. This value is only set if level is set to custom. If level is not set to custom, this value is ignored. Therefore, only shares with custom values can be compared. There is no unit for this value. It is a relative measure based on the settings for other resource pools.
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="SharesInfo"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="shares" type="xsd:int"/> <element name="level" type="vsan:SharesLevel"/> </sequence> </extension> </complexContent> </complexType>