Create a vSAN Requirements Profile
The following example demonstrates how to create a storage requirements profile based on vSphere vSAN storage capabilities. The example creates a requirement profile for vSAN stripe width.
The following figure shows the data objects used for a profile specification.

The following example is based on the Storage Policy SDK sample file CreateVSANProfile.java. This example is divided into two code fragments.
- Create an Individual Storage Requirement – The code fragment is a function that creates a single storage capability instance for a subprofile (rule).
- Create a Storage Profile – The code fragment builds a profile specification and creates the profile.