Create an Individual
Storage RequirementLast Updated December 19, 2024
The following example builds a property
instance for a capability. The property instance represents a single storage
requirement.
The code performs the following steps.
- Verifies that the capability exists.
- Creates a property instance for the requirement (PbmCapabilityPropertyInstance).
- Creates a capability constraint for the property instance (PbmCapabilityConstraintInstance).
- Create a capability instance for the constraint and add the subprofile (rule) to the capability.