vcenter resource pool: shares info

The shares_info structure provides 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.

. This structure was added in vSphere API 7.0.0.0.

Representation:

{
    "shares"1,
    "level""LOW"
}

Attributes:

Name Type Description
Required
level string The allocation level. It maps 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. This attribute was added in vSphere API 7.0.0.0.

Defines the possible values for the allocation level. This enumeration was added in vSphere API 7.0.0.0. Value is one of:
LOW: For CPU: Shares = 500 * number of virtual CPUs.
For Memory: Shares = 5 * virtual machine memory size in MB.
. This constant was added in vSphere API 7.0.0.0.
NORMAL: For CPU: Shares = 1000 * number of virtual CPUs.
For Memory: Shares = 10 * virtual machine memory size in MB.
. This constant was added in vSphere API 7.0.0.0.
HIGH: For CPU: Shares = 2000 * nmumber of virtual CPUs.
For Memory: Shares = 20 * virtual machine memory size in MB.
. This constant was added in vSphere API 7.0.0.0.
CUSTOM: If set, in case there is resource contention the server uses the shares value to determine the resource allocation. This constant was added in vSphere API 7.0.0.0.

Optional
shares long When vcenter.resource_pool.shares_info.level is set to CUSTOM, it is the number of shares allocated. Otherwise, this value is ignored.

There is no unit for this value. It is a relative measure based on the settings for other resource pools.

. This attribute was added in vSphere API 7.0.0.0.

Optional. It is only relevant when level has value CUSTOM. This field is optional and it is only relevant when the value of level is CUSTOM.