Custom Cost Calculation Variables

This topic provides a list of variables supported in custom cost calculations. For general information on variables, see Adding Commander Metadata to Workflows With Variables.

If you need a variable that isn't documented, contact support@snowsoftware.com, and if the variable is available, we'll provide you with the variable name. We'll also add it to the list of documented variables in the next release.

VariableExpressionDescription
Instance Type
ECUstarget.instanceType.ecuThe number of EC2 Compute Units associated with the instance type.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Supported for Amazon EC2 only.
Memorytarget.instanceType.memory.gbThe amount of memory associated with the instance type, in gigabytes.
Storagetarget.instanceType.storage.gbThe amount of storage assigned to the instance type, in gigabytes.
vCPUstarget.instanceType.vcpuThe number of vCPUs assigned to the instance type.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Resources - CPU
CPU Limittarget.cpuLimit.ghzThe maximum CPU allocation for the VM. Each unit represents a GHz.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Not supported for public cloud instances.
CPU Reservationtarget.cpuReservation.ghzThe guaranteed CPU allocation for the VM, in GHz.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Not supported for public cloud instances.
CPU Sharestarget.cpuSharesThe CPU shares for a VM as part of a parent's total. Sibling virtual machines share resources according to their relative share values bounded by the reservation and limit.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Not supported for public cloud instances.
Total CPUstarget.cpuCountThe total number of CPUs of the deployed target.
Resources - Memory
Memory Limittarget.memLimit.gbThe maximum amount of the host's memory that the VM can use, in gigabytes. Can be -1 for unlimited.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Not supported for public cloud instances.
Memory Reservationtarget.memReservation.gbThe amount of memory reserved for the VM, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests). Not supported for public cloud instances.
Total Memorytarget.memory.gbThe total amount of memory of the deployed target, in gigabytes.
Resources - Storage
Committed Storage Spacetarget.storage.spaceCommitted.gbThe space occupied by all VMDK files + Other Files in the VM's directory (even if they are unrelated to the VM), in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Consumed Storage Spacetarget.storage.spaceConsumed.gbThe sum of all VM hard drives configured in vCenter (that is, all VMDK files) as reported by vCenter, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Container Storage Usedtarget.containerSpaceUsed.gbThe sum of all physical disks as reported by the guest OS, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Provisioned Storagetarget.provisionedStorage.gbThe maximum storage available to the VM regardless of whether the storage is actually used by the VM, in gigabytes. Can be a value of 0 if data is unavailable.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Scanned Storage Spacetarget.storage.spaceScanned.gbThe size of the VMDK file + log file + snapshots + swap files + all other VM files in folder, in gigabytes. Supported for pre-vCenter 4.0 systems.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Storage Free Spacetarget.storage.spaceFree.gbThe amount of unused space on all logical disks as reported by the guest OS, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests). For public cloud VMs, returns Unknown.
Storage Free Space Percentagetarget.storage.spaceFreePercentThe amount of free disk space as a percentage of the total space, as reported by the guest OS.

For custom cost calculations, this variable is supported for deployed services only (not for requests). For public cloud VMs, returns Unknown.
Storage Logical Sizetarget.storage.logicalSize.gbThe sum of all logical disks partitioned on the physical disks as reported by the guest OS, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests). For public cloud VMs, returns Unknown.
Total Storagetarget.storage.gbThe total of all storage of the deployed target, in gigabytes.

For custom cost calculations, this variable is supported for both requests and deployed services.
Unallocated Storage Spacetarget.storage.spaceUnallocated.gbThe virtual disk size minus the physical disk size, in gigabytes. Only returns a value during the time interval between adding a new disk to a VM in vCenter and running the next Commander datastore scan.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Unpartitioned Storage Spacetarget.storage.spaceUnpartitioned.gbThe physical disk size minus the logical disk size, in gigabytes.

For custom cost calculations, this variable is supported for deployed services only (not for requests).
Target Custom Attributes
Custom Attributetarget.customAttribute['*']The value of the specified custom attribute for the deployed target. Replace * with the name of the custom attribute.

For custom cost calculations, this variable is supported for both requests and deployed services.